@studious-lms/server 1.13.0 → 1.15.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/.dockerignore +28 -0
- package/.env.example +5 -0
- package/.github/workflows/deploy.yml +123 -0
- package/Dockerfile +54 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/instrument.js +3 -3
- package/dist/instrument.js.map +1 -1
- package/dist/lib/config/cors.d.ts.map +1 -1
- package/dist/lib/config/cors.js +31 -11
- package/dist/lib/config/cors.js.map +1 -1
- package/dist/lib/config/env.d.ts +17 -0
- package/dist/lib/config/env.d.ts.map +1 -1
- package/dist/lib/config/env.js +8 -2
- package/dist/lib/config/env.js.map +1 -1
- package/dist/lib/googleCloudStorage.d.ts +10 -0
- package/dist/lib/googleCloudStorage.d.ts.map +1 -1
- package/dist/lib/googleCloudStorage.js +22 -2
- package/dist/lib/googleCloudStorage.js.map +1 -1
- 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/lib/legal.d.ts +3 -0
- package/dist/lib/legal.d.ts.map +1 -0
- package/dist/lib/legal.js +6 -0
- package/dist/lib/legal.js.map +1 -0
- package/dist/lib/prisma.d.ts +104 -5
- package/dist/lib/prisma.d.ts.map +1 -1
- package/dist/lib/prisma.js +33 -2
- package/dist/lib/prisma.js.map +1 -1
- package/dist/models/agenda.d.ts +20 -20
- package/dist/models/announcement.d.ts +211 -101
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +560 -362
- package/dist/models/assignment.d.ts.map +1 -1
- package/dist/models/attendance.d.ts +197 -71
- package/dist/models/attendance.d.ts.map +1 -1
- package/dist/models/auth.d.ts +356 -114
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/auth.js +4 -2
- package/dist/models/auth.js.map +1 -1
- package/dist/models/class.d.ts +327 -201
- package/dist/models/class.d.ts.map +1 -1
- package/dist/models/class.js +2 -2
- package/dist/models/class.js.map +1 -1
- package/dist/models/cloudStorage.d.ts +146 -56
- package/dist/models/cloudStorage.d.ts.map +1 -1
- package/dist/models/comment.d.ts +262 -110
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/conversation.d.ts +206 -80
- package/dist/models/conversation.d.ts.map +1 -1
- package/dist/models/department.d.ts +196 -70
- package/dist/models/department.d.ts.map +1 -1
- package/dist/models/event.d.ts +305 -141
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +422 -272
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/folder.d.ts +433 -181
- package/dist/models/folder.d.ts.map +1 -1
- package/dist/models/labChat.d.ts +205 -79
- package/dist/models/labChat.d.ts.map +1 -1
- package/dist/models/marketing.d.ts +79 -38
- package/dist/models/marketing.d.ts.map +1 -1
- package/dist/models/marketing.js +12 -4
- package/dist/models/marketing.js.map +1 -1
- package/dist/models/message.d.ts +97 -43
- package/dist/models/message.d.ts.map +1 -1
- package/dist/models/newtonChat.d.ts +84 -30
- package/dist/models/newtonChat.d.ts.map +1 -1
- package/dist/models/notification.d.ts +57 -21
- package/dist/models/notification.d.ts.map +1 -1
- package/dist/models/school.d.ts +349 -133
- package/dist/models/school.d.ts.map +1 -1
- package/dist/models/section.d.ts +216 -72
- package/dist/models/section.d.ts.map +1 -1
- package/dist/models/tag.d.ts +156 -48
- package/dist/models/tag.d.ts.map +1 -1
- package/dist/models/user.d.ts +82 -28
- package/dist/models/user.d.ts.map +1 -1
- package/dist/models/worksheet.d.ts +1032 -423
- package/dist/models/worksheet.d.ts.map +1 -1
- package/dist/models/worksheet.js +8 -2
- package/dist/models/worksheet.js.map +1 -1
- package/dist/pipelines/aiLabChat.d.ts +7 -9
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +194 -125
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +233 -389
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
- package/dist/pipelines/aiLabChatContract.js +54 -70
- package/dist/pipelines/aiLabChatContract.js.map +1 -1
- package/dist/pipelines/aiNewtonChat.d.ts.map +1 -1
- package/dist/pipelines/aiNewtonChat.js +41 -41
- package/dist/pipelines/aiNewtonChat.js.map +1 -1
- package/dist/pipelines/gradeWorksheet.d.ts +8 -8
- package/dist/pipelines/labChatPrompt.d.ts +18 -11
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +93 -75
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
- package/dist/routers/_app.d.ts +2601 -2151
- 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/admin.d.ts +13 -13
- package/dist/routers/agenda.d.ts +18 -18
- package/dist/routers/announcement.d.ts +60 -60
- package/dist/routers/assignment.d.ts +393 -383
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/attendance.d.ts +10 -10
- package/dist/routers/auth.d.ts +4 -2
- package/dist/routers/auth.d.ts.map +1 -1
- package/dist/routers/auth.js +15 -2
- package/dist/routers/auth.js.map +1 -1
- package/dist/routers/class.d.ts +157 -153
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +18 -18
- package/dist/routers/conversation.d.ts +11 -11
- package/dist/routers/department.d.ts +34 -34
- package/dist/routers/discussion.d.ts +68 -56
- package/dist/routers/discussion.d.ts.map +1 -1
- package/dist/routers/discussion.js +6 -2
- package/dist/routers/discussion.js.map +1 -1
- package/dist/routers/embedding.d.ts +73 -0
- package/dist/routers/embedding.d.ts.map +1 -0
- package/dist/routers/embedding.js +151 -0
- package/dist/routers/embedding.js.map +1 -0
- package/dist/routers/event.d.ts +57 -55
- package/dist/routers/event.d.ts.map +1 -1
- package/dist/routers/file.d.ts +14 -14
- package/dist/routers/folder.d.ts +38 -38
- package/dist/routers/labChat.d.ts +16 -16
- package/dist/routers/marketing.d.ts +1 -14
- package/dist/routers/marketing.d.ts.map +1 -1
- package/dist/routers/message.d.ts +13 -13
- package/dist/routers/newtonChat.d.ts +4 -4
- package/dist/routers/notifications.d.ts +5 -5
- package/dist/routers/permissions.d.ts +14 -14
- package/dist/routers/school.d.ts +59 -55
- package/dist/routers/school.d.ts.map +1 -1
- package/dist/routers/search.d.ts +22 -1
- package/dist/routers/search.d.ts.map +1 -1
- package/dist/routers/search.js +9 -3
- package/dist/routers/search.js.map +1 -1
- package/dist/routers/section.d.ts +4 -4
- package/dist/routers/studentProgress.d.ts +1 -1
- package/dist/routers/tag.d.ts +7 -7
- package/dist/routers/user.d.ts +99 -10
- package/dist/routers/user.d.ts.map +1 -1
- package/dist/routers/user.js +19 -2
- package/dist/routers/user.js.map +1 -1
- package/dist/routers/worksheet.d.ts +93 -55
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/routers/worksheet.js +26 -2
- package/dist/routers/worksheet.js.map +1 -1
- package/dist/routes/aiStream.d.ts +2 -0
- package/dist/routes/aiStream.d.ts.map +1 -0
- package/dist/routes/aiStream.js +726 -0
- package/dist/routes/aiStream.js.map +1 -0
- package/dist/seedDatabase.d.ts +3 -1
- package/dist/seedDatabase.d.ts.map +1 -1
- package/dist/seedDatabase.js +6 -6
- package/dist/seedDatabase.js.map +1 -1
- package/dist/services/adminInstitution.d.ts +8 -8
- package/dist/services/adminRunJob.d.ts +4 -4
- package/dist/services/agenda.d.ts +18 -18
- package/dist/services/aiChatStream.d.ts +88 -0
- package/dist/services/aiChatStream.d.ts.map +1 -0
- package/dist/services/aiChatStream.js +254 -0
- package/dist/services/aiChatStream.js.map +1 -0
- package/dist/services/aiModifierTools.d.ts +16 -0
- package/dist/services/aiModifierTools.d.ts.map +1 -0
- package/dist/services/aiModifierTools.js +274 -0
- package/dist/services/aiModifierTools.js.map +1 -0
- package/dist/services/aiProposalTools.d.ts +32 -0
- package/dist/services/aiProposalTools.d.ts.map +1 -0
- package/dist/services/aiProposalTools.js +207 -0
- package/dist/services/aiProposalTools.js.map +1 -0
- package/dist/services/aiStream.d.ts +22 -0
- package/dist/services/aiStream.d.ts.map +1 -0
- package/dist/services/aiStream.js +142 -0
- package/dist/services/aiStream.js.map +1 -0
- package/dist/services/aiTools.d.ts +16 -0
- package/dist/services/aiTools.d.ts.map +1 -0
- package/dist/services/aiTools.js +271 -0
- package/dist/services/aiTools.js.map +1 -0
- package/dist/services/announcement.d.ts +42 -42
- package/dist/services/announcement.d.ts.map +1 -1
- package/dist/services/announcement.js +7 -2
- package/dist/services/announcement.js.map +1 -1
- package/dist/services/assignment.d.ts +355 -345
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +30 -9
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/attendance.d.ts +10 -10
- package/dist/services/auth.d.ts +4 -2
- package/dist/services/auth.d.ts.map +1 -1
- package/dist/services/auth.js +13 -4
- package/dist/services/auth.js.map +1 -1
- package/dist/services/class.d.ts +146 -142
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +24 -4
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +18 -18
- package/dist/services/conversation.d.ts +11 -11
- package/dist/services/department.d.ts +33 -33
- package/dist/services/discussion.d.ts +58 -58
- package/dist/services/discussion.d.ts.map +1 -1
- package/dist/services/discussion.js +15 -8
- package/dist/services/discussion.js.map +1 -1
- package/dist/services/discussionSummary.d.ts +21 -0
- package/dist/services/discussionSummary.d.ts.map +1 -0
- package/dist/services/discussionSummary.js +179 -0
- package/dist/services/discussionSummary.js.map +1 -0
- package/dist/services/embedding.d.ts +85 -0
- package/dist/services/embedding.d.ts.map +1 -0
- package/dist/services/embedding.js +372 -0
- package/dist/services/embedding.js.map +1 -0
- package/dist/services/event.d.ts +55 -53
- package/dist/services/event.d.ts.map +1 -1
- package/dist/services/file.d.ts +28 -28
- package/dist/services/folder.d.ts +36 -36
- 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 +16 -16
- package/dist/services/marketing.d.ts +2 -15
- package/dist/services/marketing.d.ts.map +1 -1
- package/dist/services/marketing.js +5 -5
- package/dist/services/marketing.js.map +1 -1
- package/dist/services/message.d.ts +11 -11
- package/dist/services/message.d.ts.map +1 -1
- package/dist/services/message.js +2 -2
- package/dist/services/message.js.map +1 -1
- package/dist/services/newtonChat.d.ts +4 -4
- package/dist/services/notification.d.ts +5 -5
- package/dist/services/notification.d.ts.map +1 -1
- package/dist/services/openaiDocumentGen.d.ts +37 -0
- package/dist/services/openaiDocumentGen.d.ts.map +1 -0
- package/dist/services/openaiDocumentGen.js +262 -0
- package/dist/services/openaiDocumentGen.js.map +1 -0
- package/dist/services/permissions.d.ts +14 -14
- package/dist/services/school.d.ts +54 -50
- package/dist/services/school.d.ts.map +1 -1
- package/dist/services/search.d.ts +13 -1
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +145 -2
- package/dist/services/search.js.map +1 -1
- package/dist/services/section.d.ts +3 -3
- package/dist/services/tag.d.ts +4 -4
- package/dist/services/user.d.ts +4 -4
- package/dist/services/user.d.ts.map +1 -1
- package/dist/services/user.js +10 -15
- package/dist/services/user.js.map +1 -1
- package/dist/services/userPrivacy.d.ts +86 -0
- package/dist/services/userPrivacy.d.ts.map +1 -0
- package/dist/services/userPrivacy.js +184 -0
- package/dist/services/userPrivacy.js.map +1 -0
- package/dist/services/worksheet.d.ts +86 -57
- package/dist/services/worksheet.d.ts.map +1 -1
- package/dist/services/worksheet.js +57 -5
- package/dist/services/worksheet.js.map +1 -1
- package/dist/utils/email.d.ts.map +1 -1
- package/dist/utils/email.js +7 -3
- package/dist/utils/email.js.map +1 -1
- package/dist/utils/streamBroadcast.d.ts +11 -0
- package/dist/utils/streamBroadcast.d.ts.map +1 -0
- package/dist/utils/streamBroadcast.js +32 -0
- package/dist/utils/streamBroadcast.js.map +1 -0
- package/dist/workers/connection.d.ts +15 -0
- package/dist/workers/connection.d.ts.map +1 -1
- package/dist/workers/connection.js +20 -2
- package/dist/workers/connection.js.map +1 -1
- package/dist/workers/index.js +4 -2
- package/dist/workers/index.js.map +1 -1
- package/dist/workers/processors/createRunJobWorker.d.ts.map +1 -1
- package/dist/workers/processors/createRunJobWorker.js +31 -8
- package/dist/workers/processors/createRunJobWorker.js.map +1 -1
- package/dist/workers/processors/embedContent.d.ts +8 -0
- package/dist/workers/processors/embedContent.d.ts.map +1 -0
- package/dist/workers/processors/embedContent.js +67 -0
- package/dist/workers/processors/embedContent.js.map +1 -0
- package/dist/workers/queues.d.ts +6 -0
- package/dist/workers/queues.d.ts.map +1 -1
- package/dist/workers/queues.js +5 -3
- package/dist/workers/queues.js.map +1 -1
- package/package.json +5 -1
- package/prisma/migrations/20260609215135_init/migration.sql +1412 -0
- package/prisma/migrations/20260610130000_add_worksheet_tags/migration.sql +13 -0
- package/prisma/migrations/20260610140000_expand_embedding_source_types/migration.sql +4 -0
- package/prisma/migrations/20260611120000_add_user_terms_acceptance/migration.sql +3 -0
- package/prisma/schema.prisma +44 -7
- package/src/index.ts +4 -0
- package/src/instrument.ts +1 -1
- package/src/lib/config/cors.ts +32 -9
- package/src/lib/config/env.ts +6 -0
- package/src/lib/googleCloudStorage.ts +21 -0
- package/src/lib/inferDocumentFormat.ts +58 -0
- package/src/lib/legal.ts +2 -0
- package/src/lib/prisma.ts +40 -1
- package/src/models/auth.ts +4 -0
- package/src/models/class.ts +3 -2
- package/src/models/marketing.ts +10 -2
- package/src/models/worksheet.ts +5 -2
- package/src/pipelines/aiLabChat.ts +245 -146
- package/src/pipelines/aiLabChatContract.ts +59 -69
- package/src/pipelines/aiNewtonChat.ts +46 -43
- package/src/pipelines/labChatPrompt.ts +115 -90
- package/src/routers/_app.ts +2 -0
- package/src/routers/auth.ts +13 -0
- package/src/routers/discussion.ts +7 -0
- package/src/routers/embedding.ts +164 -0
- package/src/routers/search.ts +10 -1
- package/src/routers/user.ts +26 -0
- package/src/routers/worksheet.ts +27 -0
- package/src/routes/aiStream.ts +827 -0
- package/src/seedDatabase.ts +4 -4
- package/src/services/aiChatStream.ts +341 -0
- package/src/services/aiModifierTools.ts +341 -0
- package/src/services/aiProposalTools.ts +274 -0
- package/src/services/aiStream.ts +175 -0
- package/src/services/aiTools.ts +290 -0
- package/src/services/announcement.ts +7 -0
- package/src/services/assignment.ts +31 -7
- package/src/services/auth.ts +14 -2
- package/src/services/class.ts +27 -2
- package/src/services/discussion.ts +22 -8
- package/src/services/discussionSummary.ts +226 -0
- package/src/services/embedding.ts +446 -0
- package/src/services/folder.ts +31 -0
- package/src/services/marketing.ts +3 -3
- package/src/services/message.ts +2 -2
- package/src/services/openaiDocumentGen.ts +319 -0
- package/src/services/search.ts +163 -1
- package/src/services/user.ts +9 -17
- package/src/services/userPrivacy.ts +196 -0
- package/src/services/worksheet.ts +77 -3
- package/src/utils/email.ts +5 -1
- package/src/utils/streamBroadcast.ts +48 -0
- package/src/workers/connection.ts +19 -0
- package/src/workers/index.ts +2 -0
- package/src/workers/processors/createRunJobWorker.ts +32 -6
- package/src/workers/processors/embedContent.ts +86 -0
- package/src/workers/queues.ts +5 -1
- package/tests/helpers/registerInput.ts +20 -0
- package/tests/integration/globalSetup.ts +10 -18
- package/tests/integration/routers/auth.test.ts +13 -18
- package/tests/unit/lib/inferDocumentFormat.test.ts +33 -0
- package/tests/unit/pipelines/aiLabChatContract.test.ts +38 -21
- package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
- package/tests/unit/services/aiChatStream.test.ts +92 -0
- package/tests/unit/services/openaiDocumentGen.test.ts +65 -0
- package/prisma/migrations/20250807062924_init/migration.sql +0 -436
- package/prisma/migrations/20250919063704_init2/migration.sql +0 -24
- package/prisma/migrations/20250920143543_add_profile_fields/migration.sql +0 -15
- package/prisma/migrations/20250922165147_add_chat_models/migration.sql +0 -68
- package/prisma/migrations/20250922165314_add_chat_roles/migration.sql +0 -5
- package/prisma/migrations/20250922171242_refactor_notification_system/migration.sql +0 -20
- package/prisma/migrations/20250922172208_add_mentions_system/migration.sql +0 -21
- package/prisma/migrations/20250925072732_add_lab_chat_system/migration.sql +0 -25
- package/prisma/migrations/20251020151505_add_upload_tracking_fields/migration.sql +0 -57
- package/prisma/migrations/20251109122857_annuoncements_comments/migration.sql +0 -30
- package/prisma/migrations/20251109135555_reactions_announcements_comments/migration.sql +0 -35
- package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +0 -14
- package/prisma/migrations/20260415103500_add_session_type/migration.sql +0 -33
- package/prisma/migrations/20260415133000_add_ai_usage_logs/migration.sql +0 -19
- package/prisma/migrations/20260417083000_add_conversation_member_hidden_at/migration.sql +0 -2
- package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +0 -60
- package/prisma/migrations/20260504071500_school_memberships/migration.sql +0 -81
- package/prisma/migrations/20260506162500_consolidate_run_job_and_unify_job_status/migration.sql +0 -166
- package/prisma/migrations/20260509220000_institution_overhaul/migration.sql +0 -184
- package/prisma/migrations/20260510170000_add_folder_permissions/migration.sql +0 -93
- package/prisma/migrations/20260510183000_add_discussions/migration.sql +0 -151
- /package/.github/workflows/{npm.yml → npm-publish.yml} +0 -0
|
@@ -30,10 +30,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
30
30
|
id: string;
|
|
31
31
|
createdAt: Date | null;
|
|
32
32
|
classId: string;
|
|
33
|
-
modifiedAt: Date | null;
|
|
34
33
|
title: string;
|
|
35
|
-
instructions: string;
|
|
36
34
|
dueDate: Date;
|
|
35
|
+
maxGrade: number | null;
|
|
36
|
+
eventId: string | null;
|
|
37
|
+
instructions: string;
|
|
38
|
+
modifiedAt: Date | null;
|
|
37
39
|
teacherId: string;
|
|
38
40
|
acceptFiles: boolean;
|
|
39
41
|
acceptExtendedResponse: boolean;
|
|
@@ -42,11 +44,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
42
44
|
aiPolicyLevel: number;
|
|
43
45
|
sectionId: string | null;
|
|
44
46
|
graded: boolean;
|
|
45
|
-
maxGrade: number | null;
|
|
46
47
|
weight: number;
|
|
47
48
|
inProgress: boolean;
|
|
48
49
|
template: boolean;
|
|
49
|
-
eventId: string | null;
|
|
50
50
|
markSchemeId: string | null;
|
|
51
51
|
order: number | null;
|
|
52
52
|
gradingBoundaryId: string | null;
|
|
@@ -74,10 +74,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
74
74
|
id: string;
|
|
75
75
|
createdAt: Date | null;
|
|
76
76
|
classId: string;
|
|
77
|
-
modifiedAt: Date | null;
|
|
78
77
|
title: string;
|
|
79
|
-
instructions: string;
|
|
80
78
|
dueDate: Date;
|
|
79
|
+
maxGrade: number | null;
|
|
80
|
+
eventId: string | null;
|
|
81
|
+
instructions: string;
|
|
82
|
+
modifiedAt: Date | null;
|
|
81
83
|
teacherId: string;
|
|
82
84
|
acceptFiles: boolean;
|
|
83
85
|
acceptExtendedResponse: boolean;
|
|
@@ -86,11 +88,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
86
88
|
aiPolicyLevel: number;
|
|
87
89
|
sectionId: string | null;
|
|
88
90
|
graded: boolean;
|
|
89
|
-
maxGrade: number | null;
|
|
90
91
|
weight: number;
|
|
91
92
|
inProgress: boolean;
|
|
92
93
|
template: boolean;
|
|
93
|
-
eventId: string | null;
|
|
94
94
|
markSchemeId: string | null;
|
|
95
95
|
order: number | null;
|
|
96
96
|
gradingBoundaryId: string | null;
|
|
@@ -102,15 +102,16 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
102
102
|
[x: string]: unknown;
|
|
103
103
|
classId: string;
|
|
104
104
|
title: string;
|
|
105
|
-
instructions: string;
|
|
106
105
|
dueDate: string;
|
|
107
|
-
|
|
106
|
+
instructions: string;
|
|
107
|
+
type?: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
|
|
108
108
|
id?: string | undefined;
|
|
109
109
|
files?: {
|
|
110
110
|
type: string;
|
|
111
111
|
name: string;
|
|
112
112
|
size: number;
|
|
113
113
|
}[] | undefined;
|
|
114
|
+
maxGrade?: number | undefined;
|
|
114
115
|
acceptFiles?: boolean | undefined;
|
|
115
116
|
acceptExtendedResponse?: boolean | undefined;
|
|
116
117
|
acceptWorksheet?: boolean | undefined;
|
|
@@ -118,7 +119,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
118
119
|
aiPolicyLevel?: number | undefined;
|
|
119
120
|
sectionId?: string | undefined;
|
|
120
121
|
graded?: boolean | undefined;
|
|
121
|
-
maxGrade?: number | undefined;
|
|
122
122
|
weight?: number | undefined;
|
|
123
123
|
inProgress?: boolean | undefined;
|
|
124
124
|
markSchemeId?: string | undefined;
|
|
@@ -130,30 +130,30 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
130
130
|
};
|
|
131
131
|
output: {
|
|
132
132
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
133
|
-
id: string;
|
|
134
133
|
class: {
|
|
135
|
-
name: string;
|
|
136
134
|
id: string;
|
|
135
|
+
name: string;
|
|
137
136
|
};
|
|
138
137
|
section: {
|
|
139
|
-
name: string;
|
|
140
138
|
id: string;
|
|
139
|
+
name: string;
|
|
141
140
|
} | null;
|
|
141
|
+
id: string;
|
|
142
142
|
title: string;
|
|
143
|
-
instructions: string;
|
|
144
143
|
dueDate: Date;
|
|
145
|
-
graded: boolean;
|
|
146
144
|
maxGrade: number | null;
|
|
145
|
+
attachments: {
|
|
146
|
+
type: string;
|
|
147
|
+
id: string;
|
|
148
|
+
name: string;
|
|
149
|
+
}[];
|
|
150
|
+
instructions: string;
|
|
151
|
+
graded: boolean;
|
|
147
152
|
weight: number;
|
|
148
153
|
teacher: {
|
|
149
154
|
id: string;
|
|
150
155
|
username: string;
|
|
151
156
|
};
|
|
152
|
-
attachments: {
|
|
153
|
-
type: string;
|
|
154
|
-
name: string;
|
|
155
|
-
id: string;
|
|
156
|
-
}[];
|
|
157
157
|
};
|
|
158
158
|
meta: object;
|
|
159
159
|
}>;
|
|
@@ -161,18 +161,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
161
161
|
input: {
|
|
162
162
|
[x: string]: unknown;
|
|
163
163
|
classId: string;
|
|
164
|
-
assignmentId: string;
|
|
165
164
|
title: string;
|
|
165
|
+
assignmentId: string;
|
|
166
166
|
};
|
|
167
167
|
output: {
|
|
168
168
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
169
169
|
id: string;
|
|
170
170
|
createdAt: Date | null;
|
|
171
171
|
classId: string;
|
|
172
|
-
modifiedAt: Date | null;
|
|
173
172
|
title: string;
|
|
174
|
-
instructions: string;
|
|
175
173
|
dueDate: Date;
|
|
174
|
+
maxGrade: number | null;
|
|
175
|
+
eventId: string | null;
|
|
176
|
+
instructions: string;
|
|
177
|
+
modifiedAt: Date | null;
|
|
176
178
|
teacherId: string;
|
|
177
179
|
acceptFiles: boolean;
|
|
178
180
|
acceptExtendedResponse: boolean;
|
|
@@ -181,11 +183,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
181
183
|
aiPolicyLevel: number;
|
|
182
184
|
sectionId: string | null;
|
|
183
185
|
graded: boolean;
|
|
184
|
-
maxGrade: number | null;
|
|
185
186
|
weight: number;
|
|
186
187
|
inProgress: boolean;
|
|
187
188
|
template: boolean;
|
|
188
|
-
eventId: string | null;
|
|
189
189
|
markSchemeId: string | null;
|
|
190
190
|
order: number | null;
|
|
191
191
|
gradingBoundaryId: string | null;
|
|
@@ -197,15 +197,16 @@ 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;
|
|
204
204
|
size: number;
|
|
205
205
|
}[] | undefined;
|
|
206
206
|
title?: string | undefined;
|
|
207
|
-
instructions?: string | undefined;
|
|
208
207
|
dueDate?: string | undefined;
|
|
208
|
+
maxGrade?: number | undefined;
|
|
209
|
+
instructions?: string | undefined;
|
|
209
210
|
acceptFiles?: boolean | undefined;
|
|
210
211
|
acceptExtendedResponse?: boolean | undefined;
|
|
211
212
|
acceptWorksheet?: boolean | undefined;
|
|
@@ -213,7 +214,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
213
214
|
aiPolicyLevel?: number | undefined;
|
|
214
215
|
sectionId?: string | null | undefined;
|
|
215
216
|
graded?: boolean | undefined;
|
|
216
|
-
maxGrade?: number | undefined;
|
|
217
217
|
weight?: number | undefined;
|
|
218
218
|
inProgress?: boolean | undefined;
|
|
219
219
|
existingFileIds?: string[] | undefined;
|
|
@@ -223,15 +223,13 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
223
223
|
};
|
|
224
224
|
output: {
|
|
225
225
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
226
|
-
id: string;
|
|
227
|
-
createdAt: Date | null;
|
|
228
226
|
class: {
|
|
229
|
-
|
|
227
|
+
section: string;
|
|
230
228
|
id: string;
|
|
229
|
+
name: string;
|
|
231
230
|
schoolId: string | null;
|
|
232
|
-
subject: string;
|
|
233
231
|
color: string | null;
|
|
234
|
-
|
|
232
|
+
subject: string;
|
|
235
233
|
syllabus: string | null;
|
|
236
234
|
departmentId: string | null;
|
|
237
235
|
discussionsEnabled: boolean;
|
|
@@ -239,12 +237,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
239
237
|
studentsCanReply: boolean;
|
|
240
238
|
};
|
|
241
239
|
section: {
|
|
242
|
-
name: string;
|
|
243
240
|
id: string;
|
|
241
|
+
name: string;
|
|
244
242
|
color: string | null;
|
|
245
243
|
classId: string;
|
|
246
244
|
order: number | null;
|
|
247
245
|
} | null;
|
|
246
|
+
id: string;
|
|
247
|
+
createdAt: Date | null;
|
|
248
248
|
submissions: {
|
|
249
249
|
student: {
|
|
250
250
|
id: string;
|
|
@@ -252,37 +252,28 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
252
252
|
};
|
|
253
253
|
}[];
|
|
254
254
|
title: string;
|
|
255
|
-
instructions: string;
|
|
256
255
|
dueDate: Date;
|
|
257
|
-
graded: boolean;
|
|
258
256
|
maxGrade: number | null;
|
|
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;
|
|
272
|
-
name: string;
|
|
273
260
|
id: string;
|
|
261
|
+
name: string;
|
|
274
262
|
size: number | null;
|
|
275
263
|
uploadedAt: Date | null;
|
|
276
|
-
thumbnailId: string | null;
|
|
277
264
|
thumbnail: {
|
|
278
265
|
path: string;
|
|
279
266
|
type: string;
|
|
280
|
-
name: string;
|
|
281
267
|
id: string;
|
|
282
268
|
userId: string | null;
|
|
283
|
-
|
|
269
|
+
name: string;
|
|
284
270
|
size: number | null;
|
|
285
271
|
uploadedAt: Date | null;
|
|
272
|
+
assignmentId: string | null;
|
|
273
|
+
submissionId: string | null;
|
|
274
|
+
thumbnailId: string | null;
|
|
275
|
+
annotationId: string | null;
|
|
276
|
+
conversationId: string | null;
|
|
286
277
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
287
278
|
uploadUrl: string | null;
|
|
288
279
|
uploadExpiresAt: Date | null;
|
|
@@ -292,19 +283,30 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
292
283
|
uploadRetryCount: number;
|
|
293
284
|
isOrphaned: boolean;
|
|
294
285
|
cleanupAt: Date | null;
|
|
295
|
-
thumbnailId: string | null;
|
|
296
|
-
assignmentId: string | null;
|
|
297
|
-
submissionId: string | null;
|
|
298
|
-
annotationId: string | null;
|
|
299
286
|
classDraftId: string | null;
|
|
300
|
-
|
|
287
|
+
folderId: string | null;
|
|
301
288
|
messageId: string | null;
|
|
302
289
|
announcementId: string | null;
|
|
303
290
|
discussionId: string | null;
|
|
304
291
|
discussionReplyId: string | null;
|
|
305
292
|
schoolDevelopementProgramId: string | null;
|
|
306
293
|
} | null;
|
|
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
|
+
termsAcceptedAt: Date | null;
|
|
307
|
+
termsVersion: string | null;
|
|
308
|
+
schoolId: string | null;
|
|
309
|
+
};
|
|
308
310
|
};
|
|
309
311
|
meta: object;
|
|
310
312
|
}>;
|
|
@@ -326,16 +328,24 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
326
328
|
};
|
|
327
329
|
output: {
|
|
328
330
|
sections: {
|
|
329
|
-
name: string;
|
|
330
331
|
id: string;
|
|
332
|
+
name: string;
|
|
331
333
|
}[];
|
|
332
334
|
class: {
|
|
333
|
-
name: string;
|
|
334
335
|
id: string;
|
|
336
|
+
name: string;
|
|
335
337
|
};
|
|
338
|
+
markScheme: {
|
|
339
|
+
id: string;
|
|
340
|
+
structured: string;
|
|
341
|
+
} | null;
|
|
342
|
+
gradingBoundary: {
|
|
343
|
+
id: string;
|
|
344
|
+
structured: string;
|
|
345
|
+
} | null;
|
|
336
346
|
section: {
|
|
337
|
-
name: string;
|
|
338
347
|
id: string;
|
|
348
|
+
name: string;
|
|
339
349
|
} | null;
|
|
340
350
|
submissions: {
|
|
341
351
|
student: {
|
|
@@ -343,48 +353,42 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
343
353
|
username: string;
|
|
344
354
|
};
|
|
345
355
|
}[];
|
|
346
|
-
markScheme: {
|
|
347
|
-
id: string;
|
|
348
|
-
structured: string;
|
|
349
|
-
} | null;
|
|
350
|
-
gradingBoundary: {
|
|
351
|
-
id: string;
|
|
352
|
-
structured: string;
|
|
353
|
-
} | null;
|
|
354
356
|
worksheets: {
|
|
355
|
-
name: string;
|
|
356
357
|
id: string;
|
|
358
|
+
name: string;
|
|
357
359
|
}[];
|
|
358
|
-
teacher: {
|
|
359
|
-
id: string;
|
|
360
|
-
username: string;
|
|
361
|
-
};
|
|
362
360
|
attachments: {
|
|
363
361
|
path: string;
|
|
364
362
|
type: string;
|
|
365
|
-
name: string;
|
|
366
363
|
id: string;
|
|
364
|
+
name: string;
|
|
367
365
|
size: number | null;
|
|
368
366
|
uploadedAt: Date | null;
|
|
369
367
|
thumbnailId: string | null;
|
|
370
368
|
}[];
|
|
369
|
+
teacher: {
|
|
370
|
+
id: string;
|
|
371
|
+
username: string;
|
|
372
|
+
};
|
|
371
373
|
eventAttached: {
|
|
372
|
-
name: string | null;
|
|
373
374
|
id: string;
|
|
375
|
+
location: string | null;
|
|
376
|
+
name: string | null;
|
|
374
377
|
color: string | null;
|
|
375
378
|
startTime: Date;
|
|
376
379
|
endTime: Date;
|
|
377
|
-
location: string | null;
|
|
378
380
|
remarks: string | null;
|
|
379
381
|
} | null;
|
|
380
382
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
381
383
|
id: string;
|
|
382
384
|
createdAt: Date | null;
|
|
383
385
|
classId: string;
|
|
384
|
-
modifiedAt: Date | null;
|
|
385
386
|
title: string;
|
|
386
|
-
instructions: string;
|
|
387
387
|
dueDate: Date;
|
|
388
|
+
maxGrade: number | null;
|
|
389
|
+
eventId: string | null;
|
|
390
|
+
instructions: string;
|
|
391
|
+
modifiedAt: Date | null;
|
|
388
392
|
teacherId: string;
|
|
389
393
|
acceptFiles: boolean;
|
|
390
394
|
acceptExtendedResponse: boolean;
|
|
@@ -393,11 +397,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
393
397
|
aiPolicyLevel: number;
|
|
394
398
|
sectionId: string | null;
|
|
395
399
|
graded: boolean;
|
|
396
|
-
maxGrade: number | null;
|
|
397
400
|
weight: number;
|
|
398
401
|
inProgress: boolean;
|
|
399
402
|
template: boolean;
|
|
400
|
-
eventId: string | null;
|
|
401
403
|
markSchemeId: string | null;
|
|
402
404
|
order: number | null;
|
|
403
405
|
gradingBoundaryId: string | null;
|
|
@@ -414,12 +416,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
414
416
|
late: boolean;
|
|
415
417
|
assignment: {
|
|
416
418
|
class: {
|
|
417
|
-
|
|
419
|
+
section: string;
|
|
418
420
|
id: string;
|
|
421
|
+
name: string;
|
|
419
422
|
schoolId: string | null;
|
|
420
|
-
subject: string;
|
|
421
423
|
color: string | null;
|
|
422
|
-
|
|
424
|
+
subject: string;
|
|
423
425
|
syllabus: string | null;
|
|
424
426
|
departmentId: string | null;
|
|
425
427
|
discussionsEnabled: boolean;
|
|
@@ -435,18 +437,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
435
437
|
structured: string;
|
|
436
438
|
} | null;
|
|
437
439
|
worksheets: {
|
|
438
|
-
name: string;
|
|
439
440
|
id: string;
|
|
441
|
+
name: string;
|
|
440
442
|
}[];
|
|
441
443
|
} & {
|
|
442
444
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
443
445
|
id: string;
|
|
444
446
|
createdAt: Date | null;
|
|
445
447
|
classId: string;
|
|
446
|
-
modifiedAt: Date | null;
|
|
447
448
|
title: string;
|
|
448
|
-
instructions: string;
|
|
449
449
|
dueDate: Date;
|
|
450
|
+
maxGrade: number | null;
|
|
451
|
+
eventId: string | null;
|
|
452
|
+
instructions: string;
|
|
453
|
+
modifiedAt: Date | null;
|
|
450
454
|
teacherId: string;
|
|
451
455
|
acceptFiles: boolean;
|
|
452
456
|
acceptExtendedResponse: boolean;
|
|
@@ -455,24 +459,26 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
455
459
|
aiPolicyLevel: number;
|
|
456
460
|
sectionId: string | null;
|
|
457
461
|
graded: boolean;
|
|
458
|
-
maxGrade: number | null;
|
|
459
462
|
weight: number;
|
|
460
463
|
inProgress: boolean;
|
|
461
464
|
template: boolean;
|
|
462
|
-
eventId: string | null;
|
|
463
465
|
markSchemeId: string | null;
|
|
464
466
|
order: number | null;
|
|
465
467
|
gradingBoundaryId: string | null;
|
|
466
468
|
};
|
|
467
|
-
|
|
469
|
+
attachments: {
|
|
468
470
|
path: string;
|
|
469
471
|
type: string;
|
|
470
|
-
name: string;
|
|
471
472
|
id: string;
|
|
472
473
|
userId: string | null;
|
|
473
|
-
|
|
474
|
+
name: string;
|
|
474
475
|
size: number | null;
|
|
475
476
|
uploadedAt: Date | null;
|
|
477
|
+
assignmentId: string | null;
|
|
478
|
+
submissionId: string | null;
|
|
479
|
+
thumbnailId: string | null;
|
|
480
|
+
annotationId: string | null;
|
|
481
|
+
conversationId: string | null;
|
|
476
482
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
477
483
|
uploadUrl: string | null;
|
|
478
484
|
uploadExpiresAt: Date | null;
|
|
@@ -482,27 +488,27 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
482
488
|
uploadRetryCount: number;
|
|
483
489
|
isOrphaned: boolean;
|
|
484
490
|
cleanupAt: Date | null;
|
|
485
|
-
thumbnailId: string | null;
|
|
486
|
-
assignmentId: string | null;
|
|
487
|
-
submissionId: string | null;
|
|
488
|
-
annotationId: string | null;
|
|
489
491
|
classDraftId: string | null;
|
|
490
|
-
|
|
492
|
+
folderId: string | null;
|
|
491
493
|
messageId: string | null;
|
|
492
494
|
announcementId: string | null;
|
|
493
495
|
discussionId: string | null;
|
|
494
496
|
discussionReplyId: string | null;
|
|
495
497
|
schoolDevelopementProgramId: string | null;
|
|
496
498
|
}[];
|
|
497
|
-
|
|
499
|
+
annotations: {
|
|
498
500
|
path: string;
|
|
499
501
|
type: string;
|
|
500
|
-
name: string;
|
|
501
502
|
id: string;
|
|
502
503
|
userId: string | null;
|
|
503
|
-
|
|
504
|
+
name: string;
|
|
504
505
|
size: number | null;
|
|
505
506
|
uploadedAt: Date | null;
|
|
507
|
+
assignmentId: string | null;
|
|
508
|
+
submissionId: string | null;
|
|
509
|
+
thumbnailId: string | null;
|
|
510
|
+
annotationId: string | null;
|
|
511
|
+
conversationId: string | null;
|
|
506
512
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
507
513
|
uploadUrl: string | null;
|
|
508
514
|
uploadExpiresAt: Date | null;
|
|
@@ -512,12 +518,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
512
518
|
uploadRetryCount: number;
|
|
513
519
|
isOrphaned: boolean;
|
|
514
520
|
cleanupAt: Date | null;
|
|
515
|
-
thumbnailId: string | null;
|
|
516
|
-
assignmentId: string | null;
|
|
517
|
-
submissionId: string | null;
|
|
518
|
-
annotationId: string | null;
|
|
519
521
|
classDraftId: string | null;
|
|
520
|
-
|
|
522
|
+
folderId: string | null;
|
|
521
523
|
messageId: string | null;
|
|
522
524
|
announcementId: string | null;
|
|
523
525
|
discussionId: string | null;
|
|
@@ -531,8 +533,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
531
533
|
id: string;
|
|
532
534
|
createdAt: Date;
|
|
533
535
|
assignmentId: string;
|
|
534
|
-
modifiedAt: Date;
|
|
535
536
|
studentId: string;
|
|
537
|
+
modifiedAt: Date;
|
|
536
538
|
extendedResponse: string | null;
|
|
537
539
|
gradeReceived: number | null;
|
|
538
540
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -556,12 +558,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
556
558
|
late: boolean;
|
|
557
559
|
assignment: {
|
|
558
560
|
class: {
|
|
559
|
-
|
|
561
|
+
section: string;
|
|
560
562
|
id: string;
|
|
563
|
+
name: string;
|
|
561
564
|
schoolId: string | null;
|
|
562
|
-
subject: string;
|
|
563
565
|
color: string | null;
|
|
564
|
-
|
|
566
|
+
subject: string;
|
|
565
567
|
syllabus: string | null;
|
|
566
568
|
departmentId: string | null;
|
|
567
569
|
discussionsEnabled: boolean;
|
|
@@ -577,18 +579,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
577
579
|
structured: string;
|
|
578
580
|
} | null;
|
|
579
581
|
worksheets: {
|
|
580
|
-
name: string;
|
|
581
582
|
id: string;
|
|
583
|
+
name: string;
|
|
582
584
|
}[];
|
|
583
585
|
} & {
|
|
584
586
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
585
587
|
id: string;
|
|
586
588
|
createdAt: Date | null;
|
|
587
589
|
classId: string;
|
|
588
|
-
modifiedAt: Date | null;
|
|
589
590
|
title: string;
|
|
590
|
-
instructions: string;
|
|
591
591
|
dueDate: Date;
|
|
592
|
+
maxGrade: number | null;
|
|
593
|
+
eventId: string | null;
|
|
594
|
+
instructions: string;
|
|
595
|
+
modifiedAt: Date | null;
|
|
592
596
|
teacherId: string;
|
|
593
597
|
acceptFiles: boolean;
|
|
594
598
|
acceptExtendedResponse: boolean;
|
|
@@ -597,24 +601,26 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
597
601
|
aiPolicyLevel: number;
|
|
598
602
|
sectionId: string | null;
|
|
599
603
|
graded: boolean;
|
|
600
|
-
maxGrade: number | null;
|
|
601
604
|
weight: number;
|
|
602
605
|
inProgress: boolean;
|
|
603
606
|
template: boolean;
|
|
604
|
-
eventId: string | null;
|
|
605
607
|
markSchemeId: string | null;
|
|
606
608
|
order: number | null;
|
|
607
609
|
gradingBoundaryId: string | null;
|
|
608
610
|
};
|
|
609
|
-
|
|
611
|
+
attachments: {
|
|
610
612
|
path: string;
|
|
611
613
|
type: string;
|
|
612
|
-
name: string;
|
|
613
614
|
id: string;
|
|
614
615
|
userId: string | null;
|
|
615
|
-
|
|
616
|
+
name: string;
|
|
616
617
|
size: number | null;
|
|
617
618
|
uploadedAt: Date | null;
|
|
619
|
+
assignmentId: string | null;
|
|
620
|
+
submissionId: string | null;
|
|
621
|
+
thumbnailId: string | null;
|
|
622
|
+
annotationId: string | null;
|
|
623
|
+
conversationId: string | null;
|
|
618
624
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
619
625
|
uploadUrl: string | null;
|
|
620
626
|
uploadExpiresAt: Date | null;
|
|
@@ -624,27 +630,27 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
624
630
|
uploadRetryCount: number;
|
|
625
631
|
isOrphaned: boolean;
|
|
626
632
|
cleanupAt: Date | null;
|
|
627
|
-
thumbnailId: string | null;
|
|
628
|
-
assignmentId: string | null;
|
|
629
|
-
submissionId: string | null;
|
|
630
|
-
annotationId: string | null;
|
|
631
633
|
classDraftId: string | null;
|
|
632
|
-
|
|
634
|
+
folderId: string | null;
|
|
633
635
|
messageId: string | null;
|
|
634
636
|
announcementId: string | null;
|
|
635
637
|
discussionId: string | null;
|
|
636
638
|
discussionReplyId: string | null;
|
|
637
639
|
schoolDevelopementProgramId: string | null;
|
|
638
640
|
}[];
|
|
639
|
-
|
|
641
|
+
annotations: {
|
|
640
642
|
path: string;
|
|
641
643
|
type: string;
|
|
642
|
-
name: string;
|
|
643
644
|
id: string;
|
|
644
645
|
userId: string | null;
|
|
645
|
-
|
|
646
|
+
name: string;
|
|
646
647
|
size: number | null;
|
|
647
648
|
uploadedAt: Date | null;
|
|
649
|
+
assignmentId: string | null;
|
|
650
|
+
submissionId: string | null;
|
|
651
|
+
thumbnailId: string | null;
|
|
652
|
+
annotationId: string | null;
|
|
653
|
+
conversationId: string | null;
|
|
648
654
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
649
655
|
uploadUrl: string | null;
|
|
650
656
|
uploadExpiresAt: Date | null;
|
|
@@ -654,12 +660,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
654
660
|
uploadRetryCount: number;
|
|
655
661
|
isOrphaned: boolean;
|
|
656
662
|
cleanupAt: Date | null;
|
|
657
|
-
thumbnailId: string | null;
|
|
658
|
-
assignmentId: string | null;
|
|
659
|
-
submissionId: string | null;
|
|
660
|
-
annotationId: string | null;
|
|
661
663
|
classDraftId: string | null;
|
|
662
|
-
|
|
664
|
+
folderId: string | null;
|
|
663
665
|
messageId: string | null;
|
|
664
666
|
announcementId: string | null;
|
|
665
667
|
discussionId: string | null;
|
|
@@ -671,13 +673,13 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
671
673
|
username: string;
|
|
672
674
|
profile: {
|
|
673
675
|
id: string;
|
|
674
|
-
createdAt: Date;
|
|
675
|
-
updatedAt: Date;
|
|
676
676
|
userId: string;
|
|
677
|
-
location: string | null;
|
|
678
677
|
displayName: string | null;
|
|
679
678
|
bio: string | null;
|
|
679
|
+
location: string | null;
|
|
680
680
|
website: string | null;
|
|
681
|
+
createdAt: Date;
|
|
682
|
+
updatedAt: Date;
|
|
681
683
|
profilePicture: string | null;
|
|
682
684
|
profilePictureThumbnail: string | null;
|
|
683
685
|
} | null;
|
|
@@ -685,8 +687,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
685
687
|
id: string;
|
|
686
688
|
createdAt: Date;
|
|
687
689
|
assignmentId: string;
|
|
688
|
-
modifiedAt: Date;
|
|
689
690
|
studentId: string;
|
|
691
|
+
modifiedAt: Date;
|
|
690
692
|
extendedResponse: string | null;
|
|
691
693
|
gradeReceived: number | null;
|
|
692
694
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -719,12 +721,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
719
721
|
output: {
|
|
720
722
|
assignment: {
|
|
721
723
|
class: {
|
|
722
|
-
|
|
724
|
+
section: string;
|
|
723
725
|
id: string;
|
|
726
|
+
name: string;
|
|
724
727
|
schoolId: string | null;
|
|
725
|
-
subject: string;
|
|
726
728
|
color: string | null;
|
|
727
|
-
|
|
729
|
+
subject: string;
|
|
728
730
|
syllabus: string | null;
|
|
729
731
|
departmentId: string | null;
|
|
730
732
|
discussionsEnabled: boolean;
|
|
@@ -744,10 +746,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
744
746
|
id: string;
|
|
745
747
|
createdAt: Date | null;
|
|
746
748
|
classId: string;
|
|
747
|
-
modifiedAt: Date | null;
|
|
748
749
|
title: string;
|
|
749
|
-
instructions: string;
|
|
750
750
|
dueDate: Date;
|
|
751
|
+
maxGrade: number | null;
|
|
752
|
+
eventId: string | null;
|
|
753
|
+
instructions: string;
|
|
754
|
+
modifiedAt: Date | null;
|
|
751
755
|
teacherId: string;
|
|
752
756
|
acceptFiles: boolean;
|
|
753
757
|
acceptExtendedResponse: boolean;
|
|
@@ -756,11 +760,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
756
760
|
aiPolicyLevel: number;
|
|
757
761
|
sectionId: string | null;
|
|
758
762
|
graded: boolean;
|
|
759
|
-
maxGrade: number | null;
|
|
760
763
|
weight: number;
|
|
761
764
|
inProgress: boolean;
|
|
762
765
|
template: boolean;
|
|
763
|
-
eventId: string | null;
|
|
764
766
|
markSchemeId: string | null;
|
|
765
767
|
order: number | null;
|
|
766
768
|
gradingBoundaryId: string | null;
|
|
@@ -768,12 +770,16 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
768
770
|
attachments: {
|
|
769
771
|
path: string;
|
|
770
772
|
type: string;
|
|
771
|
-
name: string;
|
|
772
773
|
id: string;
|
|
773
774
|
userId: string | null;
|
|
774
|
-
|
|
775
|
+
name: string;
|
|
775
776
|
size: number | null;
|
|
776
777
|
uploadedAt: Date | null;
|
|
778
|
+
assignmentId: string | null;
|
|
779
|
+
submissionId: string | null;
|
|
780
|
+
thumbnailId: string | null;
|
|
781
|
+
annotationId: string | null;
|
|
782
|
+
conversationId: string | null;
|
|
777
783
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
778
784
|
uploadUrl: string | null;
|
|
779
785
|
uploadExpiresAt: Date | null;
|
|
@@ -783,12 +789,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
783
789
|
uploadRetryCount: number;
|
|
784
790
|
isOrphaned: boolean;
|
|
785
791
|
cleanupAt: Date | null;
|
|
786
|
-
thumbnailId: string | null;
|
|
787
|
-
assignmentId: string | null;
|
|
788
|
-
submissionId: string | null;
|
|
789
|
-
annotationId: string | null;
|
|
790
792
|
classDraftId: string | null;
|
|
791
|
-
|
|
793
|
+
folderId: string | null;
|
|
792
794
|
messageId: string | null;
|
|
793
795
|
announcementId: string | null;
|
|
794
796
|
discussionId: string | null;
|
|
@@ -803,8 +805,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
803
805
|
id: string;
|
|
804
806
|
createdAt: Date;
|
|
805
807
|
assignmentId: string;
|
|
806
|
-
modifiedAt: Date;
|
|
807
808
|
studentId: string;
|
|
809
|
+
modifiedAt: Date;
|
|
808
810
|
extendedResponse: string | null;
|
|
809
811
|
gradeReceived: number | null;
|
|
810
812
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -828,12 +830,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
828
830
|
late: boolean;
|
|
829
831
|
assignment: {
|
|
830
832
|
class: {
|
|
831
|
-
|
|
833
|
+
section: string;
|
|
832
834
|
id: string;
|
|
835
|
+
name: string;
|
|
833
836
|
schoolId: string | null;
|
|
834
|
-
subject: string;
|
|
835
837
|
color: string | null;
|
|
836
|
-
|
|
838
|
+
subject: string;
|
|
837
839
|
syllabus: string | null;
|
|
838
840
|
departmentId: string | null;
|
|
839
841
|
discussionsEnabled: boolean;
|
|
@@ -853,10 +855,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
853
855
|
id: string;
|
|
854
856
|
createdAt: Date | null;
|
|
855
857
|
classId: string;
|
|
856
|
-
modifiedAt: Date | null;
|
|
857
858
|
title: string;
|
|
858
|
-
instructions: string;
|
|
859
859
|
dueDate: Date;
|
|
860
|
+
maxGrade: number | null;
|
|
861
|
+
eventId: string | null;
|
|
862
|
+
instructions: string;
|
|
863
|
+
modifiedAt: Date | null;
|
|
860
864
|
teacherId: string;
|
|
861
865
|
acceptFiles: boolean;
|
|
862
866
|
acceptExtendedResponse: boolean;
|
|
@@ -865,11 +869,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
865
869
|
aiPolicyLevel: number;
|
|
866
870
|
sectionId: string | null;
|
|
867
871
|
graded: boolean;
|
|
868
|
-
maxGrade: number | null;
|
|
869
872
|
weight: number;
|
|
870
873
|
inProgress: boolean;
|
|
871
874
|
template: boolean;
|
|
872
|
-
eventId: string | null;
|
|
873
875
|
markSchemeId: string | null;
|
|
874
876
|
order: number | null;
|
|
875
877
|
gradingBoundaryId: string | null;
|
|
@@ -878,12 +880,16 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
878
880
|
thumbnail: {
|
|
879
881
|
path: string;
|
|
880
882
|
type: string;
|
|
881
|
-
name: string;
|
|
882
883
|
id: string;
|
|
883
884
|
userId: string | null;
|
|
884
|
-
|
|
885
|
+
name: string;
|
|
885
886
|
size: number | null;
|
|
886
887
|
uploadedAt: Date | null;
|
|
888
|
+
assignmentId: string | null;
|
|
889
|
+
submissionId: string | null;
|
|
890
|
+
thumbnailId: string | null;
|
|
891
|
+
annotationId: string | null;
|
|
892
|
+
conversationId: string | null;
|
|
887
893
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
888
894
|
uploadUrl: string | null;
|
|
889
895
|
uploadExpiresAt: Date | null;
|
|
@@ -893,12 +899,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
893
899
|
uploadRetryCount: number;
|
|
894
900
|
isOrphaned: boolean;
|
|
895
901
|
cleanupAt: Date | null;
|
|
896
|
-
thumbnailId: string | null;
|
|
897
|
-
assignmentId: string | null;
|
|
898
|
-
submissionId: string | null;
|
|
899
|
-
annotationId: string | null;
|
|
900
902
|
classDraftId: string | null;
|
|
901
|
-
|
|
903
|
+
folderId: string | null;
|
|
902
904
|
messageId: string | null;
|
|
903
905
|
announcementId: string | null;
|
|
904
906
|
discussionId: string | null;
|
|
@@ -908,12 +910,16 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
908
910
|
} & {
|
|
909
911
|
path: string;
|
|
910
912
|
type: string;
|
|
911
|
-
name: string;
|
|
912
913
|
id: string;
|
|
913
914
|
userId: string | null;
|
|
914
|
-
|
|
915
|
+
name: string;
|
|
915
916
|
size: number | null;
|
|
916
917
|
uploadedAt: Date | null;
|
|
918
|
+
assignmentId: string | null;
|
|
919
|
+
submissionId: string | null;
|
|
920
|
+
thumbnailId: string | null;
|
|
921
|
+
annotationId: string | null;
|
|
922
|
+
conversationId: string | null;
|
|
917
923
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
918
924
|
uploadUrl: string | null;
|
|
919
925
|
uploadExpiresAt: Date | null;
|
|
@@ -923,12 +929,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
923
929
|
uploadRetryCount: number;
|
|
924
930
|
isOrphaned: boolean;
|
|
925
931
|
cleanupAt: Date | null;
|
|
926
|
-
thumbnailId: string | null;
|
|
927
|
-
assignmentId: string | null;
|
|
928
|
-
submissionId: string | null;
|
|
929
|
-
annotationId: string | null;
|
|
930
932
|
classDraftId: string | null;
|
|
931
|
-
|
|
933
|
+
folderId: string | null;
|
|
932
934
|
messageId: string | null;
|
|
933
935
|
announcementId: string | null;
|
|
934
936
|
discussionId: string | null;
|
|
@@ -939,16 +941,16 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
939
941
|
id: string;
|
|
940
942
|
username: string;
|
|
941
943
|
profile: {
|
|
942
|
-
displayName: string | null;
|
|
943
944
|
profilePicture: string | null;
|
|
945
|
+
displayName: string | null;
|
|
944
946
|
profilePictureThumbnail: string | null;
|
|
945
947
|
} | null;
|
|
946
948
|
};
|
|
947
949
|
id: string;
|
|
948
950
|
createdAt: Date;
|
|
949
951
|
assignmentId: string;
|
|
950
|
-
modifiedAt: Date;
|
|
951
952
|
studentId: string;
|
|
953
|
+
modifiedAt: Date;
|
|
952
954
|
extendedResponse: string | null;
|
|
953
955
|
gradeReceived: number | null;
|
|
954
956
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -974,8 +976,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
974
976
|
id: string;
|
|
975
977
|
username: string;
|
|
976
978
|
profile: {
|
|
977
|
-
displayName: string | null;
|
|
978
979
|
profilePicture: string | null;
|
|
980
|
+
displayName: string | null;
|
|
979
981
|
profilePictureThumbnail: string | null;
|
|
980
982
|
} | null;
|
|
981
983
|
};
|
|
@@ -984,35 +986,35 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
984
986
|
id: string;
|
|
985
987
|
username: string;
|
|
986
988
|
profile: {
|
|
987
|
-
displayName: string | null;
|
|
988
989
|
profilePicture: string | null;
|
|
990
|
+
displayName: string | null;
|
|
989
991
|
profilePictureThumbnail: string | null;
|
|
990
992
|
} | null;
|
|
991
993
|
};
|
|
992
994
|
} & {
|
|
993
995
|
id: string;
|
|
994
996
|
createdAt: Date;
|
|
997
|
+
content: string;
|
|
995
998
|
assignmentId: string | null;
|
|
996
999
|
submissionId: string | null;
|
|
997
1000
|
announcementId: string | null;
|
|
998
1001
|
modifiedAt: Date | null;
|
|
999
|
-
content: string;
|
|
1000
1002
|
authorId: string;
|
|
1001
|
-
parentCommentId: string | null;
|
|
1002
1003
|
isPinned: boolean;
|
|
1004
|
+
parentCommentId: string | null;
|
|
1003
1005
|
studentQuestionProgressId: string | null;
|
|
1004
1006
|
})[];
|
|
1005
1007
|
} & {
|
|
1006
1008
|
id: string;
|
|
1007
1009
|
createdAt: Date;
|
|
1010
|
+
content: string;
|
|
1008
1011
|
assignmentId: string | null;
|
|
1009
1012
|
submissionId: string | null;
|
|
1010
1013
|
announcementId: string | null;
|
|
1011
1014
|
modifiedAt: Date | null;
|
|
1012
|
-
content: string;
|
|
1013
1015
|
authorId: string;
|
|
1014
|
-
parentCommentId: string | null;
|
|
1015
1016
|
isPinned: boolean;
|
|
1017
|
+
parentCommentId: string | null;
|
|
1016
1018
|
studentQuestionProgressId: string | null;
|
|
1017
1019
|
})[];
|
|
1018
1020
|
};
|
|
@@ -1022,8 +1024,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1022
1024
|
input: {
|
|
1023
1025
|
[x: string]: unknown;
|
|
1024
1026
|
classId: string;
|
|
1025
|
-
assignmentId: string;
|
|
1026
1027
|
content: string;
|
|
1028
|
+
assignmentId: string;
|
|
1027
1029
|
parentCommentId?: string | undefined;
|
|
1028
1030
|
};
|
|
1029
1031
|
output: {
|
|
@@ -1032,8 +1034,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1032
1034
|
id: string;
|
|
1033
1035
|
username: string;
|
|
1034
1036
|
profile: {
|
|
1035
|
-
displayName: string | null;
|
|
1036
1037
|
profilePicture: string | null;
|
|
1038
|
+
displayName: string | null;
|
|
1037
1039
|
profilePictureThumbnail: string | null;
|
|
1038
1040
|
} | null;
|
|
1039
1041
|
};
|
|
@@ -1042,35 +1044,35 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1042
1044
|
id: string;
|
|
1043
1045
|
username: string;
|
|
1044
1046
|
profile: {
|
|
1045
|
-
displayName: string | null;
|
|
1046
1047
|
profilePicture: string | null;
|
|
1048
|
+
displayName: string | null;
|
|
1047
1049
|
profilePictureThumbnail: string | null;
|
|
1048
1050
|
} | null;
|
|
1049
1051
|
};
|
|
1050
1052
|
} & {
|
|
1051
1053
|
id: string;
|
|
1052
1054
|
createdAt: Date;
|
|
1055
|
+
content: string;
|
|
1053
1056
|
assignmentId: string | null;
|
|
1054
1057
|
submissionId: string | null;
|
|
1055
1058
|
announcementId: string | null;
|
|
1056
1059
|
modifiedAt: Date | null;
|
|
1057
|
-
content: string;
|
|
1058
1060
|
authorId: string;
|
|
1059
|
-
parentCommentId: string | null;
|
|
1060
1061
|
isPinned: boolean;
|
|
1062
|
+
parentCommentId: string | null;
|
|
1061
1063
|
studentQuestionProgressId: string | null;
|
|
1062
1064
|
})[];
|
|
1063
1065
|
} & {
|
|
1064
1066
|
id: string;
|
|
1065
1067
|
createdAt: Date;
|
|
1068
|
+
content: string;
|
|
1066
1069
|
assignmentId: string | null;
|
|
1067
1070
|
submissionId: string | null;
|
|
1068
1071
|
announcementId: string | null;
|
|
1069
1072
|
modifiedAt: Date | null;
|
|
1070
|
-
content: string;
|
|
1071
1073
|
authorId: string;
|
|
1072
|
-
parentCommentId: string | null;
|
|
1073
1074
|
isPinned: boolean;
|
|
1075
|
+
parentCommentId: string | null;
|
|
1074
1076
|
studentQuestionProgressId: string | null;
|
|
1075
1077
|
};
|
|
1076
1078
|
};
|
|
@@ -1089,8 +1091,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1089
1091
|
id: string;
|
|
1090
1092
|
username: string;
|
|
1091
1093
|
profile: {
|
|
1092
|
-
displayName: string | null;
|
|
1093
1094
|
profilePicture: string | null;
|
|
1095
|
+
displayName: string | null;
|
|
1094
1096
|
profilePictureThumbnail: string | null;
|
|
1095
1097
|
} | null;
|
|
1096
1098
|
};
|
|
@@ -1099,35 +1101,35 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1099
1101
|
id: string;
|
|
1100
1102
|
username: string;
|
|
1101
1103
|
profile: {
|
|
1102
|
-
displayName: string | null;
|
|
1103
1104
|
profilePicture: string | null;
|
|
1105
|
+
displayName: string | null;
|
|
1104
1106
|
profilePictureThumbnail: string | null;
|
|
1105
1107
|
} | null;
|
|
1106
1108
|
};
|
|
1107
1109
|
} & {
|
|
1108
1110
|
id: string;
|
|
1109
1111
|
createdAt: Date;
|
|
1112
|
+
content: string;
|
|
1110
1113
|
assignmentId: string | null;
|
|
1111
1114
|
submissionId: string | null;
|
|
1112
1115
|
announcementId: string | null;
|
|
1113
1116
|
modifiedAt: Date | null;
|
|
1114
|
-
content: string;
|
|
1115
1117
|
authorId: string;
|
|
1116
|
-
parentCommentId: string | null;
|
|
1117
1118
|
isPinned: boolean;
|
|
1119
|
+
parentCommentId: string | null;
|
|
1118
1120
|
studentQuestionProgressId: string | null;
|
|
1119
1121
|
})[];
|
|
1120
1122
|
} & {
|
|
1121
1123
|
id: string;
|
|
1122
1124
|
createdAt: Date;
|
|
1125
|
+
content: string;
|
|
1123
1126
|
assignmentId: string | null;
|
|
1124
1127
|
submissionId: string | null;
|
|
1125
1128
|
announcementId: string | null;
|
|
1126
1129
|
modifiedAt: Date | null;
|
|
1127
|
-
content: string;
|
|
1128
1130
|
authorId: string;
|
|
1129
|
-
parentCommentId: string | null;
|
|
1130
1131
|
isPinned: boolean;
|
|
1132
|
+
parentCommentId: string | null;
|
|
1131
1133
|
studentQuestionProgressId: string | null;
|
|
1132
1134
|
})[];
|
|
1133
1135
|
};
|
|
@@ -1137,9 +1139,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1137
1139
|
input: {
|
|
1138
1140
|
[x: string]: unknown;
|
|
1139
1141
|
classId: string;
|
|
1142
|
+
content: string;
|
|
1140
1143
|
assignmentId: string;
|
|
1141
1144
|
submissionId: string;
|
|
1142
|
-
content: string;
|
|
1143
1145
|
parentCommentId?: string | undefined;
|
|
1144
1146
|
};
|
|
1145
1147
|
output: {
|
|
@@ -1148,8 +1150,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1148
1150
|
id: string;
|
|
1149
1151
|
username: string;
|
|
1150
1152
|
profile: {
|
|
1151
|
-
displayName: string | null;
|
|
1152
1153
|
profilePicture: string | null;
|
|
1154
|
+
displayName: string | null;
|
|
1153
1155
|
profilePictureThumbnail: string | null;
|
|
1154
1156
|
} | null;
|
|
1155
1157
|
};
|
|
@@ -1158,35 +1160,35 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1158
1160
|
id: string;
|
|
1159
1161
|
username: string;
|
|
1160
1162
|
profile: {
|
|
1161
|
-
displayName: string | null;
|
|
1162
1163
|
profilePicture: string | null;
|
|
1164
|
+
displayName: string | null;
|
|
1163
1165
|
profilePictureThumbnail: string | null;
|
|
1164
1166
|
} | null;
|
|
1165
1167
|
};
|
|
1166
1168
|
} & {
|
|
1167
1169
|
id: string;
|
|
1168
1170
|
createdAt: Date;
|
|
1171
|
+
content: string;
|
|
1169
1172
|
assignmentId: string | null;
|
|
1170
1173
|
submissionId: string | null;
|
|
1171
1174
|
announcementId: string | null;
|
|
1172
1175
|
modifiedAt: Date | null;
|
|
1173
|
-
content: string;
|
|
1174
1176
|
authorId: string;
|
|
1175
|
-
parentCommentId: string | null;
|
|
1176
1177
|
isPinned: boolean;
|
|
1178
|
+
parentCommentId: string | null;
|
|
1177
1179
|
studentQuestionProgressId: string | null;
|
|
1178
1180
|
})[];
|
|
1179
1181
|
} & {
|
|
1180
1182
|
id: string;
|
|
1181
1183
|
createdAt: Date;
|
|
1184
|
+
content: string;
|
|
1182
1185
|
assignmentId: string | null;
|
|
1183
1186
|
submissionId: string | null;
|
|
1184
1187
|
announcementId: string | null;
|
|
1185
1188
|
modifiedAt: Date | null;
|
|
1186
|
-
content: string;
|
|
1187
1189
|
authorId: string;
|
|
1188
|
-
parentCommentId: string | null;
|
|
1189
1190
|
isPinned: boolean;
|
|
1191
|
+
parentCommentId: string | null;
|
|
1190
1192
|
studentQuestionProgressId: string | null;
|
|
1191
1193
|
};
|
|
1192
1194
|
};
|
|
@@ -1198,8 +1200,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1198
1200
|
classId: string;
|
|
1199
1201
|
assignmentId: string;
|
|
1200
1202
|
submissionId: string;
|
|
1201
|
-
gradeReceived?: number | null | undefined;
|
|
1202
1203
|
feedback?: string | undefined;
|
|
1204
|
+
gradeReceived?: number | null | undefined;
|
|
1203
1205
|
existingFileIds?: string[] | undefined;
|
|
1204
1206
|
removedAttachments?: string[] | undefined;
|
|
1205
1207
|
newAttachments?: {
|
|
@@ -1218,12 +1220,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1218
1220
|
output: {
|
|
1219
1221
|
assignment: {
|
|
1220
1222
|
class: {
|
|
1221
|
-
|
|
1223
|
+
section: string;
|
|
1222
1224
|
id: string;
|
|
1225
|
+
name: string;
|
|
1223
1226
|
schoolId: string | null;
|
|
1224
|
-
subject: string;
|
|
1225
1227
|
color: string | null;
|
|
1226
|
-
|
|
1228
|
+
subject: string;
|
|
1227
1229
|
syllabus: string | null;
|
|
1228
1230
|
departmentId: string | null;
|
|
1229
1231
|
discussionsEnabled: boolean;
|
|
@@ -1243,10 +1245,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1243
1245
|
id: string;
|
|
1244
1246
|
createdAt: Date | null;
|
|
1245
1247
|
classId: string;
|
|
1246
|
-
modifiedAt: Date | null;
|
|
1247
1248
|
title: string;
|
|
1248
|
-
instructions: string;
|
|
1249
1249
|
dueDate: Date;
|
|
1250
|
+
maxGrade: number | null;
|
|
1251
|
+
eventId: string | null;
|
|
1252
|
+
instructions: string;
|
|
1253
|
+
modifiedAt: Date | null;
|
|
1250
1254
|
teacherId: string;
|
|
1251
1255
|
acceptFiles: boolean;
|
|
1252
1256
|
acceptExtendedResponse: boolean;
|
|
@@ -1255,25 +1259,27 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1255
1259
|
aiPolicyLevel: number;
|
|
1256
1260
|
sectionId: string | null;
|
|
1257
1261
|
graded: boolean;
|
|
1258
|
-
maxGrade: number | null;
|
|
1259
1262
|
weight: number;
|
|
1260
1263
|
inProgress: boolean;
|
|
1261
1264
|
template: boolean;
|
|
1262
|
-
eventId: string | null;
|
|
1263
1265
|
markSchemeId: string | null;
|
|
1264
1266
|
order: number | null;
|
|
1265
1267
|
gradingBoundaryId: string | null;
|
|
1266
1268
|
};
|
|
1267
|
-
|
|
1269
|
+
attachments: ({
|
|
1268
1270
|
thumbnail: {
|
|
1269
1271
|
path: string;
|
|
1270
1272
|
type: string;
|
|
1271
|
-
name: string;
|
|
1272
1273
|
id: string;
|
|
1273
1274
|
userId: string | null;
|
|
1274
|
-
|
|
1275
|
+
name: string;
|
|
1275
1276
|
size: number | null;
|
|
1276
1277
|
uploadedAt: Date | null;
|
|
1278
|
+
assignmentId: string | null;
|
|
1279
|
+
submissionId: string | null;
|
|
1280
|
+
thumbnailId: string | null;
|
|
1281
|
+
annotationId: string | null;
|
|
1282
|
+
conversationId: string | null;
|
|
1277
1283
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1278
1284
|
uploadUrl: string | null;
|
|
1279
1285
|
uploadExpiresAt: Date | null;
|
|
@@ -1283,12 +1289,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1283
1289
|
uploadRetryCount: number;
|
|
1284
1290
|
isOrphaned: boolean;
|
|
1285
1291
|
cleanupAt: Date | null;
|
|
1286
|
-
thumbnailId: string | null;
|
|
1287
|
-
assignmentId: string | null;
|
|
1288
|
-
submissionId: string | null;
|
|
1289
|
-
annotationId: string | null;
|
|
1290
1292
|
classDraftId: string | null;
|
|
1291
|
-
|
|
1293
|
+
folderId: string | null;
|
|
1292
1294
|
messageId: string | null;
|
|
1293
1295
|
announcementId: string | null;
|
|
1294
1296
|
discussionId: string | null;
|
|
@@ -1298,12 +1300,16 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1298
1300
|
} & {
|
|
1299
1301
|
path: string;
|
|
1300
1302
|
type: string;
|
|
1301
|
-
name: string;
|
|
1302
1303
|
id: string;
|
|
1303
1304
|
userId: string | null;
|
|
1304
|
-
|
|
1305
|
+
name: string;
|
|
1305
1306
|
size: number | null;
|
|
1306
1307
|
uploadedAt: Date | null;
|
|
1308
|
+
assignmentId: string | null;
|
|
1309
|
+
submissionId: string | null;
|
|
1310
|
+
thumbnailId: string | null;
|
|
1311
|
+
annotationId: string | null;
|
|
1312
|
+
conversationId: string | null;
|
|
1307
1313
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1308
1314
|
uploadUrl: string | null;
|
|
1309
1315
|
uploadExpiresAt: Date | null;
|
|
@@ -1313,28 +1319,28 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1313
1319
|
uploadRetryCount: number;
|
|
1314
1320
|
isOrphaned: boolean;
|
|
1315
1321
|
cleanupAt: Date | null;
|
|
1316
|
-
thumbnailId: string | null;
|
|
1317
|
-
assignmentId: string | null;
|
|
1318
|
-
submissionId: string | null;
|
|
1319
|
-
annotationId: string | null;
|
|
1320
1322
|
classDraftId: string | null;
|
|
1321
|
-
|
|
1323
|
+
folderId: string | null;
|
|
1322
1324
|
messageId: string | null;
|
|
1323
1325
|
announcementId: string | null;
|
|
1324
1326
|
discussionId: string | null;
|
|
1325
1327
|
discussionReplyId: string | null;
|
|
1326
1328
|
schoolDevelopementProgramId: string | null;
|
|
1327
1329
|
})[];
|
|
1328
|
-
|
|
1330
|
+
annotations: ({
|
|
1329
1331
|
thumbnail: {
|
|
1330
1332
|
path: string;
|
|
1331
1333
|
type: string;
|
|
1332
|
-
name: string;
|
|
1333
1334
|
id: string;
|
|
1334
1335
|
userId: string | null;
|
|
1335
|
-
|
|
1336
|
+
name: string;
|
|
1336
1337
|
size: number | null;
|
|
1337
1338
|
uploadedAt: Date | null;
|
|
1339
|
+
assignmentId: string | null;
|
|
1340
|
+
submissionId: string | null;
|
|
1341
|
+
thumbnailId: string | null;
|
|
1342
|
+
annotationId: string | null;
|
|
1343
|
+
conversationId: string | null;
|
|
1338
1344
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1339
1345
|
uploadUrl: string | null;
|
|
1340
1346
|
uploadExpiresAt: Date | null;
|
|
@@ -1344,12 +1350,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1344
1350
|
uploadRetryCount: number;
|
|
1345
1351
|
isOrphaned: boolean;
|
|
1346
1352
|
cleanupAt: Date | null;
|
|
1347
|
-
thumbnailId: string | null;
|
|
1348
|
-
assignmentId: string | null;
|
|
1349
|
-
submissionId: string | null;
|
|
1350
|
-
annotationId: string | null;
|
|
1351
1353
|
classDraftId: string | null;
|
|
1352
|
-
|
|
1354
|
+
folderId: string | null;
|
|
1353
1355
|
messageId: string | null;
|
|
1354
1356
|
announcementId: string | null;
|
|
1355
1357
|
discussionId: string | null;
|
|
@@ -1359,12 +1361,16 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1359
1361
|
} & {
|
|
1360
1362
|
path: string;
|
|
1361
1363
|
type: string;
|
|
1362
|
-
name: string;
|
|
1363
1364
|
id: string;
|
|
1364
1365
|
userId: string | null;
|
|
1365
|
-
|
|
1366
|
+
name: string;
|
|
1366
1367
|
size: number | null;
|
|
1367
1368
|
uploadedAt: Date | null;
|
|
1369
|
+
assignmentId: string | null;
|
|
1370
|
+
submissionId: string | null;
|
|
1371
|
+
thumbnailId: string | null;
|
|
1372
|
+
annotationId: string | null;
|
|
1373
|
+
conversationId: string | null;
|
|
1368
1374
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1369
1375
|
uploadUrl: string | null;
|
|
1370
1376
|
uploadExpiresAt: Date | null;
|
|
@@ -1374,12 +1380,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1374
1380
|
uploadRetryCount: number;
|
|
1375
1381
|
isOrphaned: boolean;
|
|
1376
1382
|
cleanupAt: Date | null;
|
|
1377
|
-
thumbnailId: string | null;
|
|
1378
|
-
assignmentId: string | null;
|
|
1379
|
-
submissionId: string | null;
|
|
1380
|
-
annotationId: string | null;
|
|
1381
1383
|
classDraftId: string | null;
|
|
1382
|
-
|
|
1384
|
+
folderId: string | null;
|
|
1383
1385
|
messageId: string | null;
|
|
1384
1386
|
announcementId: string | null;
|
|
1385
1387
|
discussionId: string | null;
|
|
@@ -1390,8 +1392,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1390
1392
|
id: string;
|
|
1391
1393
|
username: string;
|
|
1392
1394
|
profile: {
|
|
1393
|
-
displayName: string | null;
|
|
1394
1395
|
profilePicture: string | null;
|
|
1396
|
+
displayName: string | null;
|
|
1395
1397
|
profilePictureThumbnail: string | null;
|
|
1396
1398
|
} | null;
|
|
1397
1399
|
};
|
|
@@ -1399,8 +1401,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1399
1401
|
id: string;
|
|
1400
1402
|
createdAt: Date;
|
|
1401
1403
|
assignmentId: string;
|
|
1402
|
-
modifiedAt: Date;
|
|
1403
1404
|
studentId: string;
|
|
1405
|
+
modifiedAt: Date;
|
|
1404
1406
|
extendedResponse: string | null;
|
|
1405
1407
|
gradeReceived: number | null;
|
|
1406
1408
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -1424,21 +1426,21 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1424
1426
|
output: {
|
|
1425
1427
|
assignment: {
|
|
1426
1428
|
section: {
|
|
1427
|
-
name: string;
|
|
1428
1429
|
id: string;
|
|
1430
|
+
name: string;
|
|
1429
1431
|
} | null;
|
|
1430
|
-
teacher: {
|
|
1431
|
-
id: string;
|
|
1432
|
-
username: string;
|
|
1433
|
-
};
|
|
1434
1432
|
attachments: {
|
|
1435
1433
|
type: string;
|
|
1436
|
-
name: string;
|
|
1437
1434
|
id: string;
|
|
1435
|
+
name: string;
|
|
1438
1436
|
}[];
|
|
1437
|
+
teacher: {
|
|
1438
|
+
id: string;
|
|
1439
|
+
username: string;
|
|
1440
|
+
};
|
|
1439
1441
|
eventAttached: {
|
|
1440
|
-
name: string | null;
|
|
1441
1442
|
id: string;
|
|
1443
|
+
name: string | null;
|
|
1442
1444
|
color: string | null;
|
|
1443
1445
|
startTime: Date;
|
|
1444
1446
|
endTime: Date;
|
|
@@ -1448,10 +1450,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1448
1450
|
id: string;
|
|
1449
1451
|
createdAt: Date | null;
|
|
1450
1452
|
classId: string;
|
|
1451
|
-
modifiedAt: Date | null;
|
|
1452
1453
|
title: string;
|
|
1453
|
-
instructions: string;
|
|
1454
1454
|
dueDate: Date;
|
|
1455
|
+
maxGrade: number | null;
|
|
1456
|
+
eventId: string | null;
|
|
1457
|
+
instructions: string;
|
|
1458
|
+
modifiedAt: Date | null;
|
|
1455
1459
|
teacherId: string;
|
|
1456
1460
|
acceptFiles: boolean;
|
|
1457
1461
|
acceptExtendedResponse: boolean;
|
|
@@ -1460,11 +1464,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1460
1464
|
aiPolicyLevel: number;
|
|
1461
1465
|
sectionId: string | null;
|
|
1462
1466
|
graded: boolean;
|
|
1463
|
-
maxGrade: number | null;
|
|
1464
1467
|
weight: number;
|
|
1465
1468
|
inProgress: boolean;
|
|
1466
1469
|
template: boolean;
|
|
1467
|
-
eventId: string | null;
|
|
1468
1470
|
markSchemeId: string | null;
|
|
1469
1471
|
order: number | null;
|
|
1470
1472
|
gradingBoundaryId: string | null;
|
|
@@ -1481,21 +1483,21 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1481
1483
|
output: {
|
|
1482
1484
|
assignment: {
|
|
1483
1485
|
section: {
|
|
1484
|
-
name: string;
|
|
1485
1486
|
id: string;
|
|
1487
|
+
name: string;
|
|
1486
1488
|
} | null;
|
|
1487
|
-
teacher: {
|
|
1488
|
-
id: string;
|
|
1489
|
-
username: string;
|
|
1490
|
-
};
|
|
1491
1489
|
attachments: {
|
|
1492
1490
|
type: string;
|
|
1493
|
-
name: string;
|
|
1494
1491
|
id: string;
|
|
1492
|
+
name: string;
|
|
1495
1493
|
}[];
|
|
1494
|
+
teacher: {
|
|
1495
|
+
id: string;
|
|
1496
|
+
username: string;
|
|
1497
|
+
};
|
|
1496
1498
|
eventAttached: {
|
|
1497
|
-
name: string | null;
|
|
1498
1499
|
id: string;
|
|
1500
|
+
name: string | null;
|
|
1499
1501
|
color: string | null;
|
|
1500
1502
|
startTime: Date;
|
|
1501
1503
|
endTime: Date;
|
|
@@ -1505,10 +1507,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1505
1507
|
id: string;
|
|
1506
1508
|
createdAt: Date | null;
|
|
1507
1509
|
classId: string;
|
|
1508
|
-
modifiedAt: Date | null;
|
|
1509
1510
|
title: string;
|
|
1510
|
-
instructions: string;
|
|
1511
1511
|
dueDate: Date;
|
|
1512
|
+
maxGrade: number | null;
|
|
1513
|
+
eventId: string | null;
|
|
1514
|
+
instructions: string;
|
|
1515
|
+
modifiedAt: Date | null;
|
|
1512
1516
|
teacherId: string;
|
|
1513
1517
|
acceptFiles: boolean;
|
|
1514
1518
|
acceptExtendedResponse: boolean;
|
|
@@ -1517,11 +1521,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1517
1521
|
aiPolicyLevel: number;
|
|
1518
1522
|
sectionId: string | null;
|
|
1519
1523
|
graded: boolean;
|
|
1520
|
-
maxGrade: number | null;
|
|
1521
1524
|
weight: number;
|
|
1522
1525
|
inProgress: boolean;
|
|
1523
1526
|
template: boolean;
|
|
1524
|
-
eventId: string | null;
|
|
1525
1527
|
markSchemeId: string | null;
|
|
1526
1528
|
order: number | null;
|
|
1527
1529
|
gradingBoundaryId: string | null;
|
|
@@ -1537,12 +1539,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1537
1539
|
};
|
|
1538
1540
|
output: {
|
|
1539
1541
|
events: {
|
|
1540
|
-
name: string | null;
|
|
1541
1542
|
id: string;
|
|
1543
|
+
location: string | null;
|
|
1544
|
+
name: string | null;
|
|
1542
1545
|
color: string | null;
|
|
1543
1546
|
startTime: Date;
|
|
1544
1547
|
endTime: Date;
|
|
1545
|
-
location: string | null;
|
|
1546
1548
|
remarks: string | null;
|
|
1547
1549
|
}[];
|
|
1548
1550
|
};
|
|
@@ -1553,14 +1555,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1553
1555
|
output: {
|
|
1554
1556
|
dueDate: string;
|
|
1555
1557
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1556
|
-
id: string;
|
|
1557
1558
|
class: {
|
|
1558
|
-
name: string;
|
|
1559
1559
|
id: string;
|
|
1560
|
+
name: string;
|
|
1560
1561
|
};
|
|
1562
|
+
id: string;
|
|
1561
1563
|
title: string;
|
|
1562
|
-
graded: boolean;
|
|
1563
1564
|
maxGrade: number | null;
|
|
1565
|
+
graded: boolean;
|
|
1564
1566
|
}[];
|
|
1565
1567
|
meta: object;
|
|
1566
1568
|
}>;
|
|
@@ -1572,37 +1574,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1572
1574
|
markSchemeId: string | null;
|
|
1573
1575
|
};
|
|
1574
1576
|
output: {
|
|
1575
|
-
section: {
|
|
1576
|
-
name: string;
|
|
1577
|
-
id: string;
|
|
1578
|
-
color: string | null;
|
|
1579
|
-
classId: string;
|
|
1580
|
-
order: number | null;
|
|
1581
|
-
} | null;
|
|
1582
1577
|
markScheme: {
|
|
1583
|
-
name: string | null;
|
|
1584
1578
|
id: string;
|
|
1585
|
-
|
|
1579
|
+
name: string | null;
|
|
1586
1580
|
classId: string | null;
|
|
1581
|
+
departmentId: string | null;
|
|
1587
1582
|
structured: string;
|
|
1588
1583
|
} | null;
|
|
1589
|
-
|
|
1584
|
+
section: {
|
|
1590
1585
|
id: string;
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
};
|
|
1586
|
+
name: string;
|
|
1587
|
+
color: string | null;
|
|
1588
|
+
classId: string;
|
|
1589
|
+
order: number | null;
|
|
1590
|
+
} | null;
|
|
1597
1591
|
attachments: {
|
|
1598
1592
|
path: string;
|
|
1599
1593
|
type: string;
|
|
1600
|
-
name: string;
|
|
1601
1594
|
id: string;
|
|
1602
1595
|
userId: string | null;
|
|
1603
|
-
|
|
1596
|
+
name: string;
|
|
1604
1597
|
size: number | null;
|
|
1605
1598
|
uploadedAt: Date | null;
|
|
1599
|
+
assignmentId: string | null;
|
|
1600
|
+
submissionId: string | null;
|
|
1601
|
+
thumbnailId: string | null;
|
|
1602
|
+
annotationId: string | null;
|
|
1603
|
+
conversationId: string | null;
|
|
1606
1604
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1607
1605
|
uploadUrl: string | null;
|
|
1608
1606
|
uploadExpiresAt: Date | null;
|
|
@@ -1612,27 +1610,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1612
1610
|
uploadRetryCount: number;
|
|
1613
1611
|
isOrphaned: boolean;
|
|
1614
1612
|
cleanupAt: Date | null;
|
|
1615
|
-
thumbnailId: string | null;
|
|
1616
|
-
assignmentId: string | null;
|
|
1617
|
-
submissionId: string | null;
|
|
1618
|
-
annotationId: string | null;
|
|
1619
1613
|
classDraftId: string | null;
|
|
1620
|
-
|
|
1614
|
+
folderId: string | null;
|
|
1621
1615
|
messageId: string | null;
|
|
1622
1616
|
announcementId: string | null;
|
|
1623
1617
|
discussionId: string | null;
|
|
1624
1618
|
discussionReplyId: string | null;
|
|
1625
1619
|
schoolDevelopementProgramId: string | null;
|
|
1626
1620
|
}[];
|
|
1621
|
+
teacher: {
|
|
1622
|
+
id: string;
|
|
1623
|
+
username: string;
|
|
1624
|
+
email: string;
|
|
1625
|
+
password: string;
|
|
1626
|
+
verified: boolean;
|
|
1627
|
+
termsAcceptedAt: Date | null;
|
|
1628
|
+
termsVersion: string | null;
|
|
1629
|
+
schoolId: string | null;
|
|
1630
|
+
};
|
|
1627
1631
|
eventAttached: {
|
|
1628
|
-
name: string | null;
|
|
1629
1632
|
id: string;
|
|
1630
1633
|
userId: string | null;
|
|
1634
|
+
location: string | null;
|
|
1635
|
+
name: string | null;
|
|
1631
1636
|
color: string | null;
|
|
1632
1637
|
classId: string | null;
|
|
1633
1638
|
startTime: Date;
|
|
1634
1639
|
endTime: Date;
|
|
1635
|
-
location: string | null;
|
|
1636
1640
|
remarks: string | null;
|
|
1637
1641
|
} | null;
|
|
1638
1642
|
} & {
|
|
@@ -1640,10 +1644,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1640
1644
|
id: string;
|
|
1641
1645
|
createdAt: Date | null;
|
|
1642
1646
|
classId: string;
|
|
1643
|
-
modifiedAt: Date | null;
|
|
1644
1647
|
title: string;
|
|
1645
|
-
instructions: string;
|
|
1646
1648
|
dueDate: Date;
|
|
1649
|
+
maxGrade: number | null;
|
|
1650
|
+
eventId: string | null;
|
|
1651
|
+
instructions: string;
|
|
1652
|
+
modifiedAt: Date | null;
|
|
1647
1653
|
teacherId: string;
|
|
1648
1654
|
acceptFiles: boolean;
|
|
1649
1655
|
acceptExtendedResponse: boolean;
|
|
@@ -1652,11 +1658,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1652
1658
|
aiPolicyLevel: number;
|
|
1653
1659
|
sectionId: string | null;
|
|
1654
1660
|
graded: boolean;
|
|
1655
|
-
maxGrade: number | null;
|
|
1656
1661
|
weight: number;
|
|
1657
1662
|
inProgress: boolean;
|
|
1658
1663
|
template: boolean;
|
|
1659
|
-
eventId: string | null;
|
|
1660
1664
|
markSchemeId: string | null;
|
|
1661
1665
|
order: number | null;
|
|
1662
1666
|
gradingBoundaryId: string | null;
|
|
@@ -1670,37 +1674,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1670
1674
|
assignmentId: string;
|
|
1671
1675
|
};
|
|
1672
1676
|
output: {
|
|
1673
|
-
section: {
|
|
1674
|
-
name: string;
|
|
1675
|
-
id: string;
|
|
1676
|
-
color: string | null;
|
|
1677
|
-
classId: string;
|
|
1678
|
-
order: number | null;
|
|
1679
|
-
} | null;
|
|
1680
1677
|
markScheme: {
|
|
1681
|
-
name: string | null;
|
|
1682
1678
|
id: string;
|
|
1683
|
-
|
|
1679
|
+
name: string | null;
|
|
1684
1680
|
classId: string | null;
|
|
1681
|
+
departmentId: string | null;
|
|
1685
1682
|
structured: string;
|
|
1686
1683
|
} | null;
|
|
1687
|
-
|
|
1684
|
+
section: {
|
|
1688
1685
|
id: string;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
};
|
|
1686
|
+
name: string;
|
|
1687
|
+
color: string | null;
|
|
1688
|
+
classId: string;
|
|
1689
|
+
order: number | null;
|
|
1690
|
+
} | null;
|
|
1695
1691
|
attachments: {
|
|
1696
1692
|
path: string;
|
|
1697
1693
|
type: string;
|
|
1698
|
-
name: string;
|
|
1699
1694
|
id: string;
|
|
1700
1695
|
userId: string | null;
|
|
1701
|
-
|
|
1696
|
+
name: string;
|
|
1702
1697
|
size: number | null;
|
|
1703
1698
|
uploadedAt: Date | null;
|
|
1699
|
+
assignmentId: string | null;
|
|
1700
|
+
submissionId: string | null;
|
|
1701
|
+
thumbnailId: string | null;
|
|
1702
|
+
annotationId: string | null;
|
|
1703
|
+
conversationId: string | null;
|
|
1704
1704
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1705
1705
|
uploadUrl: string | null;
|
|
1706
1706
|
uploadExpiresAt: Date | null;
|
|
@@ -1710,27 +1710,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1710
1710
|
uploadRetryCount: number;
|
|
1711
1711
|
isOrphaned: boolean;
|
|
1712
1712
|
cleanupAt: Date | null;
|
|
1713
|
-
thumbnailId: string | null;
|
|
1714
|
-
assignmentId: string | null;
|
|
1715
|
-
submissionId: string | null;
|
|
1716
|
-
annotationId: string | null;
|
|
1717
1713
|
classDraftId: string | null;
|
|
1718
|
-
|
|
1714
|
+
folderId: string | null;
|
|
1719
1715
|
messageId: string | null;
|
|
1720
1716
|
announcementId: string | null;
|
|
1721
1717
|
discussionId: string | null;
|
|
1722
1718
|
discussionReplyId: string | null;
|
|
1723
1719
|
schoolDevelopementProgramId: string | null;
|
|
1724
1720
|
}[];
|
|
1721
|
+
teacher: {
|
|
1722
|
+
id: string;
|
|
1723
|
+
username: string;
|
|
1724
|
+
email: string;
|
|
1725
|
+
password: string;
|
|
1726
|
+
verified: boolean;
|
|
1727
|
+
termsAcceptedAt: Date | null;
|
|
1728
|
+
termsVersion: string | null;
|
|
1729
|
+
schoolId: string | null;
|
|
1730
|
+
};
|
|
1725
1731
|
eventAttached: {
|
|
1726
|
-
name: string | null;
|
|
1727
1732
|
id: string;
|
|
1728
1733
|
userId: string | null;
|
|
1734
|
+
location: string | null;
|
|
1735
|
+
name: string | null;
|
|
1729
1736
|
color: string | null;
|
|
1730
1737
|
classId: string | null;
|
|
1731
1738
|
startTime: Date;
|
|
1732
1739
|
endTime: Date;
|
|
1733
|
-
location: string | null;
|
|
1734
1740
|
remarks: string | null;
|
|
1735
1741
|
} | null;
|
|
1736
1742
|
} & {
|
|
@@ -1738,10 +1744,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1738
1744
|
id: string;
|
|
1739
1745
|
createdAt: Date | null;
|
|
1740
1746
|
classId: string;
|
|
1741
|
-
modifiedAt: Date | null;
|
|
1742
1747
|
title: string;
|
|
1743
|
-
instructions: string;
|
|
1744
1748
|
dueDate: Date;
|
|
1749
|
+
maxGrade: number | null;
|
|
1750
|
+
eventId: string | null;
|
|
1751
|
+
instructions: string;
|
|
1752
|
+
modifiedAt: Date | null;
|
|
1745
1753
|
teacherId: string;
|
|
1746
1754
|
acceptFiles: boolean;
|
|
1747
1755
|
acceptExtendedResponse: boolean;
|
|
@@ -1750,11 +1758,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1750
1758
|
aiPolicyLevel: number;
|
|
1751
1759
|
sectionId: string | null;
|
|
1752
1760
|
graded: boolean;
|
|
1753
|
-
maxGrade: number | null;
|
|
1754
1761
|
weight: number;
|
|
1755
1762
|
inProgress: boolean;
|
|
1756
1763
|
template: boolean;
|
|
1757
|
-
eventId: string | null;
|
|
1758
1764
|
markSchemeId: string | null;
|
|
1759
1765
|
order: number | null;
|
|
1760
1766
|
gradingBoundaryId: string | null;
|
|
@@ -1769,37 +1775,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1769
1775
|
gradingBoundaryId: string | null;
|
|
1770
1776
|
};
|
|
1771
1777
|
output: {
|
|
1772
|
-
section: {
|
|
1773
|
-
name: string;
|
|
1774
|
-
id: string;
|
|
1775
|
-
color: string | null;
|
|
1776
|
-
classId: string;
|
|
1777
|
-
order: number | null;
|
|
1778
|
-
} | null;
|
|
1779
1778
|
gradingBoundary: {
|
|
1780
|
-
name: string | null;
|
|
1781
1779
|
id: string;
|
|
1782
|
-
|
|
1780
|
+
name: string | null;
|
|
1783
1781
|
classId: string | null;
|
|
1782
|
+
departmentId: string | null;
|
|
1784
1783
|
structured: string;
|
|
1785
1784
|
} | null;
|
|
1786
|
-
|
|
1785
|
+
section: {
|
|
1787
1786
|
id: string;
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
};
|
|
1787
|
+
name: string;
|
|
1788
|
+
color: string | null;
|
|
1789
|
+
classId: string;
|
|
1790
|
+
order: number | null;
|
|
1791
|
+
} | null;
|
|
1794
1792
|
attachments: {
|
|
1795
1793
|
path: string;
|
|
1796
1794
|
type: string;
|
|
1797
|
-
name: string;
|
|
1798
1795
|
id: string;
|
|
1799
1796
|
userId: string | null;
|
|
1800
|
-
|
|
1797
|
+
name: string;
|
|
1801
1798
|
size: number | null;
|
|
1802
1799
|
uploadedAt: Date | null;
|
|
1800
|
+
assignmentId: string | null;
|
|
1801
|
+
submissionId: string | null;
|
|
1802
|
+
thumbnailId: string | null;
|
|
1803
|
+
annotationId: string | null;
|
|
1804
|
+
conversationId: string | null;
|
|
1803
1805
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1804
1806
|
uploadUrl: string | null;
|
|
1805
1807
|
uploadExpiresAt: Date | null;
|
|
@@ -1809,27 +1811,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1809
1811
|
uploadRetryCount: number;
|
|
1810
1812
|
isOrphaned: boolean;
|
|
1811
1813
|
cleanupAt: Date | null;
|
|
1812
|
-
thumbnailId: string | null;
|
|
1813
|
-
assignmentId: string | null;
|
|
1814
|
-
submissionId: string | null;
|
|
1815
|
-
annotationId: string | null;
|
|
1816
1814
|
classDraftId: string | null;
|
|
1817
|
-
|
|
1815
|
+
folderId: string | null;
|
|
1818
1816
|
messageId: string | null;
|
|
1819
1817
|
announcementId: string | null;
|
|
1820
1818
|
discussionId: string | null;
|
|
1821
1819
|
discussionReplyId: string | null;
|
|
1822
1820
|
schoolDevelopementProgramId: string | null;
|
|
1823
1821
|
}[];
|
|
1822
|
+
teacher: {
|
|
1823
|
+
id: string;
|
|
1824
|
+
username: string;
|
|
1825
|
+
email: string;
|
|
1826
|
+
password: string;
|
|
1827
|
+
verified: boolean;
|
|
1828
|
+
termsAcceptedAt: Date | null;
|
|
1829
|
+
termsVersion: string | null;
|
|
1830
|
+
schoolId: string | null;
|
|
1831
|
+
};
|
|
1824
1832
|
eventAttached: {
|
|
1825
|
-
name: string | null;
|
|
1826
1833
|
id: string;
|
|
1827
1834
|
userId: string | null;
|
|
1835
|
+
location: string | null;
|
|
1836
|
+
name: string | null;
|
|
1828
1837
|
color: string | null;
|
|
1829
1838
|
classId: string | null;
|
|
1830
1839
|
startTime: Date;
|
|
1831
1840
|
endTime: Date;
|
|
1832
|
-
location: string | null;
|
|
1833
1841
|
remarks: string | null;
|
|
1834
1842
|
} | null;
|
|
1835
1843
|
} & {
|
|
@@ -1837,10 +1845,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1837
1845
|
id: string;
|
|
1838
1846
|
createdAt: Date | null;
|
|
1839
1847
|
classId: string;
|
|
1840
|
-
modifiedAt: Date | null;
|
|
1841
1848
|
title: string;
|
|
1842
|
-
instructions: string;
|
|
1843
1849
|
dueDate: Date;
|
|
1850
|
+
maxGrade: number | null;
|
|
1851
|
+
eventId: string | null;
|
|
1852
|
+
instructions: string;
|
|
1853
|
+
modifiedAt: Date | null;
|
|
1844
1854
|
teacherId: string;
|
|
1845
1855
|
acceptFiles: boolean;
|
|
1846
1856
|
acceptExtendedResponse: boolean;
|
|
@@ -1849,11 +1859,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1849
1859
|
aiPolicyLevel: number;
|
|
1850
1860
|
sectionId: string | null;
|
|
1851
1861
|
graded: boolean;
|
|
1852
|
-
maxGrade: number | null;
|
|
1853
1862
|
weight: number;
|
|
1854
1863
|
inProgress: boolean;
|
|
1855
1864
|
template: boolean;
|
|
1856
|
-
eventId: string | null;
|
|
1857
1865
|
markSchemeId: string | null;
|
|
1858
1866
|
order: number | null;
|
|
1859
1867
|
gradingBoundaryId: string | null;
|
|
@@ -1867,37 +1875,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1867
1875
|
assignmentId: string;
|
|
1868
1876
|
};
|
|
1869
1877
|
output: {
|
|
1870
|
-
section: {
|
|
1871
|
-
name: string;
|
|
1872
|
-
id: string;
|
|
1873
|
-
color: string | null;
|
|
1874
|
-
classId: string;
|
|
1875
|
-
order: number | null;
|
|
1876
|
-
} | null;
|
|
1877
1878
|
gradingBoundary: {
|
|
1878
|
-
name: string | null;
|
|
1879
1879
|
id: string;
|
|
1880
|
-
|
|
1880
|
+
name: string | null;
|
|
1881
1881
|
classId: string | null;
|
|
1882
|
+
departmentId: string | null;
|
|
1882
1883
|
structured: string;
|
|
1883
1884
|
} | null;
|
|
1884
|
-
|
|
1885
|
+
section: {
|
|
1885
1886
|
id: string;
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
};
|
|
1887
|
+
name: string;
|
|
1888
|
+
color: string | null;
|
|
1889
|
+
classId: string;
|
|
1890
|
+
order: number | null;
|
|
1891
|
+
} | null;
|
|
1892
1892
|
attachments: {
|
|
1893
1893
|
path: string;
|
|
1894
1894
|
type: string;
|
|
1895
|
-
name: string;
|
|
1896
1895
|
id: string;
|
|
1897
1896
|
userId: string | null;
|
|
1898
|
-
|
|
1897
|
+
name: string;
|
|
1899
1898
|
size: number | null;
|
|
1900
1899
|
uploadedAt: Date | null;
|
|
1900
|
+
assignmentId: string | null;
|
|
1901
|
+
submissionId: string | null;
|
|
1902
|
+
thumbnailId: string | null;
|
|
1903
|
+
annotationId: string | null;
|
|
1904
|
+
conversationId: string | null;
|
|
1901
1905
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1902
1906
|
uploadUrl: string | null;
|
|
1903
1907
|
uploadExpiresAt: Date | null;
|
|
@@ -1907,27 +1911,33 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1907
1911
|
uploadRetryCount: number;
|
|
1908
1912
|
isOrphaned: boolean;
|
|
1909
1913
|
cleanupAt: Date | null;
|
|
1910
|
-
thumbnailId: string | null;
|
|
1911
|
-
assignmentId: string | null;
|
|
1912
|
-
submissionId: string | null;
|
|
1913
|
-
annotationId: string | null;
|
|
1914
1914
|
classDraftId: string | null;
|
|
1915
|
-
|
|
1915
|
+
folderId: string | null;
|
|
1916
1916
|
messageId: string | null;
|
|
1917
1917
|
announcementId: string | null;
|
|
1918
1918
|
discussionId: string | null;
|
|
1919
1919
|
discussionReplyId: string | null;
|
|
1920
1920
|
schoolDevelopementProgramId: string | null;
|
|
1921
1921
|
}[];
|
|
1922
|
+
teacher: {
|
|
1923
|
+
id: string;
|
|
1924
|
+
username: string;
|
|
1925
|
+
email: string;
|
|
1926
|
+
password: string;
|
|
1927
|
+
verified: boolean;
|
|
1928
|
+
termsAcceptedAt: Date | null;
|
|
1929
|
+
termsVersion: string | null;
|
|
1930
|
+
schoolId: string | null;
|
|
1931
|
+
};
|
|
1922
1932
|
eventAttached: {
|
|
1923
|
-
name: string | null;
|
|
1924
1933
|
id: string;
|
|
1925
1934
|
userId: string | null;
|
|
1935
|
+
location: string | null;
|
|
1936
|
+
name: string | null;
|
|
1926
1937
|
color: string | null;
|
|
1927
1938
|
classId: string | null;
|
|
1928
1939
|
startTime: Date;
|
|
1929
1940
|
endTime: Date;
|
|
1930
|
-
location: string | null;
|
|
1931
1941
|
remarks: string | null;
|
|
1932
1942
|
} | null;
|
|
1933
1943
|
} & {
|
|
@@ -1935,10 +1945,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1935
1945
|
id: string;
|
|
1936
1946
|
createdAt: Date | null;
|
|
1937
1947
|
classId: string;
|
|
1938
|
-
modifiedAt: Date | null;
|
|
1939
1948
|
title: string;
|
|
1940
|
-
instructions: string;
|
|
1941
1949
|
dueDate: Date;
|
|
1950
|
+
maxGrade: number | null;
|
|
1951
|
+
eventId: string | null;
|
|
1952
|
+
instructions: string;
|
|
1953
|
+
modifiedAt: Date | null;
|
|
1942
1954
|
teacherId: string;
|
|
1943
1955
|
acceptFiles: boolean;
|
|
1944
1956
|
acceptExtendedResponse: boolean;
|
|
@@ -1947,11 +1959,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1947
1959
|
aiPolicyLevel: number;
|
|
1948
1960
|
sectionId: string | null;
|
|
1949
1961
|
graded: boolean;
|
|
1950
|
-
maxGrade: number | null;
|
|
1951
1962
|
weight: number;
|
|
1952
1963
|
inProgress: boolean;
|
|
1953
1964
|
template: boolean;
|
|
1954
|
-
eventId: string | null;
|
|
1955
1965
|
markSchemeId: string | null;
|
|
1956
1966
|
order: number | null;
|
|
1957
1967
|
gradingBoundaryId: string | null;
|
|
@@ -1962,12 +1972,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1962
1972
|
input: {
|
|
1963
1973
|
[x: string]: unknown;
|
|
1964
1974
|
classId: string;
|
|
1965
|
-
assignmentId: string;
|
|
1966
1975
|
files: {
|
|
1967
1976
|
type: string;
|
|
1968
1977
|
name: string;
|
|
1969
1978
|
size: number;
|
|
1970
1979
|
}[];
|
|
1980
|
+
assignmentId: string;
|
|
1971
1981
|
};
|
|
1972
1982
|
output: {
|
|
1973
1983
|
success: boolean;
|
|
@@ -1979,12 +1989,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1979
1989
|
input: {
|
|
1980
1990
|
[x: string]: unknown;
|
|
1981
1991
|
classId: string;
|
|
1982
|
-
submissionId: string;
|
|
1983
1992
|
files: {
|
|
1984
1993
|
type: string;
|
|
1985
1994
|
name: string;
|
|
1986
1995
|
size: number;
|
|
1987
1996
|
}[];
|
|
1997
|
+
submissionId: string;
|
|
1988
1998
|
};
|
|
1989
1999
|
output: {
|
|
1990
2000
|
success: boolean;
|
|
@@ -2024,12 +2034,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2024
2034
|
input: {
|
|
2025
2035
|
[x: string]: unknown;
|
|
2026
2036
|
classId: string;
|
|
2027
|
-
submissionId: string;
|
|
2028
2037
|
files: {
|
|
2029
2038
|
type: string;
|
|
2030
2039
|
name: string;
|
|
2031
2040
|
size: number;
|
|
2032
2041
|
}[];
|
|
2042
|
+
submissionId: string;
|
|
2033
2043
|
};
|
|
2034
2044
|
output: {
|
|
2035
2045
|
success: boolean;
|
|
@@ -2053,8 +2063,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2053
2063
|
}>;
|
|
2054
2064
|
updateUploadProgress: import("@trpc/server").TRPCMutationProcedure<{
|
|
2055
2065
|
input: {
|
|
2056
|
-
fileId: string;
|
|
2057
2066
|
progress: number;
|
|
2067
|
+
fileId: string;
|
|
2058
2068
|
};
|
|
2059
2069
|
output: {
|
|
2060
2070
|
success: boolean;
|