@studious-lms/server 1.12.0 → 1.14.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/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/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 +177 -69
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +551 -353
- 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 +348 -114
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/class.d.ts +324 -188
- package/dist/models/class.d.ts.map +1 -1
- package/dist/models/class.js +9 -3
- 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 +269 -110
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/comment.js +3 -2
- package/dist/models/comment.js.map +1 -1
- package/dist/models/conversation.d.ts +206 -63
- package/dist/models/conversation.d.ts.map +1 -1
- package/dist/models/conversation.js +13 -2
- package/dist/models/conversation.js.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 +287 -125
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +389 -263
- 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 +209 -83
- package/dist/models/labChat.d.ts.map +1 -1
- package/dist/models/marketing.d.ts +80 -26
- package/dist/models/marketing.d.ts.map +1 -1
- package/dist/models/message.d.ts +95 -41
- package/dist/models/message.d.ts.map +1 -1
- package/dist/models/newtonChat.d.ts +83 -29
- package/dist/models/newtonChat.d.ts.map +1 -1
- package/dist/models/notification.d.ts +61 -25
- 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 +1023 -410
- package/dist/models/worksheet.d.ts.map +1 -1
- package/dist/models/worksheet.js +19 -7
- package/dist/models/worksheet.js.map +1 -1
- package/dist/pipelines/aiLabChat.d.ts +0 -8
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +50 -67
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +393 -388
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
- package/dist/pipelines/aiLabChatContract.js +63 -69
- 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/gradeWorksheet.d.ts.map +1 -1
- package/dist/pipelines/gradeWorksheet.js +59 -14
- package/dist/pipelines/gradeWorksheet.js.map +1 -1
- package/dist/pipelines/labChatPrompt.d.ts +10 -8
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +47 -67
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/pipelines/pdfToWorksheet.d.ts +2 -2
- package/dist/routers/_app.d.ts +2268 -1898
- 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 +32 -28
- package/dist/routers/announcement.d.ts.map +1 -1
- package/dist/routers/announcement.js +6 -5
- package/dist/routers/announcement.js.map +1 -1
- package/dist/routers/assignment.d.ts +335 -327
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +4 -4
- package/dist/routers/assignment.js.map +1 -1
- package/dist/routers/attendance.d.ts +10 -10
- package/dist/routers/auth.d.ts +2 -2
- package/dist/routers/class.d.ts +170 -147
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +40 -16
- package/dist/routers/comment.d.ts.map +1 -1
- package/dist/routers/comment.js +6 -3
- package/dist/routers/comment.js.map +1 -1
- package/dist/routers/conversation.d.ts +17 -17
- package/dist/routers/department.d.ts +34 -34
- package/dist/routers/discussion.d.ts +65 -53
- 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 +69 -0
- package/dist/routers/embedding.d.ts.map +1 -0
- package/dist/routers/embedding.js +143 -0
- package/dist/routers/embedding.js.map +1 -0
- package/dist/routers/event.d.ts +39 -39
- package/dist/routers/file.d.ts +12 -12
- package/dist/routers/folder.d.ts +38 -38
- package/dist/routers/labChat.d.ts +19 -19
- package/dist/routers/marketing.d.ts +2 -2
- package/dist/routers/message.d.ts +13 -13
- package/dist/routers/newtonChat.d.ts +4 -4
- package/dist/routers/notifications.d.ts +9 -9
- package/dist/routers/permissions.d.ts +14 -14
- package/dist/routers/school.d.ts +55 -55
- 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 +10 -10
- package/dist/routers/worksheet.d.ts +97 -56
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/routers/worksheet.js +28 -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 +696 -0
- package/dist/routes/aiStream.js.map +1 -0
- package/dist/seedDatabase.d.ts +2 -2
- 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 +68 -0
- package/dist/services/aiChatStream.d.ts.map +1 -0
- package/dist/services/aiChatStream.js +157 -0
- package/dist/services/aiChatStream.js.map +1 -0
- package/dist/services/aiModifierTools.d.ts +32 -0
- package/dist/services/aiModifierTools.d.ts.map +1 -0
- package/dist/services/aiModifierTools.js +165 -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 +12 -12
- 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 +293 -293
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +36 -15
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/attendance.d.ts +10 -10
- package/dist/services/auth.d.ts +2 -2
- package/dist/services/class.d.ts +161 -138
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +25 -4
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +34 -16
- package/dist/services/comment.d.ts.map +1 -1
- package/dist/services/comment.js +23 -2
- package/dist/services/comment.js.map +1 -1
- package/dist/services/conversation.d.ts +17 -17
- package/dist/services/conversation.d.ts.map +1 -1
- package/dist/services/conversation.js +9 -7
- package/dist/services/conversation.js.map +1 -1
- 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 +8 -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 +67 -0
- package/dist/services/embedding.d.ts.map +1 -0
- package/dist/services/embedding.js +226 -0
- package/dist/services/embedding.js.map +1 -0
- package/dist/services/event.d.ts +37 -37
- package/dist/services/file.d.ts +24 -24
- package/dist/services/folder.d.ts +36 -36
- package/dist/services/labChat.d.ts +19 -19
- package/dist/services/marketing.d.ts +2 -2
- 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 +9 -9
- package/dist/services/notification.d.ts.map +1 -1
- package/dist/services/permissions.d.ts +14 -14
- package/dist/services/school.d.ts +50 -50
- package/dist/services/search.d.ts +12 -0
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +120 -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/worksheet.d.ts +62 -47
- package/dist/services/worksheet.d.ts.map +1 -1
- package/dist/services/worksheet.js +11 -4
- package/dist/services/worksheet.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 +76 -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/schema.prisma +39 -7
- package/src/index.ts +4 -0
- 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/prisma.ts +40 -1
- package/src/models/class.ts +10 -3
- package/src/models/comment.ts +1 -0
- package/src/models/conversation.ts +12 -0
- package/src/models/worksheet.ts +16 -7
- package/src/pipelines/aiLabChat.ts +54 -79
- package/src/pipelines/aiLabChatContract.ts +69 -69
- package/src/pipelines/aiNewtonChat.ts +46 -43
- package/src/pipelines/gradeWorksheet.ts +66 -15
- package/src/pipelines/labChatPrompt.ts +63 -88
- package/src/routers/_app.ts +2 -0
- package/src/routers/announcement.ts +4 -3
- package/src/routers/assignment.ts +2 -2
- package/src/routers/comment.ts +5 -0
- package/src/routers/discussion.ts +7 -0
- package/src/routers/embedding.ts +159 -0
- package/src/routers/search.ts +10 -1
- package/src/routers/worksheet.ts +29 -0
- package/src/routes/aiStream.ts +789 -0
- package/src/seedDatabase.ts +4 -4
- package/src/services/aiChatStream.ts +219 -0
- package/src/services/aiModifierTools.ts +188 -0
- package/src/services/aiProposalTools.ts +272 -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 +36 -14
- package/src/services/class.ts +30 -2
- package/src/services/comment.ts +22 -0
- package/src/services/conversation.ts +9 -4
- package/src/services/discussion.ts +9 -8
- package/src/services/discussionSummary.ts +226 -0
- package/src/services/embedding.ts +285 -0
- package/src/services/message.ts +2 -2
- package/src/services/search.ts +138 -0
- package/src/services/user.ts +9 -17
- package/src/services/worksheet.ts +10 -2
- 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 +90 -0
- package/src/workers/queues.ts +5 -1
- package/tests/integration/routers/conversation.test.ts +9 -7
- package/tests/unit/pipelines/aiLabChatContract.test.ts +38 -21
- package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
- 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,8 +102,8 @@ 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;
|
|
106
|
+
instructions: string;
|
|
107
107
|
type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
|
|
108
108
|
id?: string | undefined;
|
|
109
109
|
files?: {
|
|
@@ -111,6 +111,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
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,20 +130,20 @@ 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
|
+
instructions: string;
|
|
146
|
+
graded: boolean;
|
|
147
147
|
weight: number;
|
|
148
148
|
teacher: {
|
|
149
149
|
id: string;
|
|
@@ -151,8 +151,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
151
151
|
};
|
|
152
152
|
attachments: {
|
|
153
153
|
type: string;
|
|
154
|
-
name: string;
|
|
155
154
|
id: string;
|
|
155
|
+
name: string;
|
|
156
156
|
}[];
|
|
157
157
|
};
|
|
158
158
|
meta: object;
|
|
@@ -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;
|
|
@@ -204,8 +204,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
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,10 +252,10 @@ 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;
|
|
257
|
+
instructions: string;
|
|
258
|
+
graded: boolean;
|
|
259
259
|
weight: number;
|
|
260
260
|
markSchemeId: string | null;
|
|
261
261
|
teacher: {
|
|
@@ -269,20 +269,22 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
269
269
|
attachments: {
|
|
270
270
|
path: string;
|
|
271
271
|
type: string;
|
|
272
|
-
name: string;
|
|
273
272
|
id: string;
|
|
273
|
+
name: string;
|
|
274
274
|
size: number | null;
|
|
275
275
|
uploadedAt: Date | null;
|
|
276
|
-
thumbnailId: string | null;
|
|
277
276
|
thumbnail: {
|
|
278
277
|
path: string;
|
|
279
278
|
type: string;
|
|
280
|
-
name: string;
|
|
281
279
|
id: string;
|
|
282
280
|
userId: string | null;
|
|
283
|
-
|
|
281
|
+
name: string;
|
|
284
282
|
size: number | null;
|
|
285
283
|
uploadedAt: Date | null;
|
|
284
|
+
assignmentId: string | null;
|
|
285
|
+
submissionId: string | null;
|
|
286
|
+
thumbnailId: string | null;
|
|
287
|
+
annotationId: string | null;
|
|
286
288
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
287
289
|
uploadUrl: string | null;
|
|
288
290
|
uploadExpiresAt: Date | null;
|
|
@@ -292,11 +294,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
292
294
|
uploadRetryCount: number;
|
|
293
295
|
isOrphaned: boolean;
|
|
294
296
|
cleanupAt: Date | null;
|
|
295
|
-
thumbnailId: string | null;
|
|
296
|
-
assignmentId: string | null;
|
|
297
|
-
submissionId: string | null;
|
|
298
|
-
annotationId: string | null;
|
|
299
297
|
classDraftId: string | null;
|
|
298
|
+
folderId: string | null;
|
|
300
299
|
conversationId: string | null;
|
|
301
300
|
messageId: string | null;
|
|
302
301
|
announcementId: string | null;
|
|
@@ -304,6 +303,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
304
303
|
discussionReplyId: string | null;
|
|
305
304
|
schoolDevelopementProgramId: string | null;
|
|
306
305
|
} | null;
|
|
306
|
+
thumbnailId: string | null;
|
|
307
307
|
}[];
|
|
308
308
|
};
|
|
309
309
|
meta: object;
|
|
@@ -326,16 +326,24 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
326
326
|
};
|
|
327
327
|
output: {
|
|
328
328
|
sections: {
|
|
329
|
-
name: string;
|
|
330
329
|
id: string;
|
|
330
|
+
name: string;
|
|
331
331
|
}[];
|
|
332
332
|
class: {
|
|
333
|
-
name: string;
|
|
334
333
|
id: string;
|
|
334
|
+
name: string;
|
|
335
335
|
};
|
|
336
|
+
markScheme: {
|
|
337
|
+
id: string;
|
|
338
|
+
structured: string;
|
|
339
|
+
} | null;
|
|
340
|
+
gradingBoundary: {
|
|
341
|
+
id: string;
|
|
342
|
+
structured: string;
|
|
343
|
+
} | null;
|
|
336
344
|
section: {
|
|
337
|
-
name: string;
|
|
338
345
|
id: string;
|
|
346
|
+
name: string;
|
|
339
347
|
} | null;
|
|
340
348
|
submissions: {
|
|
341
349
|
student: {
|
|
@@ -343,17 +351,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
343
351
|
username: string;
|
|
344
352
|
};
|
|
345
353
|
}[];
|
|
346
|
-
markScheme: {
|
|
347
|
-
id: string;
|
|
348
|
-
structured: string;
|
|
349
|
-
} | null;
|
|
350
|
-
gradingBoundary: {
|
|
351
|
-
id: string;
|
|
352
|
-
structured: string;
|
|
353
|
-
} | null;
|
|
354
354
|
worksheets: {
|
|
355
|
-
name: string;
|
|
356
355
|
id: string;
|
|
356
|
+
name: string;
|
|
357
357
|
}[];
|
|
358
358
|
teacher: {
|
|
359
359
|
id: string;
|
|
@@ -362,29 +362,31 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
362
362
|
attachments: {
|
|
363
363
|
path: string;
|
|
364
364
|
type: string;
|
|
365
|
-
name: string;
|
|
366
365
|
id: string;
|
|
366
|
+
name: string;
|
|
367
367
|
size: number | null;
|
|
368
368
|
uploadedAt: Date | null;
|
|
369
369
|
thumbnailId: string | null;
|
|
370
370
|
}[];
|
|
371
371
|
eventAttached: {
|
|
372
|
-
name: string | null;
|
|
373
372
|
id: string;
|
|
373
|
+
location: string | null;
|
|
374
|
+
name: string | null;
|
|
374
375
|
color: string | null;
|
|
375
376
|
startTime: Date;
|
|
376
377
|
endTime: Date;
|
|
377
|
-
location: string | null;
|
|
378
378
|
remarks: string | null;
|
|
379
379
|
} | null;
|
|
380
380
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
381
381
|
id: string;
|
|
382
382
|
createdAt: Date | null;
|
|
383
383
|
classId: string;
|
|
384
|
-
modifiedAt: Date | null;
|
|
385
384
|
title: string;
|
|
386
|
-
instructions: string;
|
|
387
385
|
dueDate: Date;
|
|
386
|
+
maxGrade: number | null;
|
|
387
|
+
eventId: string | null;
|
|
388
|
+
instructions: string;
|
|
389
|
+
modifiedAt: Date | null;
|
|
388
390
|
teacherId: string;
|
|
389
391
|
acceptFiles: boolean;
|
|
390
392
|
acceptExtendedResponse: boolean;
|
|
@@ -393,11 +395,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
393
395
|
aiPolicyLevel: number;
|
|
394
396
|
sectionId: string | null;
|
|
395
397
|
graded: boolean;
|
|
396
|
-
maxGrade: number | null;
|
|
397
398
|
weight: number;
|
|
398
399
|
inProgress: boolean;
|
|
399
400
|
template: boolean;
|
|
400
|
-
eventId: string | null;
|
|
401
401
|
markSchemeId: string | null;
|
|
402
402
|
order: number | null;
|
|
403
403
|
gradingBoundaryId: string | null;
|
|
@@ -414,12 +414,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
414
414
|
late: boolean;
|
|
415
415
|
assignment: {
|
|
416
416
|
class: {
|
|
417
|
-
|
|
417
|
+
section: string;
|
|
418
418
|
id: string;
|
|
419
|
+
name: string;
|
|
419
420
|
schoolId: string | null;
|
|
420
|
-
subject: string;
|
|
421
421
|
color: string | null;
|
|
422
|
-
|
|
422
|
+
subject: string;
|
|
423
423
|
syllabus: string | null;
|
|
424
424
|
departmentId: string | null;
|
|
425
425
|
discussionsEnabled: boolean;
|
|
@@ -435,18 +435,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
435
435
|
structured: string;
|
|
436
436
|
} | null;
|
|
437
437
|
worksheets: {
|
|
438
|
-
name: string;
|
|
439
438
|
id: string;
|
|
439
|
+
name: string;
|
|
440
440
|
}[];
|
|
441
441
|
} & {
|
|
442
442
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
443
443
|
id: string;
|
|
444
444
|
createdAt: Date | null;
|
|
445
445
|
classId: string;
|
|
446
|
-
modifiedAt: Date | null;
|
|
447
446
|
title: string;
|
|
448
|
-
instructions: string;
|
|
449
447
|
dueDate: Date;
|
|
448
|
+
maxGrade: number | null;
|
|
449
|
+
eventId: string | null;
|
|
450
|
+
instructions: string;
|
|
451
|
+
modifiedAt: Date | null;
|
|
450
452
|
teacherId: string;
|
|
451
453
|
acceptFiles: boolean;
|
|
452
454
|
acceptExtendedResponse: boolean;
|
|
@@ -455,24 +457,25 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
455
457
|
aiPolicyLevel: number;
|
|
456
458
|
sectionId: string | null;
|
|
457
459
|
graded: boolean;
|
|
458
|
-
maxGrade: number | null;
|
|
459
460
|
weight: number;
|
|
460
461
|
inProgress: boolean;
|
|
461
462
|
template: boolean;
|
|
462
|
-
eventId: string | null;
|
|
463
463
|
markSchemeId: string | null;
|
|
464
464
|
order: number | null;
|
|
465
465
|
gradingBoundaryId: string | null;
|
|
466
466
|
};
|
|
467
|
-
|
|
467
|
+
attachments: {
|
|
468
468
|
path: string;
|
|
469
469
|
type: string;
|
|
470
|
-
name: string;
|
|
471
470
|
id: string;
|
|
472
471
|
userId: string | null;
|
|
473
|
-
|
|
472
|
+
name: string;
|
|
474
473
|
size: number | null;
|
|
475
474
|
uploadedAt: Date | null;
|
|
475
|
+
assignmentId: string | null;
|
|
476
|
+
submissionId: string | null;
|
|
477
|
+
thumbnailId: string | null;
|
|
478
|
+
annotationId: string | null;
|
|
476
479
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
477
480
|
uploadUrl: string | null;
|
|
478
481
|
uploadExpiresAt: Date | null;
|
|
@@ -482,11 +485,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
482
485
|
uploadRetryCount: number;
|
|
483
486
|
isOrphaned: boolean;
|
|
484
487
|
cleanupAt: Date | null;
|
|
485
|
-
thumbnailId: string | null;
|
|
486
|
-
assignmentId: string | null;
|
|
487
|
-
submissionId: string | null;
|
|
488
|
-
annotationId: string | null;
|
|
489
488
|
classDraftId: string | null;
|
|
489
|
+
folderId: string | null;
|
|
490
490
|
conversationId: string | null;
|
|
491
491
|
messageId: string | null;
|
|
492
492
|
announcementId: string | null;
|
|
@@ -494,15 +494,22 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
494
494
|
discussionReplyId: string | null;
|
|
495
495
|
schoolDevelopementProgramId: string | null;
|
|
496
496
|
}[];
|
|
497
|
-
|
|
497
|
+
student: {
|
|
498
|
+
id: string;
|
|
499
|
+
username: string;
|
|
500
|
+
};
|
|
501
|
+
annotations: {
|
|
498
502
|
path: string;
|
|
499
503
|
type: string;
|
|
500
|
-
name: string;
|
|
501
504
|
id: string;
|
|
502
505
|
userId: string | null;
|
|
503
|
-
|
|
506
|
+
name: string;
|
|
504
507
|
size: number | null;
|
|
505
508
|
uploadedAt: Date | null;
|
|
509
|
+
assignmentId: string | null;
|
|
510
|
+
submissionId: string | null;
|
|
511
|
+
thumbnailId: string | null;
|
|
512
|
+
annotationId: string | null;
|
|
506
513
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
507
514
|
uploadUrl: string | null;
|
|
508
515
|
uploadExpiresAt: Date | null;
|
|
@@ -512,11 +519,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
512
519
|
uploadRetryCount: number;
|
|
513
520
|
isOrphaned: boolean;
|
|
514
521
|
cleanupAt: Date | null;
|
|
515
|
-
thumbnailId: string | null;
|
|
516
|
-
assignmentId: string | null;
|
|
517
|
-
submissionId: string | null;
|
|
518
|
-
annotationId: string | null;
|
|
519
522
|
classDraftId: string | null;
|
|
523
|
+
folderId: string | null;
|
|
520
524
|
conversationId: string | null;
|
|
521
525
|
messageId: string | null;
|
|
522
526
|
announcementId: string | null;
|
|
@@ -524,10 +528,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
524
528
|
discussionReplyId: string | null;
|
|
525
529
|
schoolDevelopementProgramId: string | null;
|
|
526
530
|
}[];
|
|
527
|
-
student: {
|
|
528
|
-
id: string;
|
|
529
|
-
username: string;
|
|
530
|
-
};
|
|
531
531
|
id: string;
|
|
532
532
|
createdAt: Date;
|
|
533
533
|
assignmentId: string;
|
|
@@ -556,12 +556,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
556
556
|
late: boolean;
|
|
557
557
|
assignment: {
|
|
558
558
|
class: {
|
|
559
|
-
|
|
559
|
+
section: string;
|
|
560
560
|
id: string;
|
|
561
|
+
name: string;
|
|
561
562
|
schoolId: string | null;
|
|
562
|
-
subject: string;
|
|
563
563
|
color: string | null;
|
|
564
|
-
|
|
564
|
+
subject: string;
|
|
565
565
|
syllabus: string | null;
|
|
566
566
|
departmentId: string | null;
|
|
567
567
|
discussionsEnabled: boolean;
|
|
@@ -577,18 +577,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
577
577
|
structured: string;
|
|
578
578
|
} | null;
|
|
579
579
|
worksheets: {
|
|
580
|
-
name: string;
|
|
581
580
|
id: string;
|
|
581
|
+
name: string;
|
|
582
582
|
}[];
|
|
583
583
|
} & {
|
|
584
584
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
585
585
|
id: string;
|
|
586
586
|
createdAt: Date | null;
|
|
587
587
|
classId: string;
|
|
588
|
-
modifiedAt: Date | null;
|
|
589
588
|
title: string;
|
|
590
|
-
instructions: string;
|
|
591
589
|
dueDate: Date;
|
|
590
|
+
maxGrade: number | null;
|
|
591
|
+
eventId: string | null;
|
|
592
|
+
instructions: string;
|
|
593
|
+
modifiedAt: Date | null;
|
|
592
594
|
teacherId: string;
|
|
593
595
|
acceptFiles: boolean;
|
|
594
596
|
acceptExtendedResponse: boolean;
|
|
@@ -597,24 +599,25 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
597
599
|
aiPolicyLevel: number;
|
|
598
600
|
sectionId: string | null;
|
|
599
601
|
graded: boolean;
|
|
600
|
-
maxGrade: number | null;
|
|
601
602
|
weight: number;
|
|
602
603
|
inProgress: boolean;
|
|
603
604
|
template: boolean;
|
|
604
|
-
eventId: string | null;
|
|
605
605
|
markSchemeId: string | null;
|
|
606
606
|
order: number | null;
|
|
607
607
|
gradingBoundaryId: string | null;
|
|
608
608
|
};
|
|
609
|
-
|
|
609
|
+
attachments: {
|
|
610
610
|
path: string;
|
|
611
611
|
type: string;
|
|
612
|
-
name: string;
|
|
613
612
|
id: string;
|
|
614
613
|
userId: string | null;
|
|
615
|
-
|
|
614
|
+
name: string;
|
|
616
615
|
size: number | null;
|
|
617
616
|
uploadedAt: Date | null;
|
|
617
|
+
assignmentId: string | null;
|
|
618
|
+
submissionId: string | null;
|
|
619
|
+
thumbnailId: string | null;
|
|
620
|
+
annotationId: string | null;
|
|
618
621
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
619
622
|
uploadUrl: string | null;
|
|
620
623
|
uploadExpiresAt: Date | null;
|
|
@@ -624,11 +627,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
624
627
|
uploadRetryCount: number;
|
|
625
628
|
isOrphaned: boolean;
|
|
626
629
|
cleanupAt: Date | null;
|
|
627
|
-
thumbnailId: string | null;
|
|
628
|
-
assignmentId: string | null;
|
|
629
|
-
submissionId: string | null;
|
|
630
|
-
annotationId: string | null;
|
|
631
630
|
classDraftId: string | null;
|
|
631
|
+
folderId: string | null;
|
|
632
632
|
conversationId: string | null;
|
|
633
633
|
messageId: string | null;
|
|
634
634
|
announcementId: string | null;
|
|
@@ -636,15 +636,34 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
636
636
|
discussionReplyId: string | null;
|
|
637
637
|
schoolDevelopementProgramId: string | null;
|
|
638
638
|
}[];
|
|
639
|
-
|
|
639
|
+
student: {
|
|
640
|
+
id: string;
|
|
641
|
+
username: string;
|
|
642
|
+
profile: {
|
|
643
|
+
id: string;
|
|
644
|
+
userId: string;
|
|
645
|
+
displayName: string | null;
|
|
646
|
+
bio: string | null;
|
|
647
|
+
location: string | null;
|
|
648
|
+
website: string | null;
|
|
649
|
+
createdAt: Date;
|
|
650
|
+
updatedAt: Date;
|
|
651
|
+
profilePicture: string | null;
|
|
652
|
+
profilePictureThumbnail: string | null;
|
|
653
|
+
} | null;
|
|
654
|
+
};
|
|
655
|
+
annotations: {
|
|
640
656
|
path: string;
|
|
641
657
|
type: string;
|
|
642
|
-
name: string;
|
|
643
658
|
id: string;
|
|
644
659
|
userId: string | null;
|
|
645
|
-
|
|
660
|
+
name: string;
|
|
646
661
|
size: number | null;
|
|
647
662
|
uploadedAt: Date | null;
|
|
663
|
+
assignmentId: string | null;
|
|
664
|
+
submissionId: string | null;
|
|
665
|
+
thumbnailId: string | null;
|
|
666
|
+
annotationId: string | null;
|
|
648
667
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
649
668
|
uploadUrl: string | null;
|
|
650
669
|
uploadExpiresAt: Date | null;
|
|
@@ -654,11 +673,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
654
673
|
uploadRetryCount: number;
|
|
655
674
|
isOrphaned: boolean;
|
|
656
675
|
cleanupAt: Date | null;
|
|
657
|
-
thumbnailId: string | null;
|
|
658
|
-
assignmentId: string | null;
|
|
659
|
-
submissionId: string | null;
|
|
660
|
-
annotationId: string | null;
|
|
661
676
|
classDraftId: string | null;
|
|
677
|
+
folderId: string | null;
|
|
662
678
|
conversationId: string | null;
|
|
663
679
|
messageId: string | null;
|
|
664
680
|
announcementId: string | null;
|
|
@@ -666,22 +682,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
666
682
|
discussionReplyId: string | null;
|
|
667
683
|
schoolDevelopementProgramId: string | null;
|
|
668
684
|
}[];
|
|
669
|
-
student: {
|
|
670
|
-
id: string;
|
|
671
|
-
username: string;
|
|
672
|
-
profile: {
|
|
673
|
-
id: string;
|
|
674
|
-
createdAt: Date;
|
|
675
|
-
updatedAt: Date;
|
|
676
|
-
userId: string;
|
|
677
|
-
location: string | null;
|
|
678
|
-
displayName: string | null;
|
|
679
|
-
bio: string | null;
|
|
680
|
-
website: string | null;
|
|
681
|
-
profilePicture: string | null;
|
|
682
|
-
profilePictureThumbnail: string | null;
|
|
683
|
-
} | null;
|
|
684
|
-
};
|
|
685
685
|
id: string;
|
|
686
686
|
createdAt: Date;
|
|
687
687
|
assignmentId: string;
|
|
@@ -719,12 +719,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
719
719
|
output: {
|
|
720
720
|
assignment: {
|
|
721
721
|
class: {
|
|
722
|
-
|
|
722
|
+
section: string;
|
|
723
723
|
id: string;
|
|
724
|
+
name: string;
|
|
724
725
|
schoolId: string | null;
|
|
725
|
-
subject: string;
|
|
726
726
|
color: string | null;
|
|
727
|
-
|
|
727
|
+
subject: string;
|
|
728
728
|
syllabus: string | null;
|
|
729
729
|
departmentId: string | null;
|
|
730
730
|
discussionsEnabled: boolean;
|
|
@@ -744,10 +744,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
744
744
|
id: string;
|
|
745
745
|
createdAt: Date | null;
|
|
746
746
|
classId: string;
|
|
747
|
-
modifiedAt: Date | null;
|
|
748
747
|
title: string;
|
|
749
|
-
instructions: string;
|
|
750
748
|
dueDate: Date;
|
|
749
|
+
maxGrade: number | null;
|
|
750
|
+
eventId: string | null;
|
|
751
|
+
instructions: string;
|
|
752
|
+
modifiedAt: Date | null;
|
|
751
753
|
teacherId: string;
|
|
752
754
|
acceptFiles: boolean;
|
|
753
755
|
acceptExtendedResponse: boolean;
|
|
@@ -756,11 +758,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
756
758
|
aiPolicyLevel: number;
|
|
757
759
|
sectionId: string | null;
|
|
758
760
|
graded: boolean;
|
|
759
|
-
maxGrade: number | null;
|
|
760
761
|
weight: number;
|
|
761
762
|
inProgress: boolean;
|
|
762
763
|
template: boolean;
|
|
763
|
-
eventId: string | null;
|
|
764
764
|
markSchemeId: string | null;
|
|
765
765
|
order: number | null;
|
|
766
766
|
gradingBoundaryId: string | null;
|
|
@@ -768,12 +768,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
768
768
|
attachments: {
|
|
769
769
|
path: string;
|
|
770
770
|
type: string;
|
|
771
|
-
name: string;
|
|
772
771
|
id: string;
|
|
773
772
|
userId: string | null;
|
|
774
|
-
|
|
773
|
+
name: string;
|
|
775
774
|
size: number | null;
|
|
776
775
|
uploadedAt: Date | null;
|
|
776
|
+
assignmentId: string | null;
|
|
777
|
+
submissionId: string | null;
|
|
778
|
+
thumbnailId: string | null;
|
|
779
|
+
annotationId: string | null;
|
|
777
780
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
778
781
|
uploadUrl: string | null;
|
|
779
782
|
uploadExpiresAt: Date | null;
|
|
@@ -783,11 +786,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
783
786
|
uploadRetryCount: number;
|
|
784
787
|
isOrphaned: boolean;
|
|
785
788
|
cleanupAt: Date | null;
|
|
786
|
-
thumbnailId: string | null;
|
|
787
|
-
assignmentId: string | null;
|
|
788
|
-
submissionId: string | null;
|
|
789
|
-
annotationId: string | null;
|
|
790
789
|
classDraftId: string | null;
|
|
790
|
+
folderId: string | null;
|
|
791
791
|
conversationId: string | null;
|
|
792
792
|
messageId: string | null;
|
|
793
793
|
announcementId: string | null;
|
|
@@ -828,12 +828,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
828
828
|
late: boolean;
|
|
829
829
|
assignment: {
|
|
830
830
|
class: {
|
|
831
|
-
|
|
831
|
+
section: string;
|
|
832
832
|
id: string;
|
|
833
|
+
name: string;
|
|
833
834
|
schoolId: string | null;
|
|
834
|
-
subject: string;
|
|
835
835
|
color: string | null;
|
|
836
|
-
|
|
836
|
+
subject: string;
|
|
837
837
|
syllabus: string | null;
|
|
838
838
|
departmentId: string | null;
|
|
839
839
|
discussionsEnabled: boolean;
|
|
@@ -853,10 +853,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
853
853
|
id: string;
|
|
854
854
|
createdAt: Date | null;
|
|
855
855
|
classId: string;
|
|
856
|
-
modifiedAt: Date | null;
|
|
857
856
|
title: string;
|
|
858
|
-
instructions: string;
|
|
859
857
|
dueDate: Date;
|
|
858
|
+
maxGrade: number | null;
|
|
859
|
+
eventId: string | null;
|
|
860
|
+
instructions: string;
|
|
861
|
+
modifiedAt: Date | null;
|
|
860
862
|
teacherId: string;
|
|
861
863
|
acceptFiles: boolean;
|
|
862
864
|
acceptExtendedResponse: boolean;
|
|
@@ -865,11 +867,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
865
867
|
aiPolicyLevel: number;
|
|
866
868
|
sectionId: string | null;
|
|
867
869
|
graded: boolean;
|
|
868
|
-
maxGrade: number | null;
|
|
869
870
|
weight: number;
|
|
870
871
|
inProgress: boolean;
|
|
871
872
|
template: boolean;
|
|
872
|
-
eventId: string | null;
|
|
873
873
|
markSchemeId: string | null;
|
|
874
874
|
order: number | null;
|
|
875
875
|
gradingBoundaryId: string | null;
|
|
@@ -878,12 +878,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
878
878
|
thumbnail: {
|
|
879
879
|
path: string;
|
|
880
880
|
type: string;
|
|
881
|
-
name: string;
|
|
882
881
|
id: string;
|
|
883
882
|
userId: string | null;
|
|
884
|
-
|
|
883
|
+
name: string;
|
|
885
884
|
size: number | null;
|
|
886
885
|
uploadedAt: Date | null;
|
|
886
|
+
assignmentId: string | null;
|
|
887
|
+
submissionId: string | null;
|
|
888
|
+
thumbnailId: string | null;
|
|
889
|
+
annotationId: string | null;
|
|
887
890
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
888
891
|
uploadUrl: string | null;
|
|
889
892
|
uploadExpiresAt: Date | null;
|
|
@@ -893,11 +896,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
893
896
|
uploadRetryCount: number;
|
|
894
897
|
isOrphaned: boolean;
|
|
895
898
|
cleanupAt: Date | null;
|
|
896
|
-
thumbnailId: string | null;
|
|
897
|
-
assignmentId: string | null;
|
|
898
|
-
submissionId: string | null;
|
|
899
|
-
annotationId: string | null;
|
|
900
899
|
classDraftId: string | null;
|
|
900
|
+
folderId: string | null;
|
|
901
901
|
conversationId: string | null;
|
|
902
902
|
messageId: string | null;
|
|
903
903
|
announcementId: string | null;
|
|
@@ -908,12 +908,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
908
908
|
} & {
|
|
909
909
|
path: string;
|
|
910
910
|
type: string;
|
|
911
|
-
name: string;
|
|
912
911
|
id: string;
|
|
913
912
|
userId: string | null;
|
|
914
|
-
|
|
913
|
+
name: string;
|
|
915
914
|
size: number | null;
|
|
916
915
|
uploadedAt: Date | null;
|
|
916
|
+
assignmentId: string | null;
|
|
917
|
+
submissionId: string | null;
|
|
918
|
+
thumbnailId: string | null;
|
|
919
|
+
annotationId: string | null;
|
|
917
920
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
918
921
|
uploadUrl: string | null;
|
|
919
922
|
uploadExpiresAt: Date | null;
|
|
@@ -923,11 +926,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
923
926
|
uploadRetryCount: number;
|
|
924
927
|
isOrphaned: boolean;
|
|
925
928
|
cleanupAt: Date | null;
|
|
926
|
-
thumbnailId: string | null;
|
|
927
|
-
assignmentId: string | null;
|
|
928
|
-
submissionId: string | null;
|
|
929
|
-
annotationId: string | null;
|
|
930
929
|
classDraftId: string | null;
|
|
930
|
+
folderId: string | null;
|
|
931
931
|
conversationId: string | null;
|
|
932
932
|
messageId: string | null;
|
|
933
933
|
announcementId: string | null;
|
|
@@ -939,8 +939,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
939
939
|
id: string;
|
|
940
940
|
username: string;
|
|
941
941
|
profile: {
|
|
942
|
-
displayName: string | null;
|
|
943
942
|
profilePicture: string | null;
|
|
943
|
+
displayName: string | null;
|
|
944
944
|
profilePictureThumbnail: string | null;
|
|
945
945
|
} | null;
|
|
946
946
|
};
|
|
@@ -974,8 +974,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
974
974
|
id: string;
|
|
975
975
|
username: string;
|
|
976
976
|
profile: {
|
|
977
|
-
displayName: string | null;
|
|
978
977
|
profilePicture: string | null;
|
|
978
|
+
displayName: string | null;
|
|
979
979
|
profilePictureThumbnail: string | null;
|
|
980
980
|
} | null;
|
|
981
981
|
};
|
|
@@ -984,32 +984,34 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
984
984
|
id: string;
|
|
985
985
|
username: string;
|
|
986
986
|
profile: {
|
|
987
|
-
displayName: string | null;
|
|
988
987
|
profilePicture: string | null;
|
|
988
|
+
displayName: string | null;
|
|
989
989
|
profilePictureThumbnail: string | null;
|
|
990
990
|
} | null;
|
|
991
991
|
};
|
|
992
992
|
} & {
|
|
993
993
|
id: string;
|
|
994
994
|
createdAt: Date;
|
|
995
|
+
content: string;
|
|
995
996
|
assignmentId: string | null;
|
|
996
997
|
submissionId: string | null;
|
|
997
|
-
announcementId: string | null;
|
|
998
998
|
modifiedAt: Date | null;
|
|
999
|
-
|
|
999
|
+
announcementId: string | null;
|
|
1000
1000
|
authorId: string;
|
|
1001
|
+
isPinned: boolean;
|
|
1001
1002
|
parentCommentId: string | null;
|
|
1002
1003
|
studentQuestionProgressId: string | null;
|
|
1003
1004
|
})[];
|
|
1004
1005
|
} & {
|
|
1005
1006
|
id: string;
|
|
1006
1007
|
createdAt: Date;
|
|
1008
|
+
content: string;
|
|
1007
1009
|
assignmentId: string | null;
|
|
1008
1010
|
submissionId: string | null;
|
|
1009
|
-
announcementId: string | null;
|
|
1010
1011
|
modifiedAt: Date | null;
|
|
1011
|
-
|
|
1012
|
+
announcementId: string | null;
|
|
1012
1013
|
authorId: string;
|
|
1014
|
+
isPinned: boolean;
|
|
1013
1015
|
parentCommentId: string | null;
|
|
1014
1016
|
studentQuestionProgressId: string | null;
|
|
1015
1017
|
})[];
|
|
@@ -1020,8 +1022,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1020
1022
|
input: {
|
|
1021
1023
|
[x: string]: unknown;
|
|
1022
1024
|
classId: string;
|
|
1023
|
-
assignmentId: string;
|
|
1024
1025
|
content: string;
|
|
1026
|
+
assignmentId: string;
|
|
1025
1027
|
parentCommentId?: string | undefined;
|
|
1026
1028
|
};
|
|
1027
1029
|
output: {
|
|
@@ -1030,8 +1032,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1030
1032
|
id: string;
|
|
1031
1033
|
username: string;
|
|
1032
1034
|
profile: {
|
|
1033
|
-
displayName: string | null;
|
|
1034
1035
|
profilePicture: string | null;
|
|
1036
|
+
displayName: string | null;
|
|
1035
1037
|
profilePictureThumbnail: string | null;
|
|
1036
1038
|
} | null;
|
|
1037
1039
|
};
|
|
@@ -1040,32 +1042,34 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1040
1042
|
id: string;
|
|
1041
1043
|
username: string;
|
|
1042
1044
|
profile: {
|
|
1043
|
-
displayName: string | null;
|
|
1044
1045
|
profilePicture: string | null;
|
|
1046
|
+
displayName: string | null;
|
|
1045
1047
|
profilePictureThumbnail: string | null;
|
|
1046
1048
|
} | null;
|
|
1047
1049
|
};
|
|
1048
1050
|
} & {
|
|
1049
1051
|
id: string;
|
|
1050
1052
|
createdAt: Date;
|
|
1053
|
+
content: string;
|
|
1051
1054
|
assignmentId: string | null;
|
|
1052
1055
|
submissionId: string | null;
|
|
1053
|
-
announcementId: string | null;
|
|
1054
1056
|
modifiedAt: Date | null;
|
|
1055
|
-
|
|
1057
|
+
announcementId: string | null;
|
|
1056
1058
|
authorId: string;
|
|
1059
|
+
isPinned: boolean;
|
|
1057
1060
|
parentCommentId: string | null;
|
|
1058
1061
|
studentQuestionProgressId: string | null;
|
|
1059
1062
|
})[];
|
|
1060
1063
|
} & {
|
|
1061
1064
|
id: string;
|
|
1062
1065
|
createdAt: Date;
|
|
1066
|
+
content: string;
|
|
1063
1067
|
assignmentId: string | null;
|
|
1064
1068
|
submissionId: string | null;
|
|
1065
|
-
announcementId: string | null;
|
|
1066
1069
|
modifiedAt: Date | null;
|
|
1067
|
-
|
|
1070
|
+
announcementId: string | null;
|
|
1068
1071
|
authorId: string;
|
|
1072
|
+
isPinned: boolean;
|
|
1069
1073
|
parentCommentId: string | null;
|
|
1070
1074
|
studentQuestionProgressId: string | null;
|
|
1071
1075
|
};
|
|
@@ -1085,8 +1089,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1085
1089
|
id: string;
|
|
1086
1090
|
username: string;
|
|
1087
1091
|
profile: {
|
|
1088
|
-
displayName: string | null;
|
|
1089
1092
|
profilePicture: string | null;
|
|
1093
|
+
displayName: string | null;
|
|
1090
1094
|
profilePictureThumbnail: string | null;
|
|
1091
1095
|
} | null;
|
|
1092
1096
|
};
|
|
@@ -1095,32 +1099,34 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1095
1099
|
id: string;
|
|
1096
1100
|
username: string;
|
|
1097
1101
|
profile: {
|
|
1098
|
-
displayName: string | null;
|
|
1099
1102
|
profilePicture: string | null;
|
|
1103
|
+
displayName: string | null;
|
|
1100
1104
|
profilePictureThumbnail: string | null;
|
|
1101
1105
|
} | null;
|
|
1102
1106
|
};
|
|
1103
1107
|
} & {
|
|
1104
1108
|
id: string;
|
|
1105
1109
|
createdAt: Date;
|
|
1110
|
+
content: string;
|
|
1106
1111
|
assignmentId: string | null;
|
|
1107
1112
|
submissionId: string | null;
|
|
1108
|
-
announcementId: string | null;
|
|
1109
1113
|
modifiedAt: Date | null;
|
|
1110
|
-
|
|
1114
|
+
announcementId: string | null;
|
|
1111
1115
|
authorId: string;
|
|
1116
|
+
isPinned: boolean;
|
|
1112
1117
|
parentCommentId: string | null;
|
|
1113
1118
|
studentQuestionProgressId: string | null;
|
|
1114
1119
|
})[];
|
|
1115
1120
|
} & {
|
|
1116
1121
|
id: string;
|
|
1117
1122
|
createdAt: Date;
|
|
1123
|
+
content: string;
|
|
1118
1124
|
assignmentId: string | null;
|
|
1119
1125
|
submissionId: string | null;
|
|
1120
|
-
announcementId: string | null;
|
|
1121
1126
|
modifiedAt: Date | null;
|
|
1122
|
-
|
|
1127
|
+
announcementId: string | null;
|
|
1123
1128
|
authorId: string;
|
|
1129
|
+
isPinned: boolean;
|
|
1124
1130
|
parentCommentId: string | null;
|
|
1125
1131
|
studentQuestionProgressId: string | null;
|
|
1126
1132
|
})[];
|
|
@@ -1131,9 +1137,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1131
1137
|
input: {
|
|
1132
1138
|
[x: string]: unknown;
|
|
1133
1139
|
classId: string;
|
|
1140
|
+
content: string;
|
|
1134
1141
|
assignmentId: string;
|
|
1135
1142
|
submissionId: string;
|
|
1136
|
-
content: string;
|
|
1137
1143
|
parentCommentId?: string | undefined;
|
|
1138
1144
|
};
|
|
1139
1145
|
output: {
|
|
@@ -1142,8 +1148,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1142
1148
|
id: string;
|
|
1143
1149
|
username: string;
|
|
1144
1150
|
profile: {
|
|
1145
|
-
displayName: string | null;
|
|
1146
1151
|
profilePicture: string | null;
|
|
1152
|
+
displayName: string | null;
|
|
1147
1153
|
profilePictureThumbnail: string | null;
|
|
1148
1154
|
} | null;
|
|
1149
1155
|
};
|
|
@@ -1152,32 +1158,34 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1152
1158
|
id: string;
|
|
1153
1159
|
username: string;
|
|
1154
1160
|
profile: {
|
|
1155
|
-
displayName: string | null;
|
|
1156
1161
|
profilePicture: string | null;
|
|
1162
|
+
displayName: string | null;
|
|
1157
1163
|
profilePictureThumbnail: string | null;
|
|
1158
1164
|
} | null;
|
|
1159
1165
|
};
|
|
1160
1166
|
} & {
|
|
1161
1167
|
id: string;
|
|
1162
1168
|
createdAt: Date;
|
|
1169
|
+
content: string;
|
|
1163
1170
|
assignmentId: string | null;
|
|
1164
1171
|
submissionId: string | null;
|
|
1165
|
-
announcementId: string | null;
|
|
1166
1172
|
modifiedAt: Date | null;
|
|
1167
|
-
|
|
1173
|
+
announcementId: string | null;
|
|
1168
1174
|
authorId: string;
|
|
1175
|
+
isPinned: boolean;
|
|
1169
1176
|
parentCommentId: string | null;
|
|
1170
1177
|
studentQuestionProgressId: string | null;
|
|
1171
1178
|
})[];
|
|
1172
1179
|
} & {
|
|
1173
1180
|
id: string;
|
|
1174
1181
|
createdAt: Date;
|
|
1182
|
+
content: string;
|
|
1175
1183
|
assignmentId: string | null;
|
|
1176
1184
|
submissionId: string | null;
|
|
1177
|
-
announcementId: string | null;
|
|
1178
1185
|
modifiedAt: Date | null;
|
|
1179
|
-
|
|
1186
|
+
announcementId: string | null;
|
|
1180
1187
|
authorId: string;
|
|
1188
|
+
isPinned: boolean;
|
|
1181
1189
|
parentCommentId: string | null;
|
|
1182
1190
|
studentQuestionProgressId: string | null;
|
|
1183
1191
|
};
|
|
@@ -1190,8 +1198,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1190
1198
|
classId: string;
|
|
1191
1199
|
assignmentId: string;
|
|
1192
1200
|
submissionId: string;
|
|
1193
|
-
gradeReceived?: number | null | undefined;
|
|
1194
1201
|
feedback?: string | undefined;
|
|
1202
|
+
gradeReceived?: number | null | undefined;
|
|
1195
1203
|
existingFileIds?: string[] | undefined;
|
|
1196
1204
|
removedAttachments?: string[] | undefined;
|
|
1197
1205
|
newAttachments?: {
|
|
@@ -1210,12 +1218,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1210
1218
|
output: {
|
|
1211
1219
|
assignment: {
|
|
1212
1220
|
class: {
|
|
1213
|
-
|
|
1221
|
+
section: string;
|
|
1214
1222
|
id: string;
|
|
1223
|
+
name: string;
|
|
1215
1224
|
schoolId: string | null;
|
|
1216
|
-
subject: string;
|
|
1217
1225
|
color: string | null;
|
|
1218
|
-
|
|
1226
|
+
subject: string;
|
|
1219
1227
|
syllabus: string | null;
|
|
1220
1228
|
departmentId: string | null;
|
|
1221
1229
|
discussionsEnabled: boolean;
|
|
@@ -1235,10 +1243,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1235
1243
|
id: string;
|
|
1236
1244
|
createdAt: Date | null;
|
|
1237
1245
|
classId: string;
|
|
1238
|
-
modifiedAt: Date | null;
|
|
1239
1246
|
title: string;
|
|
1240
|
-
instructions: string;
|
|
1241
1247
|
dueDate: Date;
|
|
1248
|
+
maxGrade: number | null;
|
|
1249
|
+
eventId: string | null;
|
|
1250
|
+
instructions: string;
|
|
1251
|
+
modifiedAt: Date | null;
|
|
1242
1252
|
teacherId: string;
|
|
1243
1253
|
acceptFiles: boolean;
|
|
1244
1254
|
acceptExtendedResponse: boolean;
|
|
@@ -1247,25 +1257,26 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1247
1257
|
aiPolicyLevel: number;
|
|
1248
1258
|
sectionId: string | null;
|
|
1249
1259
|
graded: boolean;
|
|
1250
|
-
maxGrade: number | null;
|
|
1251
1260
|
weight: number;
|
|
1252
1261
|
inProgress: boolean;
|
|
1253
1262
|
template: boolean;
|
|
1254
|
-
eventId: string | null;
|
|
1255
1263
|
markSchemeId: string | null;
|
|
1256
1264
|
order: number | null;
|
|
1257
1265
|
gradingBoundaryId: string | null;
|
|
1258
1266
|
};
|
|
1259
|
-
|
|
1267
|
+
attachments: ({
|
|
1260
1268
|
thumbnail: {
|
|
1261
1269
|
path: string;
|
|
1262
1270
|
type: string;
|
|
1263
|
-
name: string;
|
|
1264
1271
|
id: string;
|
|
1265
1272
|
userId: string | null;
|
|
1266
|
-
|
|
1273
|
+
name: string;
|
|
1267
1274
|
size: number | null;
|
|
1268
1275
|
uploadedAt: Date | null;
|
|
1276
|
+
assignmentId: string | null;
|
|
1277
|
+
submissionId: string | null;
|
|
1278
|
+
thumbnailId: string | null;
|
|
1279
|
+
annotationId: string | null;
|
|
1269
1280
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1270
1281
|
uploadUrl: string | null;
|
|
1271
1282
|
uploadExpiresAt: Date | null;
|
|
@@ -1275,11 +1286,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1275
1286
|
uploadRetryCount: number;
|
|
1276
1287
|
isOrphaned: boolean;
|
|
1277
1288
|
cleanupAt: Date | null;
|
|
1278
|
-
thumbnailId: string | null;
|
|
1279
|
-
assignmentId: string | null;
|
|
1280
|
-
submissionId: string | null;
|
|
1281
|
-
annotationId: string | null;
|
|
1282
1289
|
classDraftId: string | null;
|
|
1290
|
+
folderId: string | null;
|
|
1283
1291
|
conversationId: string | null;
|
|
1284
1292
|
messageId: string | null;
|
|
1285
1293
|
announcementId: string | null;
|
|
@@ -1290,12 +1298,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1290
1298
|
} & {
|
|
1291
1299
|
path: string;
|
|
1292
1300
|
type: string;
|
|
1293
|
-
name: string;
|
|
1294
1301
|
id: string;
|
|
1295
1302
|
userId: string | null;
|
|
1296
|
-
|
|
1303
|
+
name: string;
|
|
1297
1304
|
size: number | null;
|
|
1298
1305
|
uploadedAt: Date | null;
|
|
1306
|
+
assignmentId: string | null;
|
|
1307
|
+
submissionId: string | null;
|
|
1308
|
+
thumbnailId: string | null;
|
|
1309
|
+
annotationId: string | null;
|
|
1299
1310
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1300
1311
|
uploadUrl: string | null;
|
|
1301
1312
|
uploadExpiresAt: Date | null;
|
|
@@ -1305,11 +1316,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1305
1316
|
uploadRetryCount: number;
|
|
1306
1317
|
isOrphaned: boolean;
|
|
1307
1318
|
cleanupAt: Date | null;
|
|
1308
|
-
thumbnailId: string | null;
|
|
1309
|
-
assignmentId: string | null;
|
|
1310
|
-
submissionId: string | null;
|
|
1311
|
-
annotationId: string | null;
|
|
1312
1319
|
classDraftId: string | null;
|
|
1320
|
+
folderId: string | null;
|
|
1313
1321
|
conversationId: string | null;
|
|
1314
1322
|
messageId: string | null;
|
|
1315
1323
|
announcementId: string | null;
|
|
@@ -1317,16 +1325,28 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1317
1325
|
discussionReplyId: string | null;
|
|
1318
1326
|
schoolDevelopementProgramId: string | null;
|
|
1319
1327
|
})[];
|
|
1320
|
-
|
|
1328
|
+
student: {
|
|
1329
|
+
id: string;
|
|
1330
|
+
username: string;
|
|
1331
|
+
profile: {
|
|
1332
|
+
profilePicture: string | null;
|
|
1333
|
+
displayName: string | null;
|
|
1334
|
+
profilePictureThumbnail: string | null;
|
|
1335
|
+
} | null;
|
|
1336
|
+
};
|
|
1337
|
+
annotations: ({
|
|
1321
1338
|
thumbnail: {
|
|
1322
1339
|
path: string;
|
|
1323
1340
|
type: string;
|
|
1324
|
-
name: string;
|
|
1325
1341
|
id: string;
|
|
1326
1342
|
userId: string | null;
|
|
1327
|
-
|
|
1343
|
+
name: string;
|
|
1328
1344
|
size: number | null;
|
|
1329
1345
|
uploadedAt: Date | null;
|
|
1346
|
+
assignmentId: string | null;
|
|
1347
|
+
submissionId: string | null;
|
|
1348
|
+
thumbnailId: string | null;
|
|
1349
|
+
annotationId: string | null;
|
|
1330
1350
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1331
1351
|
uploadUrl: string | null;
|
|
1332
1352
|
uploadExpiresAt: Date | null;
|
|
@@ -1336,11 +1356,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1336
1356
|
uploadRetryCount: number;
|
|
1337
1357
|
isOrphaned: boolean;
|
|
1338
1358
|
cleanupAt: Date | null;
|
|
1339
|
-
thumbnailId: string | null;
|
|
1340
|
-
assignmentId: string | null;
|
|
1341
|
-
submissionId: string | null;
|
|
1342
|
-
annotationId: string | null;
|
|
1343
1359
|
classDraftId: string | null;
|
|
1360
|
+
folderId: string | null;
|
|
1344
1361
|
conversationId: string | null;
|
|
1345
1362
|
messageId: string | null;
|
|
1346
1363
|
announcementId: string | null;
|
|
@@ -1351,12 +1368,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1351
1368
|
} & {
|
|
1352
1369
|
path: string;
|
|
1353
1370
|
type: string;
|
|
1354
|
-
name: string;
|
|
1355
1371
|
id: string;
|
|
1356
1372
|
userId: string | null;
|
|
1357
|
-
|
|
1373
|
+
name: string;
|
|
1358
1374
|
size: number | null;
|
|
1359
1375
|
uploadedAt: Date | null;
|
|
1376
|
+
assignmentId: string | null;
|
|
1377
|
+
submissionId: string | null;
|
|
1378
|
+
thumbnailId: string | null;
|
|
1379
|
+
annotationId: string | null;
|
|
1360
1380
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1361
1381
|
uploadUrl: string | null;
|
|
1362
1382
|
uploadExpiresAt: Date | null;
|
|
@@ -1366,11 +1386,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1366
1386
|
uploadRetryCount: number;
|
|
1367
1387
|
isOrphaned: boolean;
|
|
1368
1388
|
cleanupAt: Date | null;
|
|
1369
|
-
thumbnailId: string | null;
|
|
1370
|
-
assignmentId: string | null;
|
|
1371
|
-
submissionId: string | null;
|
|
1372
|
-
annotationId: string | null;
|
|
1373
1389
|
classDraftId: string | null;
|
|
1390
|
+
folderId: string | null;
|
|
1374
1391
|
conversationId: string | null;
|
|
1375
1392
|
messageId: string | null;
|
|
1376
1393
|
announcementId: string | null;
|
|
@@ -1378,15 +1395,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1378
1395
|
discussionReplyId: string | null;
|
|
1379
1396
|
schoolDevelopementProgramId: string | null;
|
|
1380
1397
|
})[];
|
|
1381
|
-
student: {
|
|
1382
|
-
id: string;
|
|
1383
|
-
username: string;
|
|
1384
|
-
profile: {
|
|
1385
|
-
displayName: string | null;
|
|
1386
|
-
profilePicture: string | null;
|
|
1387
|
-
profilePictureThumbnail: string | null;
|
|
1388
|
-
} | null;
|
|
1389
|
-
};
|
|
1390
1398
|
} & {
|
|
1391
1399
|
id: string;
|
|
1392
1400
|
createdAt: Date;
|
|
@@ -1416,8 +1424,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1416
1424
|
output: {
|
|
1417
1425
|
assignment: {
|
|
1418
1426
|
section: {
|
|
1419
|
-
name: string;
|
|
1420
1427
|
id: string;
|
|
1428
|
+
name: string;
|
|
1421
1429
|
} | null;
|
|
1422
1430
|
teacher: {
|
|
1423
1431
|
id: string;
|
|
@@ -1425,12 +1433,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1425
1433
|
};
|
|
1426
1434
|
attachments: {
|
|
1427
1435
|
type: string;
|
|
1428
|
-
name: string;
|
|
1429
1436
|
id: string;
|
|
1437
|
+
name: string;
|
|
1430
1438
|
}[];
|
|
1431
1439
|
eventAttached: {
|
|
1432
|
-
name: string | null;
|
|
1433
1440
|
id: string;
|
|
1441
|
+
name: string | null;
|
|
1434
1442
|
color: string | null;
|
|
1435
1443
|
startTime: Date;
|
|
1436
1444
|
endTime: Date;
|
|
@@ -1440,10 +1448,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1440
1448
|
id: string;
|
|
1441
1449
|
createdAt: Date | null;
|
|
1442
1450
|
classId: string;
|
|
1443
|
-
modifiedAt: Date | null;
|
|
1444
1451
|
title: string;
|
|
1445
|
-
instructions: string;
|
|
1446
1452
|
dueDate: Date;
|
|
1453
|
+
maxGrade: number | null;
|
|
1454
|
+
eventId: string | null;
|
|
1455
|
+
instructions: string;
|
|
1456
|
+
modifiedAt: Date | null;
|
|
1447
1457
|
teacherId: string;
|
|
1448
1458
|
acceptFiles: boolean;
|
|
1449
1459
|
acceptExtendedResponse: boolean;
|
|
@@ -1452,11 +1462,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1452
1462
|
aiPolicyLevel: number;
|
|
1453
1463
|
sectionId: string | null;
|
|
1454
1464
|
graded: boolean;
|
|
1455
|
-
maxGrade: number | null;
|
|
1456
1465
|
weight: number;
|
|
1457
1466
|
inProgress: boolean;
|
|
1458
1467
|
template: boolean;
|
|
1459
|
-
eventId: string | null;
|
|
1460
1468
|
markSchemeId: string | null;
|
|
1461
1469
|
order: number | null;
|
|
1462
1470
|
gradingBoundaryId: string | null;
|
|
@@ -1473,8 +1481,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1473
1481
|
output: {
|
|
1474
1482
|
assignment: {
|
|
1475
1483
|
section: {
|
|
1476
|
-
name: string;
|
|
1477
1484
|
id: string;
|
|
1485
|
+
name: string;
|
|
1478
1486
|
} | null;
|
|
1479
1487
|
teacher: {
|
|
1480
1488
|
id: string;
|
|
@@ -1482,12 +1490,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1482
1490
|
};
|
|
1483
1491
|
attachments: {
|
|
1484
1492
|
type: string;
|
|
1485
|
-
name: string;
|
|
1486
1493
|
id: string;
|
|
1494
|
+
name: string;
|
|
1487
1495
|
}[];
|
|
1488
1496
|
eventAttached: {
|
|
1489
|
-
name: string | null;
|
|
1490
1497
|
id: string;
|
|
1498
|
+
name: string | null;
|
|
1491
1499
|
color: string | null;
|
|
1492
1500
|
startTime: Date;
|
|
1493
1501
|
endTime: Date;
|
|
@@ -1497,10 +1505,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1497
1505
|
id: string;
|
|
1498
1506
|
createdAt: Date | null;
|
|
1499
1507
|
classId: string;
|
|
1500
|
-
modifiedAt: Date | null;
|
|
1501
1508
|
title: string;
|
|
1502
|
-
instructions: string;
|
|
1503
1509
|
dueDate: Date;
|
|
1510
|
+
maxGrade: number | null;
|
|
1511
|
+
eventId: string | null;
|
|
1512
|
+
instructions: string;
|
|
1513
|
+
modifiedAt: Date | null;
|
|
1504
1514
|
teacherId: string;
|
|
1505
1515
|
acceptFiles: boolean;
|
|
1506
1516
|
acceptExtendedResponse: boolean;
|
|
@@ -1509,11 +1519,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1509
1519
|
aiPolicyLevel: number;
|
|
1510
1520
|
sectionId: string | null;
|
|
1511
1521
|
graded: boolean;
|
|
1512
|
-
maxGrade: number | null;
|
|
1513
1522
|
weight: number;
|
|
1514
1523
|
inProgress: boolean;
|
|
1515
1524
|
template: boolean;
|
|
1516
|
-
eventId: string | null;
|
|
1517
1525
|
markSchemeId: string | null;
|
|
1518
1526
|
order: number | null;
|
|
1519
1527
|
gradingBoundaryId: string | null;
|
|
@@ -1529,12 +1537,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1529
1537
|
};
|
|
1530
1538
|
output: {
|
|
1531
1539
|
events: {
|
|
1532
|
-
name: string | null;
|
|
1533
1540
|
id: string;
|
|
1541
|
+
location: string | null;
|
|
1542
|
+
name: string | null;
|
|
1534
1543
|
color: string | null;
|
|
1535
1544
|
startTime: Date;
|
|
1536
1545
|
endTime: Date;
|
|
1537
|
-
location: string | null;
|
|
1538
1546
|
remarks: string | null;
|
|
1539
1547
|
}[];
|
|
1540
1548
|
};
|
|
@@ -1545,14 +1553,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1545
1553
|
output: {
|
|
1546
1554
|
dueDate: string;
|
|
1547
1555
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1548
|
-
id: string;
|
|
1549
1556
|
class: {
|
|
1550
|
-
name: string;
|
|
1551
1557
|
id: string;
|
|
1558
|
+
name: string;
|
|
1552
1559
|
};
|
|
1560
|
+
id: string;
|
|
1553
1561
|
title: string;
|
|
1554
|
-
graded: boolean;
|
|
1555
1562
|
maxGrade: number | null;
|
|
1563
|
+
graded: boolean;
|
|
1556
1564
|
}[];
|
|
1557
1565
|
meta: object;
|
|
1558
1566
|
}>;
|
|
@@ -1564,20 +1572,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1564
1572
|
markSchemeId: string | null;
|
|
1565
1573
|
};
|
|
1566
1574
|
output: {
|
|
1575
|
+
markScheme: {
|
|
1576
|
+
id: string;
|
|
1577
|
+
name: string | null;
|
|
1578
|
+
classId: string | null;
|
|
1579
|
+
departmentId: string | null;
|
|
1580
|
+
structured: string;
|
|
1581
|
+
} | null;
|
|
1567
1582
|
section: {
|
|
1568
|
-
name: string;
|
|
1569
1583
|
id: string;
|
|
1584
|
+
name: string;
|
|
1570
1585
|
color: string | null;
|
|
1571
1586
|
classId: string;
|
|
1572
1587
|
order: number | null;
|
|
1573
1588
|
} | null;
|
|
1574
|
-
markScheme: {
|
|
1575
|
-
name: string | null;
|
|
1576
|
-
id: string;
|
|
1577
|
-
departmentId: string | null;
|
|
1578
|
-
classId: string | null;
|
|
1579
|
-
structured: string;
|
|
1580
|
-
} | null;
|
|
1581
1589
|
teacher: {
|
|
1582
1590
|
id: string;
|
|
1583
1591
|
username: string;
|
|
@@ -1589,12 +1597,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1589
1597
|
attachments: {
|
|
1590
1598
|
path: string;
|
|
1591
1599
|
type: string;
|
|
1592
|
-
name: string;
|
|
1593
1600
|
id: string;
|
|
1594
1601
|
userId: string | null;
|
|
1595
|
-
|
|
1602
|
+
name: string;
|
|
1596
1603
|
size: number | null;
|
|
1597
1604
|
uploadedAt: Date | null;
|
|
1605
|
+
assignmentId: string | null;
|
|
1606
|
+
submissionId: string | null;
|
|
1607
|
+
thumbnailId: string | null;
|
|
1608
|
+
annotationId: string | null;
|
|
1598
1609
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1599
1610
|
uploadUrl: string | null;
|
|
1600
1611
|
uploadExpiresAt: Date | null;
|
|
@@ -1604,11 +1615,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1604
1615
|
uploadRetryCount: number;
|
|
1605
1616
|
isOrphaned: boolean;
|
|
1606
1617
|
cleanupAt: Date | null;
|
|
1607
|
-
thumbnailId: string | null;
|
|
1608
|
-
assignmentId: string | null;
|
|
1609
|
-
submissionId: string | null;
|
|
1610
|
-
annotationId: string | null;
|
|
1611
1618
|
classDraftId: string | null;
|
|
1619
|
+
folderId: string | null;
|
|
1612
1620
|
conversationId: string | null;
|
|
1613
1621
|
messageId: string | null;
|
|
1614
1622
|
announcementId: string | null;
|
|
@@ -1617,14 +1625,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1617
1625
|
schoolDevelopementProgramId: string | null;
|
|
1618
1626
|
}[];
|
|
1619
1627
|
eventAttached: {
|
|
1620
|
-
name: string | null;
|
|
1621
1628
|
id: string;
|
|
1622
1629
|
userId: string | null;
|
|
1630
|
+
location: string | null;
|
|
1631
|
+
name: string | null;
|
|
1623
1632
|
color: string | null;
|
|
1624
1633
|
classId: string | null;
|
|
1625
1634
|
startTime: Date;
|
|
1626
1635
|
endTime: Date;
|
|
1627
|
-
location: string | null;
|
|
1628
1636
|
remarks: string | null;
|
|
1629
1637
|
} | null;
|
|
1630
1638
|
} & {
|
|
@@ -1632,10 +1640,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1632
1640
|
id: string;
|
|
1633
1641
|
createdAt: Date | null;
|
|
1634
1642
|
classId: string;
|
|
1635
|
-
modifiedAt: Date | null;
|
|
1636
1643
|
title: string;
|
|
1637
|
-
instructions: string;
|
|
1638
1644
|
dueDate: Date;
|
|
1645
|
+
maxGrade: number | null;
|
|
1646
|
+
eventId: string | null;
|
|
1647
|
+
instructions: string;
|
|
1648
|
+
modifiedAt: Date | null;
|
|
1639
1649
|
teacherId: string;
|
|
1640
1650
|
acceptFiles: boolean;
|
|
1641
1651
|
acceptExtendedResponse: boolean;
|
|
@@ -1644,11 +1654,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1644
1654
|
aiPolicyLevel: number;
|
|
1645
1655
|
sectionId: string | null;
|
|
1646
1656
|
graded: boolean;
|
|
1647
|
-
maxGrade: number | null;
|
|
1648
1657
|
weight: number;
|
|
1649
1658
|
inProgress: boolean;
|
|
1650
1659
|
template: boolean;
|
|
1651
|
-
eventId: string | null;
|
|
1652
1660
|
markSchemeId: string | null;
|
|
1653
1661
|
order: number | null;
|
|
1654
1662
|
gradingBoundaryId: string | null;
|
|
@@ -1662,20 +1670,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1662
1670
|
assignmentId: string;
|
|
1663
1671
|
};
|
|
1664
1672
|
output: {
|
|
1673
|
+
markScheme: {
|
|
1674
|
+
id: string;
|
|
1675
|
+
name: string | null;
|
|
1676
|
+
classId: string | null;
|
|
1677
|
+
departmentId: string | null;
|
|
1678
|
+
structured: string;
|
|
1679
|
+
} | null;
|
|
1665
1680
|
section: {
|
|
1666
|
-
name: string;
|
|
1667
1681
|
id: string;
|
|
1682
|
+
name: string;
|
|
1668
1683
|
color: string | null;
|
|
1669
1684
|
classId: string;
|
|
1670
1685
|
order: number | null;
|
|
1671
1686
|
} | null;
|
|
1672
|
-
markScheme: {
|
|
1673
|
-
name: string | null;
|
|
1674
|
-
id: string;
|
|
1675
|
-
departmentId: string | null;
|
|
1676
|
-
classId: string | null;
|
|
1677
|
-
structured: string;
|
|
1678
|
-
} | null;
|
|
1679
1687
|
teacher: {
|
|
1680
1688
|
id: string;
|
|
1681
1689
|
username: string;
|
|
@@ -1687,12 +1695,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1687
1695
|
attachments: {
|
|
1688
1696
|
path: string;
|
|
1689
1697
|
type: string;
|
|
1690
|
-
name: string;
|
|
1691
1698
|
id: string;
|
|
1692
1699
|
userId: string | null;
|
|
1693
|
-
|
|
1700
|
+
name: string;
|
|
1694
1701
|
size: number | null;
|
|
1695
1702
|
uploadedAt: Date | null;
|
|
1703
|
+
assignmentId: string | null;
|
|
1704
|
+
submissionId: string | null;
|
|
1705
|
+
thumbnailId: string | null;
|
|
1706
|
+
annotationId: string | null;
|
|
1696
1707
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1697
1708
|
uploadUrl: string | null;
|
|
1698
1709
|
uploadExpiresAt: Date | null;
|
|
@@ -1702,11 +1713,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1702
1713
|
uploadRetryCount: number;
|
|
1703
1714
|
isOrphaned: boolean;
|
|
1704
1715
|
cleanupAt: Date | null;
|
|
1705
|
-
thumbnailId: string | null;
|
|
1706
|
-
assignmentId: string | null;
|
|
1707
|
-
submissionId: string | null;
|
|
1708
|
-
annotationId: string | null;
|
|
1709
1716
|
classDraftId: string | null;
|
|
1717
|
+
folderId: string | null;
|
|
1710
1718
|
conversationId: string | null;
|
|
1711
1719
|
messageId: string | null;
|
|
1712
1720
|
announcementId: string | null;
|
|
@@ -1715,14 +1723,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1715
1723
|
schoolDevelopementProgramId: string | null;
|
|
1716
1724
|
}[];
|
|
1717
1725
|
eventAttached: {
|
|
1718
|
-
name: string | null;
|
|
1719
1726
|
id: string;
|
|
1720
1727
|
userId: string | null;
|
|
1728
|
+
location: string | null;
|
|
1729
|
+
name: string | null;
|
|
1721
1730
|
color: string | null;
|
|
1722
1731
|
classId: string | null;
|
|
1723
1732
|
startTime: Date;
|
|
1724
1733
|
endTime: Date;
|
|
1725
|
-
location: string | null;
|
|
1726
1734
|
remarks: string | null;
|
|
1727
1735
|
} | null;
|
|
1728
1736
|
} & {
|
|
@@ -1730,10 +1738,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1730
1738
|
id: string;
|
|
1731
1739
|
createdAt: Date | null;
|
|
1732
1740
|
classId: string;
|
|
1733
|
-
modifiedAt: Date | null;
|
|
1734
1741
|
title: string;
|
|
1735
|
-
instructions: string;
|
|
1736
1742
|
dueDate: Date;
|
|
1743
|
+
maxGrade: number | null;
|
|
1744
|
+
eventId: string | null;
|
|
1745
|
+
instructions: string;
|
|
1746
|
+
modifiedAt: Date | null;
|
|
1737
1747
|
teacherId: string;
|
|
1738
1748
|
acceptFiles: boolean;
|
|
1739
1749
|
acceptExtendedResponse: boolean;
|
|
@@ -1742,11 +1752,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1742
1752
|
aiPolicyLevel: number;
|
|
1743
1753
|
sectionId: string | null;
|
|
1744
1754
|
graded: boolean;
|
|
1745
|
-
maxGrade: number | null;
|
|
1746
1755
|
weight: number;
|
|
1747
1756
|
inProgress: boolean;
|
|
1748
1757
|
template: boolean;
|
|
1749
|
-
eventId: string | null;
|
|
1750
1758
|
markSchemeId: string | null;
|
|
1751
1759
|
order: number | null;
|
|
1752
1760
|
gradingBoundaryId: string | null;
|
|
@@ -1761,20 +1769,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1761
1769
|
gradingBoundaryId: string | null;
|
|
1762
1770
|
};
|
|
1763
1771
|
output: {
|
|
1772
|
+
gradingBoundary: {
|
|
1773
|
+
id: string;
|
|
1774
|
+
name: string | null;
|
|
1775
|
+
classId: string | null;
|
|
1776
|
+
departmentId: string | null;
|
|
1777
|
+
structured: string;
|
|
1778
|
+
} | null;
|
|
1764
1779
|
section: {
|
|
1765
|
-
name: string;
|
|
1766
1780
|
id: string;
|
|
1781
|
+
name: string;
|
|
1767
1782
|
color: string | null;
|
|
1768
1783
|
classId: string;
|
|
1769
1784
|
order: number | null;
|
|
1770
1785
|
} | null;
|
|
1771
|
-
gradingBoundary: {
|
|
1772
|
-
name: string | null;
|
|
1773
|
-
id: string;
|
|
1774
|
-
departmentId: string | null;
|
|
1775
|
-
classId: string | null;
|
|
1776
|
-
structured: string;
|
|
1777
|
-
} | null;
|
|
1778
1786
|
teacher: {
|
|
1779
1787
|
id: string;
|
|
1780
1788
|
username: string;
|
|
@@ -1786,12 +1794,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1786
1794
|
attachments: {
|
|
1787
1795
|
path: string;
|
|
1788
1796
|
type: string;
|
|
1789
|
-
name: string;
|
|
1790
1797
|
id: string;
|
|
1791
1798
|
userId: string | null;
|
|
1792
|
-
|
|
1799
|
+
name: string;
|
|
1793
1800
|
size: number | null;
|
|
1794
1801
|
uploadedAt: Date | null;
|
|
1802
|
+
assignmentId: string | null;
|
|
1803
|
+
submissionId: string | null;
|
|
1804
|
+
thumbnailId: string | null;
|
|
1805
|
+
annotationId: string | null;
|
|
1795
1806
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1796
1807
|
uploadUrl: string | null;
|
|
1797
1808
|
uploadExpiresAt: Date | null;
|
|
@@ -1801,11 +1812,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1801
1812
|
uploadRetryCount: number;
|
|
1802
1813
|
isOrphaned: boolean;
|
|
1803
1814
|
cleanupAt: Date | null;
|
|
1804
|
-
thumbnailId: string | null;
|
|
1805
|
-
assignmentId: string | null;
|
|
1806
|
-
submissionId: string | null;
|
|
1807
|
-
annotationId: string | null;
|
|
1808
1815
|
classDraftId: string | null;
|
|
1816
|
+
folderId: string | null;
|
|
1809
1817
|
conversationId: string | null;
|
|
1810
1818
|
messageId: string | null;
|
|
1811
1819
|
announcementId: string | null;
|
|
@@ -1814,14 +1822,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1814
1822
|
schoolDevelopementProgramId: string | null;
|
|
1815
1823
|
}[];
|
|
1816
1824
|
eventAttached: {
|
|
1817
|
-
name: string | null;
|
|
1818
1825
|
id: string;
|
|
1819
1826
|
userId: string | null;
|
|
1827
|
+
location: string | null;
|
|
1828
|
+
name: string | null;
|
|
1820
1829
|
color: string | null;
|
|
1821
1830
|
classId: string | null;
|
|
1822
1831
|
startTime: Date;
|
|
1823
1832
|
endTime: Date;
|
|
1824
|
-
location: string | null;
|
|
1825
1833
|
remarks: string | null;
|
|
1826
1834
|
} | null;
|
|
1827
1835
|
} & {
|
|
@@ -1829,10 +1837,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1829
1837
|
id: string;
|
|
1830
1838
|
createdAt: Date | null;
|
|
1831
1839
|
classId: string;
|
|
1832
|
-
modifiedAt: Date | null;
|
|
1833
1840
|
title: string;
|
|
1834
|
-
instructions: string;
|
|
1835
1841
|
dueDate: Date;
|
|
1842
|
+
maxGrade: number | null;
|
|
1843
|
+
eventId: string | null;
|
|
1844
|
+
instructions: string;
|
|
1845
|
+
modifiedAt: Date | null;
|
|
1836
1846
|
teacherId: string;
|
|
1837
1847
|
acceptFiles: boolean;
|
|
1838
1848
|
acceptExtendedResponse: boolean;
|
|
@@ -1841,11 +1851,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1841
1851
|
aiPolicyLevel: number;
|
|
1842
1852
|
sectionId: string | null;
|
|
1843
1853
|
graded: boolean;
|
|
1844
|
-
maxGrade: number | null;
|
|
1845
1854
|
weight: number;
|
|
1846
1855
|
inProgress: boolean;
|
|
1847
1856
|
template: boolean;
|
|
1848
|
-
eventId: string | null;
|
|
1849
1857
|
markSchemeId: string | null;
|
|
1850
1858
|
order: number | null;
|
|
1851
1859
|
gradingBoundaryId: string | null;
|
|
@@ -1859,20 +1867,20 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1859
1867
|
assignmentId: string;
|
|
1860
1868
|
};
|
|
1861
1869
|
output: {
|
|
1870
|
+
gradingBoundary: {
|
|
1871
|
+
id: string;
|
|
1872
|
+
name: string | null;
|
|
1873
|
+
classId: string | null;
|
|
1874
|
+
departmentId: string | null;
|
|
1875
|
+
structured: string;
|
|
1876
|
+
} | null;
|
|
1862
1877
|
section: {
|
|
1863
|
-
name: string;
|
|
1864
1878
|
id: string;
|
|
1879
|
+
name: string;
|
|
1865
1880
|
color: string | null;
|
|
1866
1881
|
classId: string;
|
|
1867
1882
|
order: number | null;
|
|
1868
1883
|
} | null;
|
|
1869
|
-
gradingBoundary: {
|
|
1870
|
-
name: string | null;
|
|
1871
|
-
id: string;
|
|
1872
|
-
departmentId: string | null;
|
|
1873
|
-
classId: string | null;
|
|
1874
|
-
structured: string;
|
|
1875
|
-
} | null;
|
|
1876
1884
|
teacher: {
|
|
1877
1885
|
id: string;
|
|
1878
1886
|
username: string;
|
|
@@ -1884,12 +1892,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1884
1892
|
attachments: {
|
|
1885
1893
|
path: string;
|
|
1886
1894
|
type: string;
|
|
1887
|
-
name: string;
|
|
1888
1895
|
id: string;
|
|
1889
1896
|
userId: string | null;
|
|
1890
|
-
|
|
1897
|
+
name: string;
|
|
1891
1898
|
size: number | null;
|
|
1892
1899
|
uploadedAt: Date | null;
|
|
1900
|
+
assignmentId: string | null;
|
|
1901
|
+
submissionId: string | null;
|
|
1902
|
+
thumbnailId: string | null;
|
|
1903
|
+
annotationId: string | null;
|
|
1893
1904
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1894
1905
|
uploadUrl: string | null;
|
|
1895
1906
|
uploadExpiresAt: Date | null;
|
|
@@ -1899,11 +1910,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1899
1910
|
uploadRetryCount: number;
|
|
1900
1911
|
isOrphaned: boolean;
|
|
1901
1912
|
cleanupAt: Date | null;
|
|
1902
|
-
thumbnailId: string | null;
|
|
1903
|
-
assignmentId: string | null;
|
|
1904
|
-
submissionId: string | null;
|
|
1905
|
-
annotationId: string | null;
|
|
1906
1913
|
classDraftId: string | null;
|
|
1914
|
+
folderId: string | null;
|
|
1907
1915
|
conversationId: string | null;
|
|
1908
1916
|
messageId: string | null;
|
|
1909
1917
|
announcementId: string | null;
|
|
@@ -1912,14 +1920,14 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1912
1920
|
schoolDevelopementProgramId: string | null;
|
|
1913
1921
|
}[];
|
|
1914
1922
|
eventAttached: {
|
|
1915
|
-
name: string | null;
|
|
1916
1923
|
id: string;
|
|
1917
1924
|
userId: string | null;
|
|
1925
|
+
location: string | null;
|
|
1926
|
+
name: string | null;
|
|
1918
1927
|
color: string | null;
|
|
1919
1928
|
classId: string | null;
|
|
1920
1929
|
startTime: Date;
|
|
1921
1930
|
endTime: Date;
|
|
1922
|
-
location: string | null;
|
|
1923
1931
|
remarks: string | null;
|
|
1924
1932
|
} | null;
|
|
1925
1933
|
} & {
|
|
@@ -1927,10 +1935,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1927
1935
|
id: string;
|
|
1928
1936
|
createdAt: Date | null;
|
|
1929
1937
|
classId: string;
|
|
1930
|
-
modifiedAt: Date | null;
|
|
1931
1938
|
title: string;
|
|
1932
|
-
instructions: string;
|
|
1933
1939
|
dueDate: Date;
|
|
1940
|
+
maxGrade: number | null;
|
|
1941
|
+
eventId: string | null;
|
|
1942
|
+
instructions: string;
|
|
1943
|
+
modifiedAt: Date | null;
|
|
1934
1944
|
teacherId: string;
|
|
1935
1945
|
acceptFiles: boolean;
|
|
1936
1946
|
acceptExtendedResponse: boolean;
|
|
@@ -1939,11 +1949,9 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1939
1949
|
aiPolicyLevel: number;
|
|
1940
1950
|
sectionId: string | null;
|
|
1941
1951
|
graded: boolean;
|
|
1942
|
-
maxGrade: number | null;
|
|
1943
1952
|
weight: number;
|
|
1944
1953
|
inProgress: boolean;
|
|
1945
1954
|
template: boolean;
|
|
1946
|
-
eventId: string | null;
|
|
1947
1955
|
markSchemeId: string | null;
|
|
1948
1956
|
order: number | null;
|
|
1949
1957
|
gradingBoundaryId: string | null;
|
|
@@ -1954,12 +1962,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1954
1962
|
input: {
|
|
1955
1963
|
[x: string]: unknown;
|
|
1956
1964
|
classId: string;
|
|
1957
|
-
assignmentId: string;
|
|
1958
1965
|
files: {
|
|
1959
1966
|
type: string;
|
|
1960
1967
|
name: string;
|
|
1961
1968
|
size: number;
|
|
1962
1969
|
}[];
|
|
1970
|
+
assignmentId: string;
|
|
1963
1971
|
};
|
|
1964
1972
|
output: {
|
|
1965
1973
|
success: boolean;
|
|
@@ -1971,12 +1979,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1971
1979
|
input: {
|
|
1972
1980
|
[x: string]: unknown;
|
|
1973
1981
|
classId: string;
|
|
1974
|
-
submissionId: string;
|
|
1975
1982
|
files: {
|
|
1976
1983
|
type: string;
|
|
1977
1984
|
name: string;
|
|
1978
1985
|
size: number;
|
|
1979
1986
|
}[];
|
|
1987
|
+
submissionId: string;
|
|
1980
1988
|
};
|
|
1981
1989
|
output: {
|
|
1982
1990
|
success: boolean;
|
|
@@ -2016,12 +2024,12 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2016
2024
|
input: {
|
|
2017
2025
|
[x: string]: unknown;
|
|
2018
2026
|
classId: string;
|
|
2019
|
-
submissionId: string;
|
|
2020
2027
|
files: {
|
|
2021
2028
|
type: string;
|
|
2022
2029
|
name: string;
|
|
2023
2030
|
size: number;
|
|
2024
2031
|
}[];
|
|
2032
|
+
submissionId: string;
|
|
2025
2033
|
};
|
|
2026
2034
|
output: {
|
|
2027
2035
|
success: boolean;
|
|
@@ -2045,8 +2053,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2045
2053
|
}>;
|
|
2046
2054
|
updateUploadProgress: import("@trpc/server").TRPCMutationProcedure<{
|
|
2047
2055
|
input: {
|
|
2048
|
-
fileId: string;
|
|
2049
2056
|
progress: number;
|
|
2057
|
+
fileId: string;
|
|
2050
2058
|
};
|
|
2051
2059
|
output: {
|
|
2052
2060
|
success: boolean;
|