@studious-lms/server 1.14.0 → 1.16.0
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/inferDocumentFormat.d.ts +10 -0
- package/dist/lib/inferDocumentFormat.d.ts.map +1 -0
- package/dist/lib/inferDocumentFormat.js +48 -0
- package/dist/lib/inferDocumentFormat.js.map +1 -0
- package/dist/models/announcement.d.ts +45 -45
- package/dist/models/assignment.d.ts +75 -75
- package/dist/models/class.d.ts +13 -13
- package/dist/models/comment.d.ts +6 -6
- package/dist/models/conversation.d.ts +23 -23
- package/dist/models/event.d.ts +18 -18
- package/dist/models/file.d.ts +9 -9
- package/dist/models/labChat.d.ts +4 -4
- package/dist/models/message.d.ts +13 -13
- package/dist/models/newtonChat.d.ts +3 -3
- package/dist/models/notification.d.ts +4 -4
- package/dist/models/worksheet.d.ts +121 -121
- package/dist/pipelines/aiLabChat.d.ts +7 -1
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +145 -67
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +34 -195
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
- package/dist/pipelines/aiLabChatContract.js +9 -19
- package/dist/pipelines/aiLabChatContract.js.map +1 -1
- package/dist/pipelines/gradeWorksheet.d.ts +6 -6
- package/dist/pipelines/gradeWorksheet.d.ts.map +1 -1
- package/dist/pipelines/gradeWorksheet.js +75 -36
- package/dist/pipelines/gradeWorksheet.js.map +1 -1
- package/dist/pipelines/labChatPrompt.d.ts +8 -3
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +49 -14
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
- package/dist/routers/_app.d.ts +524 -516
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/announcement.d.ts +40 -40
- package/dist/routers/assignment.d.ts +121 -121
- package/dist/routers/class.d.ts +8 -8
- package/dist/routers/comment.d.ts +5 -5
- package/dist/routers/conversation.d.ts +6 -6
- package/dist/routers/discussion.d.ts +3 -3
- package/dist/routers/embedding.d.ts +6 -2
- package/dist/routers/embedding.d.ts.map +1 -1
- package/dist/routers/embedding.js +44 -36
- package/dist/routers/embedding.js.map +1 -1
- package/dist/routers/event.d.ts +18 -18
- package/dist/routers/file.d.ts +2 -2
- package/dist/routers/labChat.d.ts +3 -3
- package/dist/routers/notifications.d.ts +4 -4
- package/dist/routers/search.d.ts +2 -2
- package/dist/routers/worksheet.d.ts +44 -44
- package/dist/routes/aiStream.d.ts.map +1 -1
- package/dist/routes/aiStream.js +41 -11
- package/dist/routes/aiStream.js.map +1 -1
- package/dist/seedDatabase.d.ts +1 -1
- package/dist/services/aiChatStream.d.ts +18 -0
- package/dist/services/aiChatStream.d.ts.map +1 -1
- package/dist/services/aiChatStream.js +81 -11
- package/dist/services/aiChatStream.js.map +1 -1
- package/dist/services/aiModifierTools.d.ts +0 -16
- package/dist/services/aiModifierTools.d.ts.map +1 -1
- package/dist/services/aiModifierTools.js +112 -3
- package/dist/services/aiModifierTools.js.map +1 -1
- package/dist/services/aiProposalTools.d.ts.map +1 -1
- package/dist/services/aiProposalTools.js +25 -25
- package/dist/services/aiProposalTools.js.map +1 -1
- package/dist/services/announcement.d.ts +34 -34
- package/dist/services/assignment.d.ts +111 -111
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +4 -2
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/class.d.ts +6 -6
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +7 -3
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +5 -5
- package/dist/services/conversation.d.ts +6 -6
- package/dist/services/discussion.d.ts.map +1 -1
- package/dist/services/discussion.js +9 -2
- package/dist/services/discussion.js.map +1 -1
- package/dist/services/embedding.d.ts +19 -1
- package/dist/services/embedding.d.ts.map +1 -1
- package/dist/services/embedding.js +154 -8
- package/dist/services/embedding.js.map +1 -1
- package/dist/services/event.d.ts +18 -18
- package/dist/services/file.d.ts +4 -4
- package/dist/services/folder.d.ts.map +1 -1
- package/dist/services/folder.js +32 -2
- package/dist/services/folder.js.map +1 -1
- package/dist/services/labChat.d.ts +3 -3
- package/dist/services/notification.d.ts +4 -4
- package/dist/services/openaiDocumentGen.d.ts +25 -0
- package/dist/services/openaiDocumentGen.d.ts.map +1 -0
- package/dist/services/openaiDocumentGen.js +195 -0
- package/dist/services/openaiDocumentGen.js.map +1 -0
- package/dist/services/search.d.ts +1 -1
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +27 -2
- package/dist/services/search.js.map +1 -1
- package/dist/services/worksheet.d.ts +66 -49
- package/dist/services/worksheet.d.ts.map +1 -1
- package/dist/services/worksheet.js +48 -3
- package/dist/services/worksheet.js.map +1 -1
- package/dist/workers/processors/embedContent.d.ts.map +1 -1
- package/dist/workers/processors/embedContent.js +16 -25
- package/dist/workers/processors/embedContent.js.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260610140000_expand_embedding_source_types/migration.sql +4 -0
- package/prisma/schema.prisma +3 -0
- package/src/lib/inferDocumentFormat.ts +58 -0
- package/src/pipelines/aiLabChat.ts +185 -74
- package/src/pipelines/aiLabChatContract.ts +7 -17
- package/src/pipelines/gradeWorksheet.ts +95 -38
- package/src/pipelines/labChatPrompt.ts +61 -14
- package/src/routers/embedding.ts +44 -39
- package/src/routes/aiStream.ts +47 -9
- package/src/services/aiChatStream.ts +103 -8
- package/src/services/aiModifierTools.ts +154 -1
- package/src/services/aiProposalTools.ts +26 -25
- package/src/services/assignment.ts +3 -0
- package/src/services/class.ts +7 -1
- package/src/services/discussion.ts +13 -0
- package/src/services/embedding.ts +167 -6
- package/src/services/folder.ts +31 -0
- package/src/services/openaiDocumentGen.ts +237 -0
- package/src/services/search.ts +25 -1
- package/src/services/worksheet.ts +68 -1
- package/src/workers/processors/embedContent.ts +18 -22
- package/tests/unit/lib/inferDocumentFormat.test.ts +33 -0
|
@@ -104,7 +104,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
104
104
|
title: string;
|
|
105
105
|
dueDate: string;
|
|
106
106
|
instructions: string;
|
|
107
|
-
type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "
|
|
107
|
+
type?: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
|
|
108
108
|
id?: string | undefined;
|
|
109
109
|
files?: {
|
|
110
110
|
type: string;
|
|
@@ -142,6 +142,11 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
142
142
|
title: string;
|
|
143
143
|
dueDate: Date;
|
|
144
144
|
maxGrade: number | null;
|
|
145
|
+
attachments: {
|
|
146
|
+
type: string;
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
}[];
|
|
145
150
|
instructions: string;
|
|
146
151
|
graded: boolean;
|
|
147
152
|
weight: number;
|
|
@@ -149,11 +154,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
149
154
|
id: string;
|
|
150
155
|
username: string;
|
|
151
156
|
};
|
|
152
|
-
attachments: {
|
|
153
|
-
type: string;
|
|
154
|
-
id: string;
|
|
155
|
-
name: string;
|
|
156
|
-
}[];
|
|
157
157
|
};
|
|
158
158
|
meta: object;
|
|
159
159
|
}>;
|
|
@@ -197,7 +197,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
197
197
|
[x: string]: unknown;
|
|
198
198
|
classId: string;
|
|
199
199
|
id: string;
|
|
200
|
-
type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "
|
|
200
|
+
type?: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
|
|
201
201
|
files?: {
|
|
202
202
|
type: string;
|
|
203
203
|
name: string;
|
|
@@ -254,18 +254,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
254
254
|
title: string;
|
|
255
255
|
dueDate: Date;
|
|
256
256
|
maxGrade: number | null;
|
|
257
|
-
instructions: string;
|
|
258
|
-
graded: boolean;
|
|
259
|
-
weight: number;
|
|
260
|
-
markSchemeId: string | null;
|
|
261
|
-
teacher: {
|
|
262
|
-
id: string;
|
|
263
|
-
username: string;
|
|
264
|
-
email: string;
|
|
265
|
-
password: string;
|
|
266
|
-
verified: boolean;
|
|
267
|
-
schoolId: string | null;
|
|
268
|
-
};
|
|
269
257
|
attachments: {
|
|
270
258
|
path: string;
|
|
271
259
|
type: string;
|
|
@@ -285,6 +273,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
285
273
|
submissionId: string | null;
|
|
286
274
|
thumbnailId: string | null;
|
|
287
275
|
annotationId: string | null;
|
|
276
|
+
conversationId: string | null;
|
|
288
277
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
289
278
|
uploadUrl: string | null;
|
|
290
279
|
uploadExpiresAt: Date | null;
|
|
@@ -296,7 +285,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
296
285
|
cleanupAt: Date | null;
|
|
297
286
|
classDraftId: string | null;
|
|
298
287
|
folderId: string | null;
|
|
299
|
-
conversationId: string | null;
|
|
300
288
|
messageId: string | null;
|
|
301
289
|
announcementId: string | null;
|
|
302
290
|
discussionId: string | null;
|
|
@@ -305,6 +293,18 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
305
293
|
} | null;
|
|
306
294
|
thumbnailId: string | null;
|
|
307
295
|
}[];
|
|
296
|
+
instructions: string;
|
|
297
|
+
graded: boolean;
|
|
298
|
+
weight: number;
|
|
299
|
+
markSchemeId: string | null;
|
|
300
|
+
teacher: {
|
|
301
|
+
id: string;
|
|
302
|
+
username: string;
|
|
303
|
+
email: string;
|
|
304
|
+
password: string;
|
|
305
|
+
verified: boolean;
|
|
306
|
+
schoolId: string | null;
|
|
307
|
+
};
|
|
308
308
|
};
|
|
309
309
|
meta: object;
|
|
310
310
|
}>;
|
|
@@ -355,10 +355,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
355
355
|
id: string;
|
|
356
356
|
name: string;
|
|
357
357
|
}[];
|
|
358
|
-
teacher: {
|
|
359
|
-
id: string;
|
|
360
|
-
username: string;
|
|
361
|
-
};
|
|
362
358
|
attachments: {
|
|
363
359
|
path: string;
|
|
364
360
|
type: string;
|
|
@@ -368,6 +364,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
368
364
|
uploadedAt: Date | null;
|
|
369
365
|
thumbnailId: string | null;
|
|
370
366
|
}[];
|
|
367
|
+
teacher: {
|
|
368
|
+
id: string;
|
|
369
|
+
username: string;
|
|
370
|
+
};
|
|
371
371
|
eventAttached: {
|
|
372
372
|
id: string;
|
|
373
373
|
location: string | null;
|
|
@@ -476,6 +476,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
476
476
|
submissionId: string | null;
|
|
477
477
|
thumbnailId: string | null;
|
|
478
478
|
annotationId: string | null;
|
|
479
|
+
conversationId: string | null;
|
|
479
480
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
480
481
|
uploadUrl: string | null;
|
|
481
482
|
uploadExpiresAt: Date | null;
|
|
@@ -487,17 +488,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
487
488
|
cleanupAt: Date | null;
|
|
488
489
|
classDraftId: string | null;
|
|
489
490
|
folderId: string | null;
|
|
490
|
-
conversationId: string | null;
|
|
491
491
|
messageId: string | null;
|
|
492
492
|
announcementId: string | null;
|
|
493
493
|
discussionId: string | null;
|
|
494
494
|
discussionReplyId: string | null;
|
|
495
495
|
schoolDevelopementProgramId: string | null;
|
|
496
496
|
}[];
|
|
497
|
-
student: {
|
|
498
|
-
id: string;
|
|
499
|
-
username: string;
|
|
500
|
-
};
|
|
501
497
|
annotations: {
|
|
502
498
|
path: string;
|
|
503
499
|
type: string;
|
|
@@ -510,6 +506,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
510
506
|
submissionId: string | null;
|
|
511
507
|
thumbnailId: string | null;
|
|
512
508
|
annotationId: string | null;
|
|
509
|
+
conversationId: string | null;
|
|
513
510
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
514
511
|
uploadUrl: string | null;
|
|
515
512
|
uploadExpiresAt: Date | null;
|
|
@@ -521,18 +518,21 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
521
518
|
cleanupAt: Date | null;
|
|
522
519
|
classDraftId: string | null;
|
|
523
520
|
folderId: string | null;
|
|
524
|
-
conversationId: string | null;
|
|
525
521
|
messageId: string | null;
|
|
526
522
|
announcementId: string | null;
|
|
527
523
|
discussionId: string | null;
|
|
528
524
|
discussionReplyId: string | null;
|
|
529
525
|
schoolDevelopementProgramId: string | null;
|
|
530
526
|
}[];
|
|
527
|
+
student: {
|
|
528
|
+
id: string;
|
|
529
|
+
username: string;
|
|
530
|
+
};
|
|
531
531
|
id: string;
|
|
532
532
|
createdAt: Date;
|
|
533
533
|
assignmentId: string;
|
|
534
|
-
modifiedAt: Date;
|
|
535
534
|
studentId: string;
|
|
535
|
+
modifiedAt: Date;
|
|
536
536
|
extendedResponse: string | null;
|
|
537
537
|
gradeReceived: number | null;
|
|
538
538
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -618,6 +618,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
618
618
|
submissionId: string | null;
|
|
619
619
|
thumbnailId: string | null;
|
|
620
620
|
annotationId: string | null;
|
|
621
|
+
conversationId: string | null;
|
|
621
622
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
622
623
|
uploadUrl: string | null;
|
|
623
624
|
uploadExpiresAt: Date | null;
|
|
@@ -629,29 +630,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
629
630
|
cleanupAt: Date | null;
|
|
630
631
|
classDraftId: string | null;
|
|
631
632
|
folderId: string | null;
|
|
632
|
-
conversationId: string | null;
|
|
633
633
|
messageId: string | null;
|
|
634
634
|
announcementId: string | null;
|
|
635
635
|
discussionId: string | null;
|
|
636
636
|
discussionReplyId: string | null;
|
|
637
637
|
schoolDevelopementProgramId: string | null;
|
|
638
638
|
}[];
|
|
639
|
-
student: {
|
|
640
|
-
id: string;
|
|
641
|
-
username: string;
|
|
642
|
-
profile: {
|
|
643
|
-
id: string;
|
|
644
|
-
userId: string;
|
|
645
|
-
displayName: string | null;
|
|
646
|
-
bio: string | null;
|
|
647
|
-
location: string | null;
|
|
648
|
-
website: string | null;
|
|
649
|
-
createdAt: Date;
|
|
650
|
-
updatedAt: Date;
|
|
651
|
-
profilePicture: string | null;
|
|
652
|
-
profilePictureThumbnail: string | null;
|
|
653
|
-
} | null;
|
|
654
|
-
};
|
|
655
639
|
annotations: {
|
|
656
640
|
path: string;
|
|
657
641
|
type: string;
|
|
@@ -664,6 +648,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
664
648
|
submissionId: string | null;
|
|
665
649
|
thumbnailId: string | null;
|
|
666
650
|
annotationId: string | null;
|
|
651
|
+
conversationId: string | null;
|
|
667
652
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
668
653
|
uploadUrl: string | null;
|
|
669
654
|
uploadExpiresAt: Date | null;
|
|
@@ -675,18 +660,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
675
660
|
cleanupAt: Date | null;
|
|
676
661
|
classDraftId: string | null;
|
|
677
662
|
folderId: string | null;
|
|
678
|
-
conversationId: string | null;
|
|
679
663
|
messageId: string | null;
|
|
680
664
|
announcementId: string | null;
|
|
681
665
|
discussionId: string | null;
|
|
682
666
|
discussionReplyId: string | null;
|
|
683
667
|
schoolDevelopementProgramId: string | null;
|
|
684
668
|
}[];
|
|
669
|
+
student: {
|
|
670
|
+
id: string;
|
|
671
|
+
username: string;
|
|
672
|
+
profile: {
|
|
673
|
+
id: string;
|
|
674
|
+
userId: string;
|
|
675
|
+
displayName: string | null;
|
|
676
|
+
bio: string | null;
|
|
677
|
+
location: string | null;
|
|
678
|
+
website: string | null;
|
|
679
|
+
createdAt: Date;
|
|
680
|
+
updatedAt: Date;
|
|
681
|
+
profilePicture: string | null;
|
|
682
|
+
profilePictureThumbnail: string | null;
|
|
683
|
+
} | null;
|
|
684
|
+
};
|
|
685
685
|
id: string;
|
|
686
686
|
createdAt: Date;
|
|
687
687
|
assignmentId: string;
|
|
688
|
-
modifiedAt: Date;
|
|
689
688
|
studentId: string;
|
|
689
|
+
modifiedAt: Date;
|
|
690
690
|
extendedResponse: string | null;
|
|
691
691
|
gradeReceived: number | null;
|
|
692
692
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -777,6 +777,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
777
777
|
submissionId: string | null;
|
|
778
778
|
thumbnailId: string | null;
|
|
779
779
|
annotationId: string | null;
|
|
780
|
+
conversationId: string | null;
|
|
780
781
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
781
782
|
uploadUrl: string | null;
|
|
782
783
|
uploadExpiresAt: Date | null;
|
|
@@ -788,7 +789,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
788
789
|
cleanupAt: Date | null;
|
|
789
790
|
classDraftId: string | null;
|
|
790
791
|
folderId: string | null;
|
|
791
|
-
conversationId: string | null;
|
|
792
792
|
messageId: string | null;
|
|
793
793
|
announcementId: string | null;
|
|
794
794
|
discussionId: string | null;
|
|
@@ -803,8 +803,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
803
803
|
id: string;
|
|
804
804
|
createdAt: Date;
|
|
805
805
|
assignmentId: string;
|
|
806
|
-
modifiedAt: Date;
|
|
807
806
|
studentId: string;
|
|
807
|
+
modifiedAt: Date;
|
|
808
808
|
extendedResponse: string | null;
|
|
809
809
|
gradeReceived: number | null;
|
|
810
810
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -887,6 +887,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
887
887
|
submissionId: string | null;
|
|
888
888
|
thumbnailId: string | null;
|
|
889
889
|
annotationId: string | null;
|
|
890
|
+
conversationId: string | null;
|
|
890
891
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
891
892
|
uploadUrl: string | null;
|
|
892
893
|
uploadExpiresAt: Date | null;
|
|
@@ -898,7 +899,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
898
899
|
cleanupAt: Date | null;
|
|
899
900
|
classDraftId: string | null;
|
|
900
901
|
folderId: string | null;
|
|
901
|
-
conversationId: string | null;
|
|
902
902
|
messageId: string | null;
|
|
903
903
|
announcementId: string | null;
|
|
904
904
|
discussionId: string | null;
|
|
@@ -917,6 +917,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
917
917
|
submissionId: string | null;
|
|
918
918
|
thumbnailId: string | null;
|
|
919
919
|
annotationId: string | null;
|
|
920
|
+
conversationId: string | null;
|
|
920
921
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
921
922
|
uploadUrl: string | null;
|
|
922
923
|
uploadExpiresAt: Date | null;
|
|
@@ -928,7 +929,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
928
929
|
cleanupAt: Date | null;
|
|
929
930
|
classDraftId: string | null;
|
|
930
931
|
folderId: string | null;
|
|
931
|
-
conversationId: string | null;
|
|
932
932
|
messageId: string | null;
|
|
933
933
|
announcementId: string | null;
|
|
934
934
|
discussionId: string | null;
|
|
@@ -947,8 +947,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
947
947
|
id: string;
|
|
948
948
|
createdAt: Date;
|
|
949
949
|
assignmentId: string;
|
|
950
|
-
modifiedAt: Date;
|
|
951
950
|
studentId: string;
|
|
951
|
+
modifiedAt: Date;
|
|
952
952
|
extendedResponse: string | null;
|
|
953
953
|
gradeReceived: number | null;
|
|
954
954
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -995,8 +995,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
995
995
|
content: string;
|
|
996
996
|
assignmentId: string | null;
|
|
997
997
|
submissionId: string | null;
|
|
998
|
-
modifiedAt: Date | null;
|
|
999
998
|
announcementId: string | null;
|
|
999
|
+
modifiedAt: Date | null;
|
|
1000
1000
|
authorId: string;
|
|
1001
1001
|
isPinned: boolean;
|
|
1002
1002
|
parentCommentId: string | null;
|
|
@@ -1008,8 +1008,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1008
1008
|
content: string;
|
|
1009
1009
|
assignmentId: string | null;
|
|
1010
1010
|
submissionId: string | null;
|
|
1011
|
-
modifiedAt: Date | null;
|
|
1012
1011
|
announcementId: string | null;
|
|
1012
|
+
modifiedAt: Date | null;
|
|
1013
1013
|
authorId: string;
|
|
1014
1014
|
isPinned: boolean;
|
|
1015
1015
|
parentCommentId: string | null;
|
|
@@ -1053,8 +1053,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1053
1053
|
content: string;
|
|
1054
1054
|
assignmentId: string | null;
|
|
1055
1055
|
submissionId: string | null;
|
|
1056
|
-
modifiedAt: Date | null;
|
|
1057
1056
|
announcementId: string | null;
|
|
1057
|
+
modifiedAt: Date | null;
|
|
1058
1058
|
authorId: string;
|
|
1059
1059
|
isPinned: boolean;
|
|
1060
1060
|
parentCommentId: string | null;
|
|
@@ -1066,8 +1066,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1066
1066
|
content: string;
|
|
1067
1067
|
assignmentId: string | null;
|
|
1068
1068
|
submissionId: string | null;
|
|
1069
|
-
modifiedAt: Date | null;
|
|
1070
1069
|
announcementId: string | null;
|
|
1070
|
+
modifiedAt: Date | null;
|
|
1071
1071
|
authorId: string;
|
|
1072
1072
|
isPinned: boolean;
|
|
1073
1073
|
parentCommentId: string | null;
|
|
@@ -1110,8 +1110,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1110
1110
|
content: string;
|
|
1111
1111
|
assignmentId: string | null;
|
|
1112
1112
|
submissionId: string | null;
|
|
1113
|
-
modifiedAt: Date | null;
|
|
1114
1113
|
announcementId: string | null;
|
|
1114
|
+
modifiedAt: Date | null;
|
|
1115
1115
|
authorId: string;
|
|
1116
1116
|
isPinned: boolean;
|
|
1117
1117
|
parentCommentId: string | null;
|
|
@@ -1123,8 +1123,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1123
1123
|
content: string;
|
|
1124
1124
|
assignmentId: string | null;
|
|
1125
1125
|
submissionId: string | null;
|
|
1126
|
-
modifiedAt: Date | null;
|
|
1127
1126
|
announcementId: string | null;
|
|
1127
|
+
modifiedAt: Date | null;
|
|
1128
1128
|
authorId: string;
|
|
1129
1129
|
isPinned: boolean;
|
|
1130
1130
|
parentCommentId: string | null;
|
|
@@ -1169,8 +1169,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1169
1169
|
content: string;
|
|
1170
1170
|
assignmentId: string | null;
|
|
1171
1171
|
submissionId: string | null;
|
|
1172
|
-
modifiedAt: Date | null;
|
|
1173
1172
|
announcementId: string | null;
|
|
1173
|
+
modifiedAt: Date | null;
|
|
1174
1174
|
authorId: string;
|
|
1175
1175
|
isPinned: boolean;
|
|
1176
1176
|
parentCommentId: string | null;
|
|
@@ -1182,8 +1182,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1182
1182
|
content: string;
|
|
1183
1183
|
assignmentId: string | null;
|
|
1184
1184
|
submissionId: string | null;
|
|
1185
|
-
modifiedAt: Date | null;
|
|
1186
1185
|
announcementId: string | null;
|
|
1186
|
+
modifiedAt: Date | null;
|
|
1187
1187
|
authorId: string;
|
|
1188
1188
|
isPinned: boolean;
|
|
1189
1189
|
parentCommentId: string | null;
|
|
@@ -1277,6 +1277,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1277
1277
|
submissionId: string | null;
|
|
1278
1278
|
thumbnailId: string | null;
|
|
1279
1279
|
annotationId: string | null;
|
|
1280
|
+
conversationId: string | null;
|
|
1280
1281
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1281
1282
|
uploadUrl: string | null;
|
|
1282
1283
|
uploadExpiresAt: Date | null;
|
|
@@ -1288,7 +1289,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1288
1289
|
cleanupAt: Date | null;
|
|
1289
1290
|
classDraftId: string | null;
|
|
1290
1291
|
folderId: string | null;
|
|
1291
|
-
conversationId: string | null;
|
|
1292
1292
|
messageId: string | null;
|
|
1293
1293
|
announcementId: string | null;
|
|
1294
1294
|
discussionId: string | null;
|
|
@@ -1307,6 +1307,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1307
1307
|
submissionId: string | null;
|
|
1308
1308
|
thumbnailId: string | null;
|
|
1309
1309
|
annotationId: string | null;
|
|
1310
|
+
conversationId: string | null;
|
|
1310
1311
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1311
1312
|
uploadUrl: string | null;
|
|
1312
1313
|
uploadExpiresAt: Date | null;
|
|
@@ -1318,22 +1319,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1318
1319
|
cleanupAt: Date | null;
|
|
1319
1320
|
classDraftId: string | null;
|
|
1320
1321
|
folderId: string | null;
|
|
1321
|
-
conversationId: string | null;
|
|
1322
1322
|
messageId: string | null;
|
|
1323
1323
|
announcementId: string | null;
|
|
1324
1324
|
discussionId: string | null;
|
|
1325
1325
|
discussionReplyId: string | null;
|
|
1326
1326
|
schoolDevelopementProgramId: string | null;
|
|
1327
1327
|
})[];
|
|
1328
|
-
student: {
|
|
1329
|
-
id: string;
|
|
1330
|
-
username: string;
|
|
1331
|
-
profile: {
|
|
1332
|
-
profilePicture: string | null;
|
|
1333
|
-
displayName: string | null;
|
|
1334
|
-
profilePictureThumbnail: string | null;
|
|
1335
|
-
} | null;
|
|
1336
|
-
};
|
|
1337
1328
|
annotations: ({
|
|
1338
1329
|
thumbnail: {
|
|
1339
1330
|
path: string;
|
|
@@ -1347,6 +1338,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1347
1338
|
submissionId: string | null;
|
|
1348
1339
|
thumbnailId: string | null;
|
|
1349
1340
|
annotationId: string | null;
|
|
1341
|
+
conversationId: string | null;
|
|
1350
1342
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1351
1343
|
uploadUrl: string | null;
|
|
1352
1344
|
uploadExpiresAt: Date | null;
|
|
@@ -1358,7 +1350,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1358
1350
|
cleanupAt: Date | null;
|
|
1359
1351
|
classDraftId: string | null;
|
|
1360
1352
|
folderId: string | null;
|
|
1361
|
-
conversationId: string | null;
|
|
1362
1353
|
messageId: string | null;
|
|
1363
1354
|
announcementId: string | null;
|
|
1364
1355
|
discussionId: string | null;
|
|
@@ -1377,6 +1368,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1377
1368
|
submissionId: string | null;
|
|
1378
1369
|
thumbnailId: string | null;
|
|
1379
1370
|
annotationId: string | null;
|
|
1371
|
+
conversationId: string | null;
|
|
1380
1372
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1381
1373
|
uploadUrl: string | null;
|
|
1382
1374
|
uploadExpiresAt: Date | null;
|
|
@@ -1388,19 +1380,27 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1388
1380
|
cleanupAt: Date | null;
|
|
1389
1381
|
classDraftId: string | null;
|
|
1390
1382
|
folderId: string | null;
|
|
1391
|
-
conversationId: string | null;
|
|
1392
1383
|
messageId: string | null;
|
|
1393
1384
|
announcementId: string | null;
|
|
1394
1385
|
discussionId: string | null;
|
|
1395
1386
|
discussionReplyId: string | null;
|
|
1396
1387
|
schoolDevelopementProgramId: string | null;
|
|
1397
1388
|
})[];
|
|
1389
|
+
student: {
|
|
1390
|
+
id: string;
|
|
1391
|
+
username: string;
|
|
1392
|
+
profile: {
|
|
1393
|
+
profilePicture: string | null;
|
|
1394
|
+
displayName: string | null;
|
|
1395
|
+
profilePictureThumbnail: string | null;
|
|
1396
|
+
} | null;
|
|
1397
|
+
};
|
|
1398
1398
|
} & {
|
|
1399
1399
|
id: string;
|
|
1400
1400
|
createdAt: Date;
|
|
1401
1401
|
assignmentId: string;
|
|
1402
|
-
modifiedAt: Date;
|
|
1403
1402
|
studentId: string;
|
|
1403
|
+
modifiedAt: Date;
|
|
1404
1404
|
extendedResponse: string | null;
|
|
1405
1405
|
gradeReceived: number | null;
|
|
1406
1406
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -1427,15 +1427,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1427
1427
|
id: string;
|
|
1428
1428
|
name: string;
|
|
1429
1429
|
} | null;
|
|
1430
|
-
teacher: {
|
|
1431
|
-
id: string;
|
|
1432
|
-
username: string;
|
|
1433
|
-
};
|
|
1434
1430
|
attachments: {
|
|
1435
1431
|
type: string;
|
|
1436
1432
|
id: string;
|
|
1437
1433
|
name: string;
|
|
1438
1434
|
}[];
|
|
1435
|
+
teacher: {
|
|
1436
|
+
id: string;
|
|
1437
|
+
username: string;
|
|
1438
|
+
};
|
|
1439
1439
|
eventAttached: {
|
|
1440
1440
|
id: string;
|
|
1441
1441
|
name: string | null;
|
|
@@ -1484,15 +1484,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1484
1484
|
id: string;
|
|
1485
1485
|
name: string;
|
|
1486
1486
|
} | null;
|
|
1487
|
-
teacher: {
|
|
1488
|
-
id: string;
|
|
1489
|
-
username: string;
|
|
1490
|
-
};
|
|
1491
1487
|
attachments: {
|
|
1492
1488
|
type: string;
|
|
1493
1489
|
id: string;
|
|
1494
1490
|
name: string;
|
|
1495
1491
|
}[];
|
|
1492
|
+
teacher: {
|
|
1493
|
+
id: string;
|
|
1494
|
+
username: string;
|
|
1495
|
+
};
|
|
1496
1496
|
eventAttached: {
|
|
1497
1497
|
id: string;
|
|
1498
1498
|
name: string | null;
|
|
@@ -1586,14 +1586,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1586
1586
|
classId: string;
|
|
1587
1587
|
order: number | null;
|
|
1588
1588
|
} | null;
|
|
1589
|
-
teacher: {
|
|
1590
|
-
id: string;
|
|
1591
|
-
username: string;
|
|
1592
|
-
email: string;
|
|
1593
|
-
password: string;
|
|
1594
|
-
verified: boolean;
|
|
1595
|
-
schoolId: string | null;
|
|
1596
|
-
};
|
|
1597
1589
|
attachments: {
|
|
1598
1590
|
path: string;
|
|
1599
1591
|
type: string;
|
|
@@ -1606,6 +1598,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1606
1598
|
submissionId: string | null;
|
|
1607
1599
|
thumbnailId: string | null;
|
|
1608
1600
|
annotationId: string | null;
|
|
1601
|
+
conversationId: string | null;
|
|
1609
1602
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1610
1603
|
uploadUrl: string | null;
|
|
1611
1604
|
uploadExpiresAt: Date | null;
|
|
@@ -1617,13 +1610,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1617
1610
|
cleanupAt: Date | null;
|
|
1618
1611
|
classDraftId: string | null;
|
|
1619
1612
|
folderId: string | null;
|
|
1620
|
-
conversationId: string | null;
|
|
1621
1613
|
messageId: string | null;
|
|
1622
1614
|
announcementId: string | null;
|
|
1623
1615
|
discussionId: string | null;
|
|
1624
1616
|
discussionReplyId: string | null;
|
|
1625
1617
|
schoolDevelopementProgramId: string | null;
|
|
1626
1618
|
}[];
|
|
1619
|
+
teacher: {
|
|
1620
|
+
id: string;
|
|
1621
|
+
username: string;
|
|
1622
|
+
email: string;
|
|
1623
|
+
password: string;
|
|
1624
|
+
verified: boolean;
|
|
1625
|
+
schoolId: string | null;
|
|
1626
|
+
};
|
|
1627
1627
|
eventAttached: {
|
|
1628
1628
|
id: string;
|
|
1629
1629
|
userId: string | null;
|
|
@@ -1684,14 +1684,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1684
1684
|
classId: string;
|
|
1685
1685
|
order: number | null;
|
|
1686
1686
|
} | null;
|
|
1687
|
-
teacher: {
|
|
1688
|
-
id: string;
|
|
1689
|
-
username: string;
|
|
1690
|
-
email: string;
|
|
1691
|
-
password: string;
|
|
1692
|
-
verified: boolean;
|
|
1693
|
-
schoolId: string | null;
|
|
1694
|
-
};
|
|
1695
1687
|
attachments: {
|
|
1696
1688
|
path: string;
|
|
1697
1689
|
type: string;
|
|
@@ -1704,6 +1696,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1704
1696
|
submissionId: string | null;
|
|
1705
1697
|
thumbnailId: string | null;
|
|
1706
1698
|
annotationId: string | null;
|
|
1699
|
+
conversationId: string | null;
|
|
1707
1700
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1708
1701
|
uploadUrl: string | null;
|
|
1709
1702
|
uploadExpiresAt: Date | null;
|
|
@@ -1715,13 +1708,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1715
1708
|
cleanupAt: Date | null;
|
|
1716
1709
|
classDraftId: string | null;
|
|
1717
1710
|
folderId: string | null;
|
|
1718
|
-
conversationId: string | null;
|
|
1719
1711
|
messageId: string | null;
|
|
1720
1712
|
announcementId: string | null;
|
|
1721
1713
|
discussionId: string | null;
|
|
1722
1714
|
discussionReplyId: string | null;
|
|
1723
1715
|
schoolDevelopementProgramId: string | null;
|
|
1724
1716
|
}[];
|
|
1717
|
+
teacher: {
|
|
1718
|
+
id: string;
|
|
1719
|
+
username: string;
|
|
1720
|
+
email: string;
|
|
1721
|
+
password: string;
|
|
1722
|
+
verified: boolean;
|
|
1723
|
+
schoolId: string | null;
|
|
1724
|
+
};
|
|
1725
1725
|
eventAttached: {
|
|
1726
1726
|
id: string;
|
|
1727
1727
|
userId: string | null;
|
|
@@ -1783,14 +1783,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1783
1783
|
classId: string;
|
|
1784
1784
|
order: number | null;
|
|
1785
1785
|
} | null;
|
|
1786
|
-
teacher: {
|
|
1787
|
-
id: string;
|
|
1788
|
-
username: string;
|
|
1789
|
-
email: string;
|
|
1790
|
-
password: string;
|
|
1791
|
-
verified: boolean;
|
|
1792
|
-
schoolId: string | null;
|
|
1793
|
-
};
|
|
1794
1786
|
attachments: {
|
|
1795
1787
|
path: string;
|
|
1796
1788
|
type: string;
|
|
@@ -1803,6 +1795,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1803
1795
|
submissionId: string | null;
|
|
1804
1796
|
thumbnailId: string | null;
|
|
1805
1797
|
annotationId: string | null;
|
|
1798
|
+
conversationId: string | null;
|
|
1806
1799
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1807
1800
|
uploadUrl: string | null;
|
|
1808
1801
|
uploadExpiresAt: Date | null;
|
|
@@ -1814,13 +1807,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1814
1807
|
cleanupAt: Date | null;
|
|
1815
1808
|
classDraftId: string | null;
|
|
1816
1809
|
folderId: string | null;
|
|
1817
|
-
conversationId: string | null;
|
|
1818
1810
|
messageId: string | null;
|
|
1819
1811
|
announcementId: string | null;
|
|
1820
1812
|
discussionId: string | null;
|
|
1821
1813
|
discussionReplyId: string | null;
|
|
1822
1814
|
schoolDevelopementProgramId: string | null;
|
|
1823
1815
|
}[];
|
|
1816
|
+
teacher: {
|
|
1817
|
+
id: string;
|
|
1818
|
+
username: string;
|
|
1819
|
+
email: string;
|
|
1820
|
+
password: string;
|
|
1821
|
+
verified: boolean;
|
|
1822
|
+
schoolId: string | null;
|
|
1823
|
+
};
|
|
1824
1824
|
eventAttached: {
|
|
1825
1825
|
id: string;
|
|
1826
1826
|
userId: string | null;
|
|
@@ -1881,14 +1881,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1881
1881
|
classId: string;
|
|
1882
1882
|
order: number | null;
|
|
1883
1883
|
} | null;
|
|
1884
|
-
teacher: {
|
|
1885
|
-
id: string;
|
|
1886
|
-
username: string;
|
|
1887
|
-
email: string;
|
|
1888
|
-
password: string;
|
|
1889
|
-
verified: boolean;
|
|
1890
|
-
schoolId: string | null;
|
|
1891
|
-
};
|
|
1892
1884
|
attachments: {
|
|
1893
1885
|
path: string;
|
|
1894
1886
|
type: string;
|
|
@@ -1901,6 +1893,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1901
1893
|
submissionId: string | null;
|
|
1902
1894
|
thumbnailId: string | null;
|
|
1903
1895
|
annotationId: string | null;
|
|
1896
|
+
conversationId: string | null;
|
|
1904
1897
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1905
1898
|
uploadUrl: string | null;
|
|
1906
1899
|
uploadExpiresAt: Date | null;
|
|
@@ -1912,13 +1905,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1912
1905
|
cleanupAt: Date | null;
|
|
1913
1906
|
classDraftId: string | null;
|
|
1914
1907
|
folderId: string | null;
|
|
1915
|
-
conversationId: string | null;
|
|
1916
1908
|
messageId: string | null;
|
|
1917
1909
|
announcementId: string | null;
|
|
1918
1910
|
discussionId: string | null;
|
|
1919
1911
|
discussionReplyId: string | null;
|
|
1920
1912
|
schoolDevelopementProgramId: string | null;
|
|
1921
1913
|
}[];
|
|
1914
|
+
teacher: {
|
|
1915
|
+
id: string;
|
|
1916
|
+
username: string;
|
|
1917
|
+
email: string;
|
|
1918
|
+
password: string;
|
|
1919
|
+
verified: boolean;
|
|
1920
|
+
schoolId: string | null;
|
|
1921
|
+
};
|
|
1922
1922
|
eventAttached: {
|
|
1923
1923
|
id: string;
|
|
1924
1924
|
userId: string | null;
|