@studious-lms/server 1.4.5 → 1.4.7
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/lib/config/cors.d.ts.map +1 -1
- package/dist/lib/config/cors.js +8 -3
- package/dist/lib/config/cors.js.map +1 -1
- package/dist/models/access.d.ts +112 -0
- package/dist/models/access.d.ts.map +1 -0
- package/dist/models/access.js +49 -0
- package/dist/models/access.js.map +1 -0
- package/dist/models/announcement.d.ts +17 -2
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/announcement.js +21 -4
- package/dist/models/announcement.js.map +1 -1
- package/dist/models/assignment.d.ts +37 -37
- package/dist/models/assignment.d.ts.map +1 -1
- package/dist/models/assignment.js +15 -15
- package/dist/models/assignment.js.map +1 -1
- package/dist/models/attendance.d.ts +1 -1
- package/dist/models/attendance.d.ts.map +1 -1
- package/dist/models/attendance.js +6 -5
- package/dist/models/attendance.js.map +1 -1
- package/dist/models/auth.d.ts +5 -5
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/auth.js +7 -11
- package/dist/models/auth.js.map +1 -1
- package/dist/models/class.d.ts +26 -26
- package/dist/models/class.d.ts.map +1 -1
- package/dist/models/class.js +7 -11
- package/dist/models/class.js.map +1 -1
- package/dist/models/comment.d.ts +233 -6
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/comment.js +133 -3
- package/dist/models/comment.js.map +1 -1
- package/dist/models/conversation.d.ts +7 -7
- package/dist/models/event.d.ts +52 -3
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/event.js +56 -6
- package/dist/models/event.js.map +1 -1
- package/dist/models/file.d.ts +178 -103
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/file.js +54 -14
- package/dist/models/file.js.map +1 -1
- package/dist/models/folder.d.ts +22 -22
- package/dist/models/folder.d.ts.map +1 -1
- package/dist/models/folder.js +5 -4
- package/dist/models/folder.js.map +1 -1
- package/dist/models/labChat.d.ts +20 -20
- package/dist/models/labChat.d.ts.map +1 -1
- package/dist/models/labChat.js +8 -10
- package/dist/models/labChat.js.map +1 -1
- package/dist/models/marketing.d.ts +1 -1
- package/dist/models/message.d.ts +6 -6
- package/dist/models/newtonChat.d.ts +5 -5
- package/dist/models/school.d.ts +361 -0
- package/dist/models/school.d.ts.map +1 -0
- package/dist/models/school.js +314 -0
- package/dist/models/school.js.map +1 -0
- package/dist/models/section.d.ts +1 -1
- package/dist/models/section.d.ts.map +1 -1
- package/dist/models/section.js +5 -4
- package/dist/models/section.js.map +1 -1
- package/dist/models/user.d.ts +4 -4
- package/dist/models/worksheet.d.ts +67 -65
- package/dist/models/worksheet.d.ts.map +1 -1
- package/dist/models/worksheet.js +6 -14
- package/dist/models/worksheet.js.map +1 -1
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +4 -3
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/gradeWorksheet.d.ts +2 -2
- package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
- package/dist/routers/_app.d.ts +2462 -1104
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/_app.js +4 -2
- package/dist/routers/_app.js.map +1 -1
- package/dist/routers/announcement.d.ts +13 -5
- package/dist/routers/announcement.d.ts.map +1 -1
- package/dist/routers/announcement.js +25 -5
- package/dist/routers/announcement.js.map +1 -1
- package/dist/routers/assignment.d.ts +266 -36
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +221 -3
- package/dist/routers/assignment.js.map +1 -1
- package/dist/routers/class.d.ts +21 -20
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/class.js +3 -2
- package/dist/routers/class.js.map +1 -1
- package/dist/routers/comment.d.ts +40 -3
- package/dist/routers/comment.d.ts.map +1 -1
- package/dist/routers/comment.js +14 -5
- package/dist/routers/comment.js.map +1 -1
- package/dist/routers/conversation.d.ts +6 -6
- package/dist/routers/event.d.ts +21 -2
- package/dist/routers/event.d.ts.map +1 -1
- package/dist/routers/file.d.ts +2 -2
- package/dist/routers/folder.d.ts +24 -24
- package/dist/routers/labChat.d.ts +7 -7
- package/dist/routers/school.d.ts +384 -0
- package/dist/routers/school.d.ts.map +1 -0
- package/dist/routers/school.js +79 -0
- package/dist/routers/school.js.map +1 -0
- package/dist/routers/search.d.ts +1 -1
- package/dist/routers/worksheet.d.ts +23 -21
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/services/announcement.d.ts.map +1 -1
- package/dist/services/announcement.js +10 -6
- package/dist/services/announcement.js.map +1 -1
- package/dist/services/assignment.d.ts +36 -36
- package/dist/services/class.d.ts +20 -19
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +22 -3
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +31 -5
- package/dist/services/comment.d.ts.map +1 -1
- package/dist/services/comment.js +102 -19
- package/dist/services/comment.js.map +1 -1
- package/dist/services/conversation.d.ts +6 -6
- package/dist/services/event.d.ts +21 -2
- package/dist/services/event.d.ts.map +1 -1
- package/dist/services/event.js +11 -7
- package/dist/services/event.js.map +1 -1
- package/dist/services/file.d.ts +2 -2
- package/dist/services/file.d.ts.map +1 -1
- package/dist/services/file.js +17 -8
- package/dist/services/file.js.map +1 -1
- package/dist/services/folder.d.ts +24 -24
- package/dist/services/labChat.d.ts +7 -7
- package/dist/services/school.d.ts +299 -0
- package/dist/services/school.d.ts.map +1 -0
- package/dist/services/school.js +225 -0
- package/dist/services/school.js.map +1 -0
- package/dist/services/worksheet.d.ts +23 -21
- package/dist/services/worksheet.d.ts.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +60 -0
- package/prisma/migrations/20260504071500_school_memberships/migration.sql +81 -0
- package/prisma/schema.prisma +75 -2
- package/src/lib/config/cors.ts +8 -1
- package/src/models/access.ts +48 -0
- package/src/models/announcement.ts +19 -2
- package/src/models/assignment.ts +17 -13
- package/src/models/attendance.ts +4 -3
- package/src/models/auth.ts +8 -9
- package/src/models/class.ts +8 -9
- package/src/models/comment.ts +137 -1
- package/src/models/event.ts +54 -4
- package/src/models/file.ts +53 -12
- package/src/models/folder.ts +3 -2
- package/src/models/labChat.ts +9 -8
- package/src/models/school.ts +361 -0
- package/src/models/section.ts +3 -2
- package/src/models/worksheet.ts +7 -12
- package/src/pipelines/aiLabChat.ts +2 -1
- package/src/routers/_app.ts +2 -0
- package/src/routers/announcement.ts +30 -4
- package/src/routers/assignment.ts +243 -2
- package/src/routers/class.ts +1 -0
- package/src/routers/comment.ts +19 -2
- package/src/routers/school.ts +122 -0
- package/src/services/announcement.ts +12 -4
- package/src/services/class.ts +25 -2
- package/src/services/comment.ts +122 -18
- package/src/services/event.ts +23 -6
- package/src/services/file.ts +20 -6
- package/src/services/school.ts +308 -0
- package/tests/lib/cors.test.ts +13 -1
- package/tests/routers/assignment.test.ts +68 -2
- package/tests/routers/comment.test.ts +42 -1
- package/vercel.json +8 -0
|
@@ -189,12 +189,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
189
189
|
output: {
|
|
190
190
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
191
191
|
id: string;
|
|
192
|
-
|
|
193
|
-
student: {
|
|
194
|
-
id: string;
|
|
195
|
-
username: string;
|
|
196
|
-
};
|
|
197
|
-
}[];
|
|
192
|
+
createdAt: Date | null;
|
|
198
193
|
class: {
|
|
199
194
|
name: string;
|
|
200
195
|
id: string;
|
|
@@ -211,7 +206,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
211
206
|
classId: string;
|
|
212
207
|
order: number | null;
|
|
213
208
|
} | null;
|
|
214
|
-
|
|
209
|
+
submissions: {
|
|
210
|
+
student: {
|
|
211
|
+
id: string;
|
|
212
|
+
username: string;
|
|
213
|
+
};
|
|
214
|
+
}[];
|
|
215
215
|
title: string;
|
|
216
216
|
instructions: string;
|
|
217
217
|
dueDate: Date;
|
|
@@ -241,8 +241,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
241
241
|
type: string;
|
|
242
242
|
name: string;
|
|
243
243
|
id: string;
|
|
244
|
-
size: number | null;
|
|
245
244
|
userId: string | null;
|
|
245
|
+
size: number | null;
|
|
246
246
|
uploadedAt: Date | null;
|
|
247
247
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
248
248
|
uploadUrl: string | null;
|
|
@@ -289,12 +289,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
289
289
|
name: string;
|
|
290
290
|
id: string;
|
|
291
291
|
}[];
|
|
292
|
-
submissions: {
|
|
293
|
-
student: {
|
|
294
|
-
id: string;
|
|
295
|
-
username: string;
|
|
296
|
-
};
|
|
297
|
-
}[];
|
|
298
292
|
class: {
|
|
299
293
|
name: string;
|
|
300
294
|
id: string;
|
|
@@ -303,6 +297,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
303
297
|
name: string;
|
|
304
298
|
id: string;
|
|
305
299
|
} | null;
|
|
300
|
+
submissions: {
|
|
301
|
+
student: {
|
|
302
|
+
id: string;
|
|
303
|
+
username: string;
|
|
304
|
+
};
|
|
305
|
+
}[];
|
|
306
306
|
markScheme: {
|
|
307
307
|
id: string;
|
|
308
308
|
structured: string;
|
|
@@ -425,8 +425,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
425
425
|
type: string;
|
|
426
426
|
name: string;
|
|
427
427
|
id: string;
|
|
428
|
-
size: number | null;
|
|
429
428
|
userId: string | null;
|
|
429
|
+
size: number | null;
|
|
430
430
|
uploadedAt: Date | null;
|
|
431
431
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
432
432
|
uploadUrl: string | null;
|
|
@@ -453,8 +453,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
453
453
|
type: string;
|
|
454
454
|
name: string;
|
|
455
455
|
id: string;
|
|
456
|
-
size: number | null;
|
|
457
456
|
userId: string | null;
|
|
457
|
+
size: number | null;
|
|
458
458
|
uploadedAt: Date | null;
|
|
459
459
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
460
460
|
uploadUrl: string | null;
|
|
@@ -481,8 +481,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
481
481
|
username: string;
|
|
482
482
|
};
|
|
483
483
|
id: string;
|
|
484
|
-
assignmentId: string;
|
|
485
484
|
createdAt: Date;
|
|
485
|
+
assignmentId: string;
|
|
486
486
|
modifiedAt: Date;
|
|
487
487
|
studentId: string;
|
|
488
488
|
extendedResponse: string | null;
|
|
@@ -559,8 +559,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
559
559
|
type: string;
|
|
560
560
|
name: string;
|
|
561
561
|
id: string;
|
|
562
|
-
size: number | null;
|
|
563
562
|
userId: string | null;
|
|
563
|
+
size: number | null;
|
|
564
564
|
uploadedAt: Date | null;
|
|
565
565
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
566
566
|
uploadUrl: string | null;
|
|
@@ -587,8 +587,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
587
587
|
type: string;
|
|
588
588
|
name: string;
|
|
589
589
|
id: string;
|
|
590
|
-
size: number | null;
|
|
591
590
|
userId: string | null;
|
|
591
|
+
size: number | null;
|
|
592
592
|
uploadedAt: Date | null;
|
|
593
593
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
594
594
|
uploadUrl: string | null;
|
|
@@ -615,10 +615,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
615
615
|
username: string;
|
|
616
616
|
profile: {
|
|
617
617
|
id: string;
|
|
618
|
-
userId: string;
|
|
619
618
|
createdAt: Date;
|
|
620
|
-
location: string | null;
|
|
621
619
|
updatedAt: Date;
|
|
620
|
+
userId: string;
|
|
621
|
+
location: string | null;
|
|
622
622
|
displayName: string | null;
|
|
623
623
|
bio: string | null;
|
|
624
624
|
website: string | null;
|
|
@@ -627,8 +627,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
627
627
|
} | null;
|
|
628
628
|
};
|
|
629
629
|
id: string;
|
|
630
|
-
assignmentId: string;
|
|
631
630
|
createdAt: Date;
|
|
631
|
+
assignmentId: string;
|
|
632
632
|
modifiedAt: Date;
|
|
633
633
|
studentId: string;
|
|
634
634
|
extendedResponse: string | null;
|
|
@@ -710,8 +710,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
710
710
|
type: string;
|
|
711
711
|
name: string;
|
|
712
712
|
id: string;
|
|
713
|
-
size: number | null;
|
|
714
713
|
userId: string | null;
|
|
714
|
+
size: number | null;
|
|
715
715
|
uploadedAt: Date | null;
|
|
716
716
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
717
717
|
uploadUrl: string | null;
|
|
@@ -739,8 +739,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
739
739
|
};
|
|
740
740
|
} & {
|
|
741
741
|
id: string;
|
|
742
|
-
assignmentId: string;
|
|
743
742
|
createdAt: Date;
|
|
743
|
+
assignmentId: string;
|
|
744
744
|
modifiedAt: Date;
|
|
745
745
|
studentId: string;
|
|
746
746
|
extendedResponse: string | null;
|
|
@@ -814,8 +814,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
814
814
|
type: string;
|
|
815
815
|
name: string;
|
|
816
816
|
id: string;
|
|
817
|
-
size: number | null;
|
|
818
817
|
userId: string | null;
|
|
818
|
+
size: number | null;
|
|
819
819
|
uploadedAt: Date | null;
|
|
820
820
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
821
821
|
uploadUrl: string | null;
|
|
@@ -842,8 +842,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
842
842
|
type: string;
|
|
843
843
|
name: string;
|
|
844
844
|
id: string;
|
|
845
|
-
size: number | null;
|
|
846
845
|
userId: string | null;
|
|
846
|
+
size: number | null;
|
|
847
847
|
uploadedAt: Date | null;
|
|
848
848
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
849
849
|
uploadUrl: string | null;
|
|
@@ -875,8 +875,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
875
875
|
} | null;
|
|
876
876
|
};
|
|
877
877
|
id: string;
|
|
878
|
-
assignmentId: string;
|
|
879
878
|
createdAt: Date;
|
|
879
|
+
assignmentId: string;
|
|
880
880
|
modifiedAt: Date;
|
|
881
881
|
studentId: string;
|
|
882
882
|
extendedResponse: string | null;
|
|
@@ -892,6 +892,236 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
892
892
|
}[];
|
|
893
893
|
meta: object;
|
|
894
894
|
}>;
|
|
895
|
+
getComments: import("@trpc/server").TRPCQueryProcedure<{
|
|
896
|
+
input: {
|
|
897
|
+
[x: string]: unknown;
|
|
898
|
+
classId: string;
|
|
899
|
+
assignmentId: string;
|
|
900
|
+
};
|
|
901
|
+
output: {
|
|
902
|
+
comments: ({
|
|
903
|
+
author: {
|
|
904
|
+
id: string;
|
|
905
|
+
username: string;
|
|
906
|
+
profile: {
|
|
907
|
+
displayName: string | null;
|
|
908
|
+
profilePicture: string | null;
|
|
909
|
+
profilePictureThumbnail: string | null;
|
|
910
|
+
} | null;
|
|
911
|
+
};
|
|
912
|
+
replies: ({
|
|
913
|
+
author: {
|
|
914
|
+
id: string;
|
|
915
|
+
username: string;
|
|
916
|
+
profile: {
|
|
917
|
+
displayName: string | null;
|
|
918
|
+
profilePicture: string | null;
|
|
919
|
+
profilePictureThumbnail: string | null;
|
|
920
|
+
} | null;
|
|
921
|
+
};
|
|
922
|
+
} & {
|
|
923
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
924
|
+
id: string;
|
|
925
|
+
createdAt: Date;
|
|
926
|
+
assignmentId: string | null;
|
|
927
|
+
submissionId: string | null;
|
|
928
|
+
announcementId: string | null;
|
|
929
|
+
modifiedAt: Date | null;
|
|
930
|
+
content: string;
|
|
931
|
+
authorId: string;
|
|
932
|
+
parentCommentId: string | null;
|
|
933
|
+
studentQuestionProgressId: string | null;
|
|
934
|
+
})[];
|
|
935
|
+
} & {
|
|
936
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
937
|
+
id: string;
|
|
938
|
+
createdAt: Date;
|
|
939
|
+
assignmentId: string | null;
|
|
940
|
+
submissionId: string | null;
|
|
941
|
+
announcementId: string | null;
|
|
942
|
+
modifiedAt: Date | null;
|
|
943
|
+
content: string;
|
|
944
|
+
authorId: string;
|
|
945
|
+
parentCommentId: string | null;
|
|
946
|
+
studentQuestionProgressId: string | null;
|
|
947
|
+
})[];
|
|
948
|
+
};
|
|
949
|
+
meta: object;
|
|
950
|
+
}>;
|
|
951
|
+
addComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
952
|
+
input: {
|
|
953
|
+
[x: string]: unknown;
|
|
954
|
+
classId: string;
|
|
955
|
+
assignmentId: string;
|
|
956
|
+
content: string;
|
|
957
|
+
parentCommentId?: string | undefined;
|
|
958
|
+
};
|
|
959
|
+
output: {
|
|
960
|
+
comment: {
|
|
961
|
+
author: {
|
|
962
|
+
id: string;
|
|
963
|
+
username: string;
|
|
964
|
+
profile: {
|
|
965
|
+
displayName: string | null;
|
|
966
|
+
profilePicture: string | null;
|
|
967
|
+
profilePictureThumbnail: string | null;
|
|
968
|
+
} | null;
|
|
969
|
+
};
|
|
970
|
+
replies: ({
|
|
971
|
+
author: {
|
|
972
|
+
id: string;
|
|
973
|
+
username: string;
|
|
974
|
+
profile: {
|
|
975
|
+
displayName: string | null;
|
|
976
|
+
profilePicture: string | null;
|
|
977
|
+
profilePictureThumbnail: string | null;
|
|
978
|
+
} | null;
|
|
979
|
+
};
|
|
980
|
+
} & {
|
|
981
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
982
|
+
id: string;
|
|
983
|
+
createdAt: Date;
|
|
984
|
+
assignmentId: string | null;
|
|
985
|
+
submissionId: string | null;
|
|
986
|
+
announcementId: string | null;
|
|
987
|
+
modifiedAt: Date | null;
|
|
988
|
+
content: string;
|
|
989
|
+
authorId: string;
|
|
990
|
+
parentCommentId: string | null;
|
|
991
|
+
studentQuestionProgressId: string | null;
|
|
992
|
+
})[];
|
|
993
|
+
} & {
|
|
994
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
995
|
+
id: string;
|
|
996
|
+
createdAt: Date;
|
|
997
|
+
assignmentId: string | null;
|
|
998
|
+
submissionId: string | null;
|
|
999
|
+
announcementId: string | null;
|
|
1000
|
+
modifiedAt: Date | null;
|
|
1001
|
+
content: string;
|
|
1002
|
+
authorId: string;
|
|
1003
|
+
parentCommentId: string | null;
|
|
1004
|
+
studentQuestionProgressId: string | null;
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
meta: object;
|
|
1008
|
+
}>;
|
|
1009
|
+
getSubmissionComments: import("@trpc/server").TRPCQueryProcedure<{
|
|
1010
|
+
input: {
|
|
1011
|
+
[x: string]: unknown;
|
|
1012
|
+
classId: string;
|
|
1013
|
+
assignmentId: string;
|
|
1014
|
+
submissionId: string;
|
|
1015
|
+
};
|
|
1016
|
+
output: {
|
|
1017
|
+
comments: ({
|
|
1018
|
+
author: {
|
|
1019
|
+
id: string;
|
|
1020
|
+
username: string;
|
|
1021
|
+
profile: {
|
|
1022
|
+
displayName: string | null;
|
|
1023
|
+
profilePicture: string | null;
|
|
1024
|
+
profilePictureThumbnail: string | null;
|
|
1025
|
+
} | null;
|
|
1026
|
+
};
|
|
1027
|
+
replies: ({
|
|
1028
|
+
author: {
|
|
1029
|
+
id: string;
|
|
1030
|
+
username: string;
|
|
1031
|
+
profile: {
|
|
1032
|
+
displayName: string | null;
|
|
1033
|
+
profilePicture: string | null;
|
|
1034
|
+
profilePictureThumbnail: string | null;
|
|
1035
|
+
} | null;
|
|
1036
|
+
};
|
|
1037
|
+
} & {
|
|
1038
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1039
|
+
id: string;
|
|
1040
|
+
createdAt: Date;
|
|
1041
|
+
assignmentId: string | null;
|
|
1042
|
+
submissionId: string | null;
|
|
1043
|
+
announcementId: string | null;
|
|
1044
|
+
modifiedAt: Date | null;
|
|
1045
|
+
content: string;
|
|
1046
|
+
authorId: string;
|
|
1047
|
+
parentCommentId: string | null;
|
|
1048
|
+
studentQuestionProgressId: string | null;
|
|
1049
|
+
})[];
|
|
1050
|
+
} & {
|
|
1051
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1052
|
+
id: string;
|
|
1053
|
+
createdAt: Date;
|
|
1054
|
+
assignmentId: string | null;
|
|
1055
|
+
submissionId: string | null;
|
|
1056
|
+
announcementId: string | null;
|
|
1057
|
+
modifiedAt: Date | null;
|
|
1058
|
+
content: string;
|
|
1059
|
+
authorId: string;
|
|
1060
|
+
parentCommentId: string | null;
|
|
1061
|
+
studentQuestionProgressId: string | null;
|
|
1062
|
+
})[];
|
|
1063
|
+
};
|
|
1064
|
+
meta: object;
|
|
1065
|
+
}>;
|
|
1066
|
+
addSubmissionComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
1067
|
+
input: {
|
|
1068
|
+
[x: string]: unknown;
|
|
1069
|
+
classId: string;
|
|
1070
|
+
assignmentId: string;
|
|
1071
|
+
submissionId: string;
|
|
1072
|
+
content: string;
|
|
1073
|
+
parentCommentId?: string | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
output: {
|
|
1076
|
+
comment: {
|
|
1077
|
+
author: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
username: string;
|
|
1080
|
+
profile: {
|
|
1081
|
+
displayName: string | null;
|
|
1082
|
+
profilePicture: string | null;
|
|
1083
|
+
profilePictureThumbnail: string | null;
|
|
1084
|
+
} | null;
|
|
1085
|
+
};
|
|
1086
|
+
replies: ({
|
|
1087
|
+
author: {
|
|
1088
|
+
id: string;
|
|
1089
|
+
username: string;
|
|
1090
|
+
profile: {
|
|
1091
|
+
displayName: string | null;
|
|
1092
|
+
profilePicture: string | null;
|
|
1093
|
+
profilePictureThumbnail: string | null;
|
|
1094
|
+
} | null;
|
|
1095
|
+
};
|
|
1096
|
+
} & {
|
|
1097
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1098
|
+
id: string;
|
|
1099
|
+
createdAt: Date;
|
|
1100
|
+
assignmentId: string | null;
|
|
1101
|
+
submissionId: string | null;
|
|
1102
|
+
announcementId: string | null;
|
|
1103
|
+
modifiedAt: Date | null;
|
|
1104
|
+
content: string;
|
|
1105
|
+
authorId: string;
|
|
1106
|
+
parentCommentId: string | null;
|
|
1107
|
+
studentQuestionProgressId: string | null;
|
|
1108
|
+
})[];
|
|
1109
|
+
} & {
|
|
1110
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1111
|
+
id: string;
|
|
1112
|
+
createdAt: Date;
|
|
1113
|
+
assignmentId: string | null;
|
|
1114
|
+
submissionId: string | null;
|
|
1115
|
+
announcementId: string | null;
|
|
1116
|
+
modifiedAt: Date | null;
|
|
1117
|
+
content: string;
|
|
1118
|
+
authorId: string;
|
|
1119
|
+
parentCommentId: string | null;
|
|
1120
|
+
studentQuestionProgressId: string | null;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
meta: object;
|
|
1124
|
+
}>;
|
|
895
1125
|
updateSubmissionAsTeacher: import("@trpc/server").TRPCMutationProcedure<{
|
|
896
1126
|
input: {
|
|
897
1127
|
[x: string]: unknown;
|
|
@@ -966,8 +1196,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
966
1196
|
type: string;
|
|
967
1197
|
name: string;
|
|
968
1198
|
id: string;
|
|
969
|
-
size: number | null;
|
|
970
1199
|
userId: string | null;
|
|
1200
|
+
size: number | null;
|
|
971
1201
|
uploadedAt: Date | null;
|
|
972
1202
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
973
1203
|
uploadUrl: string | null;
|
|
@@ -994,8 +1224,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
994
1224
|
type: string;
|
|
995
1225
|
name: string;
|
|
996
1226
|
id: string;
|
|
997
|
-
size: number | null;
|
|
998
1227
|
userId: string | null;
|
|
1228
|
+
size: number | null;
|
|
999
1229
|
uploadedAt: Date | null;
|
|
1000
1230
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1001
1231
|
uploadUrl: string | null;
|
|
@@ -1023,8 +1253,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1023
1253
|
type: string;
|
|
1024
1254
|
name: string;
|
|
1025
1255
|
id: string;
|
|
1026
|
-
size: number | null;
|
|
1027
1256
|
userId: string | null;
|
|
1257
|
+
size: number | null;
|
|
1028
1258
|
uploadedAt: Date | null;
|
|
1029
1259
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1030
1260
|
uploadUrl: string | null;
|
|
@@ -1051,8 +1281,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1051
1281
|
type: string;
|
|
1052
1282
|
name: string;
|
|
1053
1283
|
id: string;
|
|
1054
|
-
size: number | null;
|
|
1055
1284
|
userId: string | null;
|
|
1285
|
+
size: number | null;
|
|
1056
1286
|
uploadedAt: Date | null;
|
|
1057
1287
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1058
1288
|
uploadUrl: string | null;
|
|
@@ -1085,8 +1315,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1085
1315
|
};
|
|
1086
1316
|
} & {
|
|
1087
1317
|
id: string;
|
|
1088
|
-
assignmentId: string;
|
|
1089
1318
|
createdAt: Date;
|
|
1319
|
+
assignmentId: string;
|
|
1090
1320
|
modifiedAt: Date;
|
|
1091
1321
|
studentId: string;
|
|
1092
1322
|
extendedResponse: string | null;
|
|
@@ -1286,8 +1516,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1286
1516
|
type: string;
|
|
1287
1517
|
name: string;
|
|
1288
1518
|
id: string;
|
|
1289
|
-
size: number | null;
|
|
1290
1519
|
userId: string | null;
|
|
1520
|
+
size: number | null;
|
|
1291
1521
|
uploadedAt: Date | null;
|
|
1292
1522
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1293
1523
|
uploadUrl: string | null;
|
|
@@ -1381,8 +1611,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1381
1611
|
type: string;
|
|
1382
1612
|
name: string;
|
|
1383
1613
|
id: string;
|
|
1384
|
-
size: number | null;
|
|
1385
1614
|
userId: string | null;
|
|
1615
|
+
size: number | null;
|
|
1386
1616
|
uploadedAt: Date | null;
|
|
1387
1617
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1388
1618
|
uploadUrl: string | null;
|
|
@@ -1477,8 +1707,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1477
1707
|
type: string;
|
|
1478
1708
|
name: string;
|
|
1479
1709
|
id: string;
|
|
1480
|
-
size: number | null;
|
|
1481
1710
|
userId: string | null;
|
|
1711
|
+
size: number | null;
|
|
1482
1712
|
uploadedAt: Date | null;
|
|
1483
1713
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1484
1714
|
uploadUrl: string | null;
|
|
@@ -1572,8 +1802,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1572
1802
|
type: string;
|
|
1573
1803
|
name: string;
|
|
1574
1804
|
id: string;
|
|
1575
|
-
size: number | null;
|
|
1576
1805
|
userId: string | null;
|
|
1806
|
+
size: number | null;
|
|
1577
1807
|
uploadedAt: Date | null;
|
|
1578
1808
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1579
1809
|
uploadUrl: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"/","sources":["routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"assignment.d.ts","sourceRoot":"/","sources":["routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;AA0OpJ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAypB3B,CAAC"}
|