@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
|
@@ -1,13 +1,39 @@
|
|
|
1
1
|
/** @returns Assignment by ID. */
|
|
2
|
-
export declare function findAssignmentById(id: string): import(".prisma/client").Prisma.
|
|
2
|
+
export declare function findAssignmentById(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
3
|
+
result: {
|
|
4
|
+
userProfile: {
|
|
5
|
+
profilePicture: () => {
|
|
6
|
+
needs: {
|
|
7
|
+
profilePicture: true;
|
|
8
|
+
};
|
|
9
|
+
compute(profile: {
|
|
10
|
+
profilePicture: string | null;
|
|
11
|
+
}): string | null;
|
|
12
|
+
};
|
|
13
|
+
profilePictureThumbnail: () => {
|
|
14
|
+
needs: {
|
|
15
|
+
profilePictureThumbnail: true;
|
|
16
|
+
};
|
|
17
|
+
compute(profile: {
|
|
18
|
+
profilePictureThumbnail: string | null;
|
|
19
|
+
}): string | null;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
model: {};
|
|
24
|
+
query: {};
|
|
25
|
+
client: {};
|
|
26
|
+
}, {}>, "Assignment", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
3
27
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
4
28
|
id: string;
|
|
5
29
|
createdAt: Date | null;
|
|
6
30
|
classId: string;
|
|
7
|
-
modifiedAt: Date | null;
|
|
8
31
|
title: string;
|
|
9
|
-
instructions: string;
|
|
10
32
|
dueDate: Date;
|
|
33
|
+
maxGrade: number | null;
|
|
34
|
+
eventId: string | null;
|
|
35
|
+
instructions: string;
|
|
36
|
+
modifiedAt: Date | null;
|
|
11
37
|
teacherId: string;
|
|
12
38
|
acceptFiles: boolean;
|
|
13
39
|
acceptExtendedResponse: boolean;
|
|
@@ -16,30 +42,54 @@ export declare function findAssignmentById(id: string): import(".prisma/client")
|
|
|
16
42
|
aiPolicyLevel: number;
|
|
17
43
|
sectionId: string | null;
|
|
18
44
|
graded: boolean;
|
|
19
|
-
maxGrade: number | null;
|
|
20
45
|
weight: number;
|
|
21
46
|
inProgress: boolean;
|
|
22
47
|
template: boolean;
|
|
23
|
-
eventId: string | null;
|
|
24
48
|
markSchemeId: string | null;
|
|
25
49
|
order: number | null;
|
|
26
50
|
gradingBoundaryId: string | null;
|
|
27
|
-
} | null
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
51
|
+
} | null>;
|
|
52
|
+
/** @returns Assignment with full details for get. */
|
|
53
|
+
export declare function findAssignmentWithDetails(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
54
|
+
result: {
|
|
55
|
+
userProfile: {
|
|
56
|
+
profilePicture: () => {
|
|
57
|
+
needs: {
|
|
58
|
+
profilePicture: true;
|
|
59
|
+
};
|
|
60
|
+
compute(profile: {
|
|
61
|
+
profilePicture: string | null;
|
|
62
|
+
}): string | null;
|
|
63
|
+
};
|
|
64
|
+
profilePictureThumbnail: () => {
|
|
65
|
+
needs: {
|
|
66
|
+
profilePictureThumbnail: true;
|
|
67
|
+
};
|
|
68
|
+
compute(profile: {
|
|
69
|
+
profilePictureThumbnail: string | null;
|
|
70
|
+
}): string | null;
|
|
71
|
+
};
|
|
31
72
|
};
|
|
32
73
|
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
74
|
+
model: {};
|
|
75
|
+
query: {};
|
|
76
|
+
client: {};
|
|
77
|
+
}, {}>, "Assignment", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
36
78
|
class: {
|
|
37
|
-
name: string;
|
|
38
79
|
id: string;
|
|
80
|
+
name: string;
|
|
39
81
|
};
|
|
82
|
+
markScheme: {
|
|
83
|
+
id: string;
|
|
84
|
+
structured: string;
|
|
85
|
+
} | null;
|
|
86
|
+
gradingBoundary: {
|
|
87
|
+
id: string;
|
|
88
|
+
structured: string;
|
|
89
|
+
} | null;
|
|
40
90
|
section: {
|
|
41
|
-
name: string;
|
|
42
91
|
id: string;
|
|
92
|
+
name: string;
|
|
43
93
|
} | null;
|
|
44
94
|
submissions: {
|
|
45
95
|
student: {
|
|
@@ -47,38 +97,30 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
|
|
|
47
97
|
username: string;
|
|
48
98
|
};
|
|
49
99
|
}[];
|
|
50
|
-
markScheme: {
|
|
51
|
-
id: string;
|
|
52
|
-
structured: string;
|
|
53
|
-
} | null;
|
|
54
|
-
gradingBoundary: {
|
|
55
|
-
id: string;
|
|
56
|
-
structured: string;
|
|
57
|
-
} | null;
|
|
58
100
|
worksheets: {
|
|
59
|
-
name: string;
|
|
60
101
|
id: string;
|
|
102
|
+
name: string;
|
|
61
103
|
}[];
|
|
62
|
-
teacher: {
|
|
63
|
-
id: string;
|
|
64
|
-
username: string;
|
|
65
|
-
};
|
|
66
104
|
attachments: {
|
|
67
105
|
path: string;
|
|
68
106
|
type: string;
|
|
69
|
-
name: string;
|
|
70
107
|
id: string;
|
|
108
|
+
name: string;
|
|
71
109
|
size: number | null;
|
|
72
110
|
uploadedAt: Date | null;
|
|
73
111
|
thumbnailId: string | null;
|
|
74
112
|
}[];
|
|
113
|
+
teacher: {
|
|
114
|
+
id: string;
|
|
115
|
+
username: string;
|
|
116
|
+
};
|
|
75
117
|
eventAttached: {
|
|
76
|
-
name: string | null;
|
|
77
118
|
id: string;
|
|
119
|
+
location: string | null;
|
|
120
|
+
name: string | null;
|
|
78
121
|
color: string | null;
|
|
79
122
|
startTime: Date;
|
|
80
123
|
endTime: Date;
|
|
81
|
-
location: string | null;
|
|
82
124
|
remarks: string | null;
|
|
83
125
|
} | null;
|
|
84
126
|
} & {
|
|
@@ -86,10 +128,12 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
|
|
|
86
128
|
id: string;
|
|
87
129
|
createdAt: Date | null;
|
|
88
130
|
classId: string;
|
|
89
|
-
modifiedAt: Date | null;
|
|
90
131
|
title: string;
|
|
91
|
-
instructions: string;
|
|
92
132
|
dueDate: Date;
|
|
133
|
+
maxGrade: number | null;
|
|
134
|
+
eventId: string | null;
|
|
135
|
+
instructions: string;
|
|
136
|
+
modifiedAt: Date | null;
|
|
93
137
|
teacherId: string;
|
|
94
138
|
acceptFiles: boolean;
|
|
95
139
|
acceptExtendedResponse: boolean;
|
|
@@ -98,34 +142,54 @@ export declare function findAssignmentWithDetails(id: string): import(".prisma/c
|
|
|
98
142
|
aiPolicyLevel: number;
|
|
99
143
|
sectionId: string | null;
|
|
100
144
|
graded: boolean;
|
|
101
|
-
maxGrade: number | null;
|
|
102
145
|
weight: number;
|
|
103
146
|
inProgress: boolean;
|
|
104
147
|
template: boolean;
|
|
105
|
-
eventId: string | null;
|
|
106
148
|
markSchemeId: string | null;
|
|
107
149
|
order: number | null;
|
|
108
150
|
gradingBoundaryId: string | null;
|
|
109
|
-
}) | null
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
151
|
+
}) | null>;
|
|
152
|
+
/** @returns Assignment with attachments for delete. */
|
|
153
|
+
export declare function findAssignmentForDelete(id: string, teacherId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
154
|
+
result: {
|
|
155
|
+
userProfile: {
|
|
156
|
+
profilePicture: () => {
|
|
157
|
+
needs: {
|
|
158
|
+
profilePicture: true;
|
|
159
|
+
};
|
|
160
|
+
compute(profile: {
|
|
161
|
+
profilePicture: string | null;
|
|
162
|
+
}): string | null;
|
|
163
|
+
};
|
|
164
|
+
profilePictureThumbnail: () => {
|
|
165
|
+
needs: {
|
|
166
|
+
profilePictureThumbnail: true;
|
|
167
|
+
};
|
|
168
|
+
compute(profile: {
|
|
169
|
+
profilePictureThumbnail: string | null;
|
|
170
|
+
}): string | null;
|
|
171
|
+
};
|
|
113
172
|
};
|
|
114
173
|
};
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
174
|
+
model: {};
|
|
175
|
+
query: {};
|
|
176
|
+
client: {};
|
|
177
|
+
}, {}>, "Assignment", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
118
178
|
submissions: ({
|
|
119
|
-
|
|
179
|
+
attachments: ({
|
|
120
180
|
thumbnail: {
|
|
121
181
|
path: string;
|
|
122
182
|
type: string;
|
|
123
|
-
name: string;
|
|
124
183
|
id: string;
|
|
125
184
|
userId: string | null;
|
|
126
|
-
|
|
185
|
+
name: string;
|
|
127
186
|
size: number | null;
|
|
128
187
|
uploadedAt: Date | null;
|
|
188
|
+
assignmentId: string | null;
|
|
189
|
+
submissionId: string | null;
|
|
190
|
+
thumbnailId: string | null;
|
|
191
|
+
annotationId: string | null;
|
|
192
|
+
conversationId: string | null;
|
|
129
193
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
130
194
|
uploadUrl: string | null;
|
|
131
195
|
uploadExpiresAt: Date | null;
|
|
@@ -135,12 +199,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
135
199
|
uploadRetryCount: number;
|
|
136
200
|
isOrphaned: boolean;
|
|
137
201
|
cleanupAt: Date | null;
|
|
138
|
-
thumbnailId: string | null;
|
|
139
|
-
assignmentId: string | null;
|
|
140
|
-
submissionId: string | null;
|
|
141
|
-
annotationId: string | null;
|
|
142
202
|
classDraftId: string | null;
|
|
143
|
-
|
|
203
|
+
folderId: string | null;
|
|
144
204
|
messageId: string | null;
|
|
145
205
|
announcementId: string | null;
|
|
146
206
|
discussionId: string | null;
|
|
@@ -150,12 +210,16 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
150
210
|
} & {
|
|
151
211
|
path: string;
|
|
152
212
|
type: string;
|
|
153
|
-
name: string;
|
|
154
213
|
id: string;
|
|
155
214
|
userId: string | null;
|
|
156
|
-
|
|
215
|
+
name: string;
|
|
157
216
|
size: number | null;
|
|
158
217
|
uploadedAt: Date | null;
|
|
218
|
+
assignmentId: string | null;
|
|
219
|
+
submissionId: string | null;
|
|
220
|
+
thumbnailId: string | null;
|
|
221
|
+
annotationId: string | null;
|
|
222
|
+
conversationId: string | null;
|
|
159
223
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
160
224
|
uploadUrl: string | null;
|
|
161
225
|
uploadExpiresAt: Date | null;
|
|
@@ -165,28 +229,28 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
165
229
|
uploadRetryCount: number;
|
|
166
230
|
isOrphaned: boolean;
|
|
167
231
|
cleanupAt: Date | null;
|
|
168
|
-
thumbnailId: string | null;
|
|
169
|
-
assignmentId: string | null;
|
|
170
|
-
submissionId: string | null;
|
|
171
|
-
annotationId: string | null;
|
|
172
232
|
classDraftId: string | null;
|
|
173
|
-
|
|
233
|
+
folderId: string | null;
|
|
174
234
|
messageId: string | null;
|
|
175
235
|
announcementId: string | null;
|
|
176
236
|
discussionId: string | null;
|
|
177
237
|
discussionReplyId: string | null;
|
|
178
238
|
schoolDevelopementProgramId: string | null;
|
|
179
239
|
})[];
|
|
180
|
-
|
|
240
|
+
annotations: ({
|
|
181
241
|
thumbnail: {
|
|
182
242
|
path: string;
|
|
183
243
|
type: string;
|
|
184
|
-
name: string;
|
|
185
244
|
id: string;
|
|
186
245
|
userId: string | null;
|
|
187
|
-
|
|
246
|
+
name: string;
|
|
188
247
|
size: number | null;
|
|
189
248
|
uploadedAt: Date | null;
|
|
249
|
+
assignmentId: string | null;
|
|
250
|
+
submissionId: string | null;
|
|
251
|
+
thumbnailId: string | null;
|
|
252
|
+
annotationId: string | null;
|
|
253
|
+
conversationId: string | null;
|
|
190
254
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
191
255
|
uploadUrl: string | null;
|
|
192
256
|
uploadExpiresAt: Date | null;
|
|
@@ -196,12 +260,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
196
260
|
uploadRetryCount: number;
|
|
197
261
|
isOrphaned: boolean;
|
|
198
262
|
cleanupAt: Date | null;
|
|
199
|
-
thumbnailId: string | null;
|
|
200
|
-
assignmentId: string | null;
|
|
201
|
-
submissionId: string | null;
|
|
202
|
-
annotationId: string | null;
|
|
203
263
|
classDraftId: string | null;
|
|
204
|
-
|
|
264
|
+
folderId: string | null;
|
|
205
265
|
messageId: string | null;
|
|
206
266
|
announcementId: string | null;
|
|
207
267
|
discussionId: string | null;
|
|
@@ -211,12 +271,16 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
211
271
|
} & {
|
|
212
272
|
path: string;
|
|
213
273
|
type: string;
|
|
214
|
-
name: string;
|
|
215
274
|
id: string;
|
|
216
275
|
userId: string | null;
|
|
217
|
-
|
|
276
|
+
name: string;
|
|
218
277
|
size: number | null;
|
|
219
278
|
uploadedAt: Date | null;
|
|
279
|
+
assignmentId: string | null;
|
|
280
|
+
submissionId: string | null;
|
|
281
|
+
thumbnailId: string | null;
|
|
282
|
+
annotationId: string | null;
|
|
283
|
+
conversationId: string | null;
|
|
220
284
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
221
285
|
uploadUrl: string | null;
|
|
222
286
|
uploadExpiresAt: Date | null;
|
|
@@ -226,12 +290,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
226
290
|
uploadRetryCount: number;
|
|
227
291
|
isOrphaned: boolean;
|
|
228
292
|
cleanupAt: Date | null;
|
|
229
|
-
thumbnailId: string | null;
|
|
230
|
-
assignmentId: string | null;
|
|
231
|
-
submissionId: string | null;
|
|
232
|
-
annotationId: string | null;
|
|
233
293
|
classDraftId: string | null;
|
|
234
|
-
|
|
294
|
+
folderId: string | null;
|
|
235
295
|
messageId: string | null;
|
|
236
296
|
announcementId: string | null;
|
|
237
297
|
discussionId: string | null;
|
|
@@ -242,8 +302,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
242
302
|
id: string;
|
|
243
303
|
createdAt: Date;
|
|
244
304
|
assignmentId: string;
|
|
245
|
-
modifiedAt: Date;
|
|
246
305
|
studentId: string;
|
|
306
|
+
modifiedAt: Date;
|
|
247
307
|
extendedResponse: string | null;
|
|
248
308
|
gradeReceived: number | null;
|
|
249
309
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -259,12 +319,16 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
259
319
|
thumbnail: {
|
|
260
320
|
path: string;
|
|
261
321
|
type: string;
|
|
262
|
-
name: string;
|
|
263
322
|
id: string;
|
|
264
323
|
userId: string | null;
|
|
265
|
-
|
|
324
|
+
name: string;
|
|
266
325
|
size: number | null;
|
|
267
326
|
uploadedAt: Date | null;
|
|
327
|
+
assignmentId: string | null;
|
|
328
|
+
submissionId: string | null;
|
|
329
|
+
thumbnailId: string | null;
|
|
330
|
+
annotationId: string | null;
|
|
331
|
+
conversationId: string | null;
|
|
268
332
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
269
333
|
uploadUrl: string | null;
|
|
270
334
|
uploadExpiresAt: Date | null;
|
|
@@ -274,12 +338,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
274
338
|
uploadRetryCount: number;
|
|
275
339
|
isOrphaned: boolean;
|
|
276
340
|
cleanupAt: Date | null;
|
|
277
|
-
thumbnailId: string | null;
|
|
278
|
-
assignmentId: string | null;
|
|
279
|
-
submissionId: string | null;
|
|
280
|
-
annotationId: string | null;
|
|
281
341
|
classDraftId: string | null;
|
|
282
|
-
|
|
342
|
+
folderId: string | null;
|
|
283
343
|
messageId: string | null;
|
|
284
344
|
announcementId: string | null;
|
|
285
345
|
discussionId: string | null;
|
|
@@ -289,12 +349,16 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
289
349
|
} & {
|
|
290
350
|
path: string;
|
|
291
351
|
type: string;
|
|
292
|
-
name: string;
|
|
293
352
|
id: string;
|
|
294
353
|
userId: string | null;
|
|
295
|
-
|
|
354
|
+
name: string;
|
|
296
355
|
size: number | null;
|
|
297
356
|
uploadedAt: Date | null;
|
|
357
|
+
assignmentId: string | null;
|
|
358
|
+
submissionId: string | null;
|
|
359
|
+
thumbnailId: string | null;
|
|
360
|
+
annotationId: string | null;
|
|
361
|
+
conversationId: string | null;
|
|
298
362
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
299
363
|
uploadUrl: string | null;
|
|
300
364
|
uploadExpiresAt: Date | null;
|
|
@@ -304,12 +368,8 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
304
368
|
uploadRetryCount: number;
|
|
305
369
|
isOrphaned: boolean;
|
|
306
370
|
cleanupAt: Date | null;
|
|
307
|
-
thumbnailId: string | null;
|
|
308
|
-
assignmentId: string | null;
|
|
309
|
-
submissionId: string | null;
|
|
310
|
-
annotationId: string | null;
|
|
311
371
|
classDraftId: string | null;
|
|
312
|
-
|
|
372
|
+
folderId: string | null;
|
|
313
373
|
messageId: string | null;
|
|
314
374
|
announcementId: string | null;
|
|
315
375
|
discussionId: string | null;
|
|
@@ -321,10 +381,12 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
321
381
|
id: string;
|
|
322
382
|
createdAt: Date | null;
|
|
323
383
|
classId: string;
|
|
324
|
-
modifiedAt: Date | null;
|
|
325
384
|
title: string;
|
|
326
|
-
instructions: string;
|
|
327
385
|
dueDate: Date;
|
|
386
|
+
maxGrade: number | null;
|
|
387
|
+
eventId: string | null;
|
|
388
|
+
instructions: string;
|
|
389
|
+
modifiedAt: Date | null;
|
|
328
390
|
teacherId: string;
|
|
329
391
|
acceptFiles: boolean;
|
|
330
392
|
acceptExtendedResponse: boolean;
|
|
@@ -333,44 +395,60 @@ export declare function findAssignmentForDelete(id: string, teacherId: string):
|
|
|
333
395
|
aiPolicyLevel: number;
|
|
334
396
|
sectionId: string | null;
|
|
335
397
|
graded: boolean;
|
|
336
|
-
maxGrade: number | null;
|
|
337
398
|
weight: number;
|
|
338
399
|
inProgress: boolean;
|
|
339
400
|
template: boolean;
|
|
340
|
-
eventId: string | null;
|
|
341
401
|
markSchemeId: string | null;
|
|
342
402
|
order: number | null;
|
|
343
403
|
gradingBoundaryId: string | null;
|
|
344
|
-
}) | null
|
|
345
|
-
datasources: {
|
|
346
|
-
db: {
|
|
347
|
-
url: string;
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
}>;
|
|
404
|
+
}) | null>;
|
|
351
405
|
/** @returns Assignments due today. */
|
|
352
|
-
export declare function findAssignmentsDueToday(): import("
|
|
406
|
+
export declare function findAssignmentsDueToday(): import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
353
407
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
354
|
-
id: string;
|
|
355
408
|
class: {
|
|
356
|
-
name: string;
|
|
357
409
|
id: string;
|
|
410
|
+
name: string;
|
|
358
411
|
};
|
|
412
|
+
id: string;
|
|
359
413
|
title: string;
|
|
360
414
|
dueDate: Date;
|
|
361
|
-
graded: boolean;
|
|
362
415
|
maxGrade: number | null;
|
|
416
|
+
graded: boolean;
|
|
363
417
|
}[]>;
|
|
364
418
|
/** @returns Submission by assignment and student. */
|
|
365
|
-
export declare function findSubmissionByAssignmentAndStudent(assignmentId: string, studentId: string): import(".prisma/client").Prisma.
|
|
419
|
+
export declare function findSubmissionByAssignmentAndStudent(assignmentId: string, studentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
420
|
+
result: {
|
|
421
|
+
userProfile: {
|
|
422
|
+
profilePicture: () => {
|
|
423
|
+
needs: {
|
|
424
|
+
profilePicture: true;
|
|
425
|
+
};
|
|
426
|
+
compute(profile: {
|
|
427
|
+
profilePicture: string | null;
|
|
428
|
+
}): string | null;
|
|
429
|
+
};
|
|
430
|
+
profilePictureThumbnail: () => {
|
|
431
|
+
needs: {
|
|
432
|
+
profilePictureThumbnail: true;
|
|
433
|
+
};
|
|
434
|
+
compute(profile: {
|
|
435
|
+
profilePictureThumbnail: string | null;
|
|
436
|
+
}): string | null;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
model: {};
|
|
441
|
+
query: {};
|
|
442
|
+
client: {};
|
|
443
|
+
}, {}>, "Submission", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
366
444
|
assignment: {
|
|
367
445
|
class: {
|
|
368
|
-
|
|
446
|
+
section: string;
|
|
369
447
|
id: string;
|
|
448
|
+
name: string;
|
|
370
449
|
schoolId: string | null;
|
|
371
|
-
subject: string;
|
|
372
450
|
color: string | null;
|
|
373
|
-
|
|
451
|
+
subject: string;
|
|
374
452
|
syllabus: string | null;
|
|
375
453
|
departmentId: string | null;
|
|
376
454
|
discussionsEnabled: boolean;
|
|
@@ -386,18 +464,20 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
|
|
|
386
464
|
structured: string;
|
|
387
465
|
} | null;
|
|
388
466
|
worksheets: {
|
|
389
|
-
name: string;
|
|
390
467
|
id: string;
|
|
468
|
+
name: string;
|
|
391
469
|
}[];
|
|
392
470
|
} & {
|
|
393
471
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
394
472
|
id: string;
|
|
395
473
|
createdAt: Date | null;
|
|
396
474
|
classId: string;
|
|
397
|
-
modifiedAt: Date | null;
|
|
398
475
|
title: string;
|
|
399
|
-
instructions: string;
|
|
400
476
|
dueDate: Date;
|
|
477
|
+
maxGrade: number | null;
|
|
478
|
+
eventId: string | null;
|
|
479
|
+
instructions: string;
|
|
480
|
+
modifiedAt: Date | null;
|
|
401
481
|
teacherId: string;
|
|
402
482
|
acceptFiles: boolean;
|
|
403
483
|
acceptExtendedResponse: boolean;
|
|
@@ -406,24 +486,26 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
|
|
|
406
486
|
aiPolicyLevel: number;
|
|
407
487
|
sectionId: string | null;
|
|
408
488
|
graded: boolean;
|
|
409
|
-
maxGrade: number | null;
|
|
410
489
|
weight: number;
|
|
411
490
|
inProgress: boolean;
|
|
412
491
|
template: boolean;
|
|
413
|
-
eventId: string | null;
|
|
414
492
|
markSchemeId: string | null;
|
|
415
493
|
order: number | null;
|
|
416
494
|
gradingBoundaryId: string | null;
|
|
417
495
|
};
|
|
418
|
-
|
|
496
|
+
attachments: {
|
|
419
497
|
path: string;
|
|
420
498
|
type: string;
|
|
421
|
-
name: string;
|
|
422
499
|
id: string;
|
|
423
500
|
userId: string | null;
|
|
424
|
-
|
|
501
|
+
name: string;
|
|
425
502
|
size: number | null;
|
|
426
503
|
uploadedAt: Date | null;
|
|
504
|
+
assignmentId: string | null;
|
|
505
|
+
submissionId: string | null;
|
|
506
|
+
thumbnailId: string | null;
|
|
507
|
+
annotationId: string | null;
|
|
508
|
+
conversationId: string | null;
|
|
427
509
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
428
510
|
uploadUrl: string | null;
|
|
429
511
|
uploadExpiresAt: Date | null;
|
|
@@ -433,27 +515,27 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
|
|
|
433
515
|
uploadRetryCount: number;
|
|
434
516
|
isOrphaned: boolean;
|
|
435
517
|
cleanupAt: Date | null;
|
|
436
|
-
thumbnailId: string | null;
|
|
437
|
-
assignmentId: string | null;
|
|
438
|
-
submissionId: string | null;
|
|
439
|
-
annotationId: string | null;
|
|
440
518
|
classDraftId: string | null;
|
|
441
|
-
|
|
519
|
+
folderId: string | null;
|
|
442
520
|
messageId: string | null;
|
|
443
521
|
announcementId: string | null;
|
|
444
522
|
discussionId: string | null;
|
|
445
523
|
discussionReplyId: string | null;
|
|
446
524
|
schoolDevelopementProgramId: string | null;
|
|
447
525
|
}[];
|
|
448
|
-
|
|
526
|
+
annotations: {
|
|
449
527
|
path: string;
|
|
450
528
|
type: string;
|
|
451
|
-
name: string;
|
|
452
529
|
id: string;
|
|
453
530
|
userId: string | null;
|
|
454
|
-
|
|
531
|
+
name: string;
|
|
455
532
|
size: number | null;
|
|
456
533
|
uploadedAt: Date | null;
|
|
534
|
+
assignmentId: string | null;
|
|
535
|
+
submissionId: string | null;
|
|
536
|
+
thumbnailId: string | null;
|
|
537
|
+
annotationId: string | null;
|
|
538
|
+
conversationId: string | null;
|
|
457
539
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
458
540
|
uploadUrl: string | null;
|
|
459
541
|
uploadExpiresAt: Date | null;
|
|
@@ -463,12 +545,8 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
|
|
|
463
545
|
uploadRetryCount: number;
|
|
464
546
|
isOrphaned: boolean;
|
|
465
547
|
cleanupAt: Date | null;
|
|
466
|
-
thumbnailId: string | null;
|
|
467
|
-
assignmentId: string | null;
|
|
468
|
-
submissionId: string | null;
|
|
469
|
-
annotationId: string | null;
|
|
470
548
|
classDraftId: string | null;
|
|
471
|
-
|
|
549
|
+
folderId: string | null;
|
|
472
550
|
messageId: string | null;
|
|
473
551
|
announcementId: string | null;
|
|
474
552
|
discussionId: string | null;
|
|
@@ -480,13 +558,13 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
|
|
|
480
558
|
username: string;
|
|
481
559
|
profile: {
|
|
482
560
|
id: string;
|
|
483
|
-
createdAt: Date;
|
|
484
|
-
updatedAt: Date;
|
|
485
561
|
userId: string;
|
|
486
|
-
location: string | null;
|
|
487
562
|
displayName: string | null;
|
|
488
563
|
bio: string | null;
|
|
564
|
+
location: string | null;
|
|
489
565
|
website: string | null;
|
|
566
|
+
createdAt: Date;
|
|
567
|
+
updatedAt: Date;
|
|
490
568
|
profilePicture: string | null;
|
|
491
569
|
profilePictureThumbnail: string | null;
|
|
492
570
|
} | null;
|
|
@@ -495,8 +573,8 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
|
|
|
495
573
|
id: string;
|
|
496
574
|
createdAt: Date;
|
|
497
575
|
assignmentId: string;
|
|
498
|
-
modifiedAt: Date;
|
|
499
576
|
studentId: string;
|
|
577
|
+
modifiedAt: Date;
|
|
500
578
|
extendedResponse: string | null;
|
|
501
579
|
gradeReceived: number | null;
|
|
502
580
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -507,23 +585,41 @@ export declare function findSubmissionByAssignmentAndStudent(assignmentId: strin
|
|
|
507
585
|
submittedAt: Date | null;
|
|
508
586
|
submitted: boolean | null;
|
|
509
587
|
returned: boolean | null;
|
|
510
|
-
}) | null
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
588
|
+
}) | null>;
|
|
589
|
+
/** @returns Submission by ID for class member. */
|
|
590
|
+
export declare function findSubmissionByIdForClassMember(submissionId: string, classId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
591
|
+
result: {
|
|
592
|
+
userProfile: {
|
|
593
|
+
profilePicture: () => {
|
|
594
|
+
needs: {
|
|
595
|
+
profilePicture: true;
|
|
596
|
+
};
|
|
597
|
+
compute(profile: {
|
|
598
|
+
profilePicture: string | null;
|
|
599
|
+
}): string | null;
|
|
600
|
+
};
|
|
601
|
+
profilePictureThumbnail: () => {
|
|
602
|
+
needs: {
|
|
603
|
+
profilePictureThumbnail: true;
|
|
604
|
+
};
|
|
605
|
+
compute(profile: {
|
|
606
|
+
profilePictureThumbnail: string | null;
|
|
607
|
+
}): string | null;
|
|
608
|
+
};
|
|
514
609
|
};
|
|
515
610
|
};
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
|
|
611
|
+
model: {};
|
|
612
|
+
query: {};
|
|
613
|
+
client: {};
|
|
614
|
+
}, {}>, "Submission", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
519
615
|
assignment: {
|
|
520
616
|
class: {
|
|
521
|
-
|
|
617
|
+
section: string;
|
|
522
618
|
id: string;
|
|
619
|
+
name: string;
|
|
523
620
|
schoolId: string | null;
|
|
524
|
-
subject: string;
|
|
525
621
|
color: string | null;
|
|
526
|
-
|
|
622
|
+
subject: string;
|
|
527
623
|
syllabus: string | null;
|
|
528
624
|
departmentId: string | null;
|
|
529
625
|
discussionsEnabled: boolean;
|
|
@@ -539,18 +635,20 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
|
|
|
539
635
|
structured: string;
|
|
540
636
|
} | null;
|
|
541
637
|
worksheets: {
|
|
542
|
-
name: string;
|
|
543
638
|
id: string;
|
|
639
|
+
name: string;
|
|
544
640
|
}[];
|
|
545
641
|
} & {
|
|
546
642
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
547
643
|
id: string;
|
|
548
644
|
createdAt: Date | null;
|
|
549
645
|
classId: string;
|
|
550
|
-
modifiedAt: Date | null;
|
|
551
646
|
title: string;
|
|
552
|
-
instructions: string;
|
|
553
647
|
dueDate: Date;
|
|
648
|
+
maxGrade: number | null;
|
|
649
|
+
eventId: string | null;
|
|
650
|
+
instructions: string;
|
|
651
|
+
modifiedAt: Date | null;
|
|
554
652
|
teacherId: string;
|
|
555
653
|
acceptFiles: boolean;
|
|
556
654
|
acceptExtendedResponse: boolean;
|
|
@@ -559,24 +657,26 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
|
|
|
559
657
|
aiPolicyLevel: number;
|
|
560
658
|
sectionId: string | null;
|
|
561
659
|
graded: boolean;
|
|
562
|
-
maxGrade: number | null;
|
|
563
660
|
weight: number;
|
|
564
661
|
inProgress: boolean;
|
|
565
662
|
template: boolean;
|
|
566
|
-
eventId: string | null;
|
|
567
663
|
markSchemeId: string | null;
|
|
568
664
|
order: number | null;
|
|
569
665
|
gradingBoundaryId: string | null;
|
|
570
666
|
};
|
|
571
|
-
|
|
667
|
+
attachments: {
|
|
572
668
|
path: string;
|
|
573
669
|
type: string;
|
|
574
|
-
name: string;
|
|
575
670
|
id: string;
|
|
576
671
|
userId: string | null;
|
|
577
|
-
|
|
672
|
+
name: string;
|
|
578
673
|
size: number | null;
|
|
579
674
|
uploadedAt: Date | null;
|
|
675
|
+
assignmentId: string | null;
|
|
676
|
+
submissionId: string | null;
|
|
677
|
+
thumbnailId: string | null;
|
|
678
|
+
annotationId: string | null;
|
|
679
|
+
conversationId: string | null;
|
|
580
680
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
581
681
|
uploadUrl: string | null;
|
|
582
682
|
uploadExpiresAt: Date | null;
|
|
@@ -586,27 +686,27 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
|
|
|
586
686
|
uploadRetryCount: number;
|
|
587
687
|
isOrphaned: boolean;
|
|
588
688
|
cleanupAt: Date | null;
|
|
589
|
-
thumbnailId: string | null;
|
|
590
|
-
assignmentId: string | null;
|
|
591
|
-
submissionId: string | null;
|
|
592
|
-
annotationId: string | null;
|
|
593
689
|
classDraftId: string | null;
|
|
594
|
-
|
|
690
|
+
folderId: string | null;
|
|
595
691
|
messageId: string | null;
|
|
596
692
|
announcementId: string | null;
|
|
597
693
|
discussionId: string | null;
|
|
598
694
|
discussionReplyId: string | null;
|
|
599
695
|
schoolDevelopementProgramId: string | null;
|
|
600
696
|
}[];
|
|
601
|
-
|
|
697
|
+
annotations: {
|
|
602
698
|
path: string;
|
|
603
699
|
type: string;
|
|
604
|
-
name: string;
|
|
605
700
|
id: string;
|
|
606
701
|
userId: string | null;
|
|
607
|
-
|
|
702
|
+
name: string;
|
|
608
703
|
size: number | null;
|
|
609
704
|
uploadedAt: Date | null;
|
|
705
|
+
assignmentId: string | null;
|
|
706
|
+
submissionId: string | null;
|
|
707
|
+
thumbnailId: string | null;
|
|
708
|
+
annotationId: string | null;
|
|
709
|
+
conversationId: string | null;
|
|
610
710
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
611
711
|
uploadUrl: string | null;
|
|
612
712
|
uploadExpiresAt: Date | null;
|
|
@@ -616,12 +716,8 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
|
|
|
616
716
|
uploadRetryCount: number;
|
|
617
717
|
isOrphaned: boolean;
|
|
618
718
|
cleanupAt: Date | null;
|
|
619
|
-
thumbnailId: string | null;
|
|
620
|
-
assignmentId: string | null;
|
|
621
|
-
submissionId: string | null;
|
|
622
|
-
annotationId: string | null;
|
|
623
719
|
classDraftId: string | null;
|
|
624
|
-
|
|
720
|
+
folderId: string | null;
|
|
625
721
|
messageId: string | null;
|
|
626
722
|
announcementId: string | null;
|
|
627
723
|
discussionId: string | null;
|
|
@@ -633,13 +729,13 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
|
|
|
633
729
|
username: string;
|
|
634
730
|
profile: {
|
|
635
731
|
id: string;
|
|
636
|
-
createdAt: Date;
|
|
637
|
-
updatedAt: Date;
|
|
638
732
|
userId: string;
|
|
639
|
-
location: string | null;
|
|
640
733
|
displayName: string | null;
|
|
641
734
|
bio: string | null;
|
|
735
|
+
location: string | null;
|
|
642
736
|
website: string | null;
|
|
737
|
+
createdAt: Date;
|
|
738
|
+
updatedAt: Date;
|
|
643
739
|
profilePicture: string | null;
|
|
644
740
|
profilePictureThumbnail: string | null;
|
|
645
741
|
} | null;
|
|
@@ -648,8 +744,8 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
|
|
|
648
744
|
id: string;
|
|
649
745
|
createdAt: Date;
|
|
650
746
|
assignmentId: string;
|
|
651
|
-
modifiedAt: Date;
|
|
652
747
|
studentId: string;
|
|
748
|
+
modifiedAt: Date;
|
|
653
749
|
extendedResponse: string | null;
|
|
654
750
|
gradeReceived: number | null;
|
|
655
751
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -660,23 +756,41 @@ export declare function findSubmissionByIdForClassMember(submissionId: string, c
|
|
|
660
756
|
submittedAt: Date | null;
|
|
661
757
|
submitted: boolean | null;
|
|
662
758
|
returned: boolean | null;
|
|
663
|
-
}) | null
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
759
|
+
}) | null>;
|
|
760
|
+
/** @returns Submission by ID for update (student or teacher). */
|
|
761
|
+
export declare function findSubmissionForUpdate(submissionId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
762
|
+
result: {
|
|
763
|
+
userProfile: {
|
|
764
|
+
profilePicture: () => {
|
|
765
|
+
needs: {
|
|
766
|
+
profilePicture: true;
|
|
767
|
+
};
|
|
768
|
+
compute(profile: {
|
|
769
|
+
profilePicture: string | null;
|
|
770
|
+
}): string | null;
|
|
771
|
+
};
|
|
772
|
+
profilePictureThumbnail: () => {
|
|
773
|
+
needs: {
|
|
774
|
+
profilePictureThumbnail: true;
|
|
775
|
+
};
|
|
776
|
+
compute(profile: {
|
|
777
|
+
profilePictureThumbnail: string | null;
|
|
778
|
+
}): string | null;
|
|
779
|
+
};
|
|
667
780
|
};
|
|
668
781
|
};
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
|
|
782
|
+
model: {};
|
|
783
|
+
query: {};
|
|
784
|
+
client: {};
|
|
785
|
+
}, {}>, "Submission", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
672
786
|
assignment: {
|
|
673
787
|
class: {
|
|
674
|
-
|
|
788
|
+
section: string;
|
|
675
789
|
id: string;
|
|
790
|
+
name: string;
|
|
676
791
|
schoolId: string | null;
|
|
677
|
-
subject: string;
|
|
678
792
|
color: string | null;
|
|
679
|
-
|
|
793
|
+
subject: string;
|
|
680
794
|
syllabus: string | null;
|
|
681
795
|
departmentId: string | null;
|
|
682
796
|
discussionsEnabled: boolean;
|
|
@@ -696,10 +810,12 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
|
|
|
696
810
|
id: string;
|
|
697
811
|
createdAt: Date | null;
|
|
698
812
|
classId: string;
|
|
699
|
-
modifiedAt: Date | null;
|
|
700
813
|
title: string;
|
|
701
|
-
instructions: string;
|
|
702
814
|
dueDate: Date;
|
|
815
|
+
maxGrade: number | null;
|
|
816
|
+
eventId: string | null;
|
|
817
|
+
instructions: string;
|
|
818
|
+
modifiedAt: Date | null;
|
|
703
819
|
teacherId: string;
|
|
704
820
|
acceptFiles: boolean;
|
|
705
821
|
acceptExtendedResponse: boolean;
|
|
@@ -708,11 +824,9 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
|
|
|
708
824
|
aiPolicyLevel: number;
|
|
709
825
|
sectionId: string | null;
|
|
710
826
|
graded: boolean;
|
|
711
|
-
maxGrade: number | null;
|
|
712
827
|
weight: number;
|
|
713
828
|
inProgress: boolean;
|
|
714
829
|
template: boolean;
|
|
715
|
-
eventId: string | null;
|
|
716
830
|
markSchemeId: string | null;
|
|
717
831
|
order: number | null;
|
|
718
832
|
gradingBoundaryId: string | null;
|
|
@@ -721,12 +835,16 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
|
|
|
721
835
|
thumbnail: {
|
|
722
836
|
path: string;
|
|
723
837
|
type: string;
|
|
724
|
-
name: string;
|
|
725
838
|
id: string;
|
|
726
839
|
userId: string | null;
|
|
727
|
-
|
|
840
|
+
name: string;
|
|
728
841
|
size: number | null;
|
|
729
842
|
uploadedAt: Date | null;
|
|
843
|
+
assignmentId: string | null;
|
|
844
|
+
submissionId: string | null;
|
|
845
|
+
thumbnailId: string | null;
|
|
846
|
+
annotationId: string | null;
|
|
847
|
+
conversationId: string | null;
|
|
730
848
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
731
849
|
uploadUrl: string | null;
|
|
732
850
|
uploadExpiresAt: Date | null;
|
|
@@ -736,12 +854,8 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
|
|
|
736
854
|
uploadRetryCount: number;
|
|
737
855
|
isOrphaned: boolean;
|
|
738
856
|
cleanupAt: Date | null;
|
|
739
|
-
thumbnailId: string | null;
|
|
740
|
-
assignmentId: string | null;
|
|
741
|
-
submissionId: string | null;
|
|
742
|
-
annotationId: string | null;
|
|
743
857
|
classDraftId: string | null;
|
|
744
|
-
|
|
858
|
+
folderId: string | null;
|
|
745
859
|
messageId: string | null;
|
|
746
860
|
announcementId: string | null;
|
|
747
861
|
discussionId: string | null;
|
|
@@ -751,12 +865,16 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
|
|
|
751
865
|
} & {
|
|
752
866
|
path: string;
|
|
753
867
|
type: string;
|
|
754
|
-
name: string;
|
|
755
868
|
id: string;
|
|
756
869
|
userId: string | null;
|
|
757
|
-
|
|
870
|
+
name: string;
|
|
758
871
|
size: number | null;
|
|
759
872
|
uploadedAt: Date | null;
|
|
873
|
+
assignmentId: string | null;
|
|
874
|
+
submissionId: string | null;
|
|
875
|
+
thumbnailId: string | null;
|
|
876
|
+
annotationId: string | null;
|
|
877
|
+
conversationId: string | null;
|
|
760
878
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
761
879
|
uploadUrl: string | null;
|
|
762
880
|
uploadExpiresAt: Date | null;
|
|
@@ -766,12 +884,8 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
|
|
|
766
884
|
uploadRetryCount: number;
|
|
767
885
|
isOrphaned: boolean;
|
|
768
886
|
cleanupAt: Date | null;
|
|
769
|
-
thumbnailId: string | null;
|
|
770
|
-
assignmentId: string | null;
|
|
771
|
-
submissionId: string | null;
|
|
772
|
-
annotationId: string | null;
|
|
773
887
|
classDraftId: string | null;
|
|
774
|
-
|
|
888
|
+
folderId: string | null;
|
|
775
889
|
messageId: string | null;
|
|
776
890
|
announcementId: string | null;
|
|
777
891
|
discussionId: string | null;
|
|
@@ -782,8 +896,8 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
|
|
|
782
896
|
id: string;
|
|
783
897
|
createdAt: Date;
|
|
784
898
|
assignmentId: string;
|
|
785
|
-
modifiedAt: Date;
|
|
786
899
|
studentId: string;
|
|
900
|
+
modifiedAt: Date;
|
|
787
901
|
extendedResponse: string | null;
|
|
788
902
|
gradeReceived: number | null;
|
|
789
903
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -794,23 +908,41 @@ export declare function findSubmissionForUpdate(submissionId: string, userId: st
|
|
|
794
908
|
submittedAt: Date | null;
|
|
795
909
|
submitted: boolean | null;
|
|
796
910
|
returned: boolean | null;
|
|
797
|
-
}) | null
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
911
|
+
}) | null>;
|
|
912
|
+
/** Create a submission. */
|
|
913
|
+
export declare function createSubmission(assignmentId: string, studentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
914
|
+
result: {
|
|
915
|
+
userProfile: {
|
|
916
|
+
profilePicture: () => {
|
|
917
|
+
needs: {
|
|
918
|
+
profilePicture: true;
|
|
919
|
+
};
|
|
920
|
+
compute(profile: {
|
|
921
|
+
profilePicture: string | null;
|
|
922
|
+
}): string | null;
|
|
923
|
+
};
|
|
924
|
+
profilePictureThumbnail: () => {
|
|
925
|
+
needs: {
|
|
926
|
+
profilePictureThumbnail: true;
|
|
927
|
+
};
|
|
928
|
+
compute(profile: {
|
|
929
|
+
profilePictureThumbnail: string | null;
|
|
930
|
+
}): string | null;
|
|
931
|
+
};
|
|
801
932
|
};
|
|
802
933
|
};
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
|
|
934
|
+
model: {};
|
|
935
|
+
query: {};
|
|
936
|
+
client: {};
|
|
937
|
+
}, {}>, "Submission", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
806
938
|
assignment: {
|
|
807
939
|
class: {
|
|
808
|
-
|
|
940
|
+
section: string;
|
|
809
941
|
id: string;
|
|
942
|
+
name: string;
|
|
810
943
|
schoolId: string | null;
|
|
811
|
-
subject: string;
|
|
812
944
|
color: string | null;
|
|
813
|
-
|
|
945
|
+
subject: string;
|
|
814
946
|
syllabus: string | null;
|
|
815
947
|
departmentId: string | null;
|
|
816
948
|
discussionsEnabled: boolean;
|
|
@@ -826,18 +958,20 @@ export declare function createSubmission(assignmentId: string, studentId: string
|
|
|
826
958
|
structured: string;
|
|
827
959
|
} | null;
|
|
828
960
|
worksheets: {
|
|
829
|
-
name: string;
|
|
830
961
|
id: string;
|
|
962
|
+
name: string;
|
|
831
963
|
}[];
|
|
832
964
|
} & {
|
|
833
965
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
834
966
|
id: string;
|
|
835
967
|
createdAt: Date | null;
|
|
836
968
|
classId: string;
|
|
837
|
-
modifiedAt: Date | null;
|
|
838
969
|
title: string;
|
|
839
|
-
instructions: string;
|
|
840
970
|
dueDate: Date;
|
|
971
|
+
maxGrade: number | null;
|
|
972
|
+
eventId: string | null;
|
|
973
|
+
instructions: string;
|
|
974
|
+
modifiedAt: Date | null;
|
|
841
975
|
teacherId: string;
|
|
842
976
|
acceptFiles: boolean;
|
|
843
977
|
acceptExtendedResponse: boolean;
|
|
@@ -846,24 +980,26 @@ export declare function createSubmission(assignmentId: string, studentId: string
|
|
|
846
980
|
aiPolicyLevel: number;
|
|
847
981
|
sectionId: string | null;
|
|
848
982
|
graded: boolean;
|
|
849
|
-
maxGrade: number | null;
|
|
850
983
|
weight: number;
|
|
851
984
|
inProgress: boolean;
|
|
852
985
|
template: boolean;
|
|
853
|
-
eventId: string | null;
|
|
854
986
|
markSchemeId: string | null;
|
|
855
987
|
order: number | null;
|
|
856
988
|
gradingBoundaryId: string | null;
|
|
857
989
|
};
|
|
858
|
-
|
|
990
|
+
attachments: {
|
|
859
991
|
path: string;
|
|
860
992
|
type: string;
|
|
861
|
-
name: string;
|
|
862
993
|
id: string;
|
|
863
994
|
userId: string | null;
|
|
864
|
-
|
|
995
|
+
name: string;
|
|
865
996
|
size: number | null;
|
|
866
997
|
uploadedAt: Date | null;
|
|
998
|
+
assignmentId: string | null;
|
|
999
|
+
submissionId: string | null;
|
|
1000
|
+
thumbnailId: string | null;
|
|
1001
|
+
annotationId: string | null;
|
|
1002
|
+
conversationId: string | null;
|
|
867
1003
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
868
1004
|
uploadUrl: string | null;
|
|
869
1005
|
uploadExpiresAt: Date | null;
|
|
@@ -873,27 +1009,27 @@ export declare function createSubmission(assignmentId: string, studentId: string
|
|
|
873
1009
|
uploadRetryCount: number;
|
|
874
1010
|
isOrphaned: boolean;
|
|
875
1011
|
cleanupAt: Date | null;
|
|
876
|
-
thumbnailId: string | null;
|
|
877
|
-
assignmentId: string | null;
|
|
878
|
-
submissionId: string | null;
|
|
879
|
-
annotationId: string | null;
|
|
880
1012
|
classDraftId: string | null;
|
|
881
|
-
|
|
1013
|
+
folderId: string | null;
|
|
882
1014
|
messageId: string | null;
|
|
883
1015
|
announcementId: string | null;
|
|
884
1016
|
discussionId: string | null;
|
|
885
1017
|
discussionReplyId: string | null;
|
|
886
1018
|
schoolDevelopementProgramId: string | null;
|
|
887
1019
|
}[];
|
|
888
|
-
|
|
1020
|
+
annotations: {
|
|
889
1021
|
path: string;
|
|
890
1022
|
type: string;
|
|
891
|
-
name: string;
|
|
892
1023
|
id: string;
|
|
893
1024
|
userId: string | null;
|
|
894
|
-
|
|
1025
|
+
name: string;
|
|
895
1026
|
size: number | null;
|
|
896
1027
|
uploadedAt: Date | null;
|
|
1028
|
+
assignmentId: string | null;
|
|
1029
|
+
submissionId: string | null;
|
|
1030
|
+
thumbnailId: string | null;
|
|
1031
|
+
annotationId: string | null;
|
|
1032
|
+
conversationId: string | null;
|
|
897
1033
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
898
1034
|
uploadUrl: string | null;
|
|
899
1035
|
uploadExpiresAt: Date | null;
|
|
@@ -903,12 +1039,8 @@ export declare function createSubmission(assignmentId: string, studentId: string
|
|
|
903
1039
|
uploadRetryCount: number;
|
|
904
1040
|
isOrphaned: boolean;
|
|
905
1041
|
cleanupAt: Date | null;
|
|
906
|
-
thumbnailId: string | null;
|
|
907
|
-
assignmentId: string | null;
|
|
908
|
-
submissionId: string | null;
|
|
909
|
-
annotationId: string | null;
|
|
910
1042
|
classDraftId: string | null;
|
|
911
|
-
|
|
1043
|
+
folderId: string | null;
|
|
912
1044
|
messageId: string | null;
|
|
913
1045
|
announcementId: string | null;
|
|
914
1046
|
discussionId: string | null;
|
|
@@ -923,8 +1055,8 @@ export declare function createSubmission(assignmentId: string, studentId: string
|
|
|
923
1055
|
id: string;
|
|
924
1056
|
createdAt: Date;
|
|
925
1057
|
assignmentId: string;
|
|
926
|
-
modifiedAt: Date;
|
|
927
1058
|
studentId: string;
|
|
1059
|
+
modifiedAt: Date;
|
|
928
1060
|
extendedResponse: string | null;
|
|
929
1061
|
gradeReceived: number | null;
|
|
930
1062
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -935,27 +1067,45 @@ export declare function createSubmission(assignmentId: string, studentId: string
|
|
|
935
1067
|
submittedAt: Date | null;
|
|
936
1068
|
submitted: boolean | null;
|
|
937
1069
|
returned: boolean | null;
|
|
938
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
939
|
-
datasources: {
|
|
940
|
-
db: {
|
|
941
|
-
url: string;
|
|
942
|
-
};
|
|
943
|
-
};
|
|
944
1070
|
}>;
|
|
945
1071
|
/** @returns Sections for a class. */
|
|
946
|
-
export declare function findSectionsByClassId(classId: string): import("
|
|
947
|
-
name: string;
|
|
1072
|
+
export declare function findSectionsByClassId(classId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
948
1073
|
id: string;
|
|
1074
|
+
name: string;
|
|
949
1075
|
}[]>;
|
|
950
1076
|
/** @returns Assignment with class for teacher (auth check). */
|
|
951
|
-
export declare function findAssignmentWithClassForTeacher(assignmentId: string, teacherId: string): import(".prisma/client").Prisma.
|
|
1077
|
+
export declare function findAssignmentWithClassForTeacher(assignmentId: string, teacherId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
1078
|
+
result: {
|
|
1079
|
+
userProfile: {
|
|
1080
|
+
profilePicture: () => {
|
|
1081
|
+
needs: {
|
|
1082
|
+
profilePicture: true;
|
|
1083
|
+
};
|
|
1084
|
+
compute(profile: {
|
|
1085
|
+
profilePicture: string | null;
|
|
1086
|
+
}): string | null;
|
|
1087
|
+
};
|
|
1088
|
+
profilePictureThumbnail: () => {
|
|
1089
|
+
needs: {
|
|
1090
|
+
profilePictureThumbnail: true;
|
|
1091
|
+
};
|
|
1092
|
+
compute(profile: {
|
|
1093
|
+
profilePictureThumbnail: string | null;
|
|
1094
|
+
}): string | null;
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
model: {};
|
|
1099
|
+
query: {};
|
|
1100
|
+
client: {};
|
|
1101
|
+
}, {}>, "Assignment", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
952
1102
|
class: {
|
|
953
|
-
|
|
1103
|
+
section: string;
|
|
954
1104
|
id: string;
|
|
1105
|
+
name: string;
|
|
955
1106
|
schoolId: string | null;
|
|
956
|
-
subject: string;
|
|
957
1107
|
color: string | null;
|
|
958
|
-
|
|
1108
|
+
subject: string;
|
|
959
1109
|
syllabus: string | null;
|
|
960
1110
|
departmentId: string | null;
|
|
961
1111
|
discussionsEnabled: boolean;
|
|
@@ -967,10 +1117,12 @@ export declare function findAssignmentWithClassForTeacher(assignmentId: string,
|
|
|
967
1117
|
id: string;
|
|
968
1118
|
createdAt: Date | null;
|
|
969
1119
|
classId: string;
|
|
970
|
-
modifiedAt: Date | null;
|
|
971
1120
|
title: string;
|
|
972
|
-
instructions: string;
|
|
973
1121
|
dueDate: Date;
|
|
1122
|
+
maxGrade: number | null;
|
|
1123
|
+
eventId: string | null;
|
|
1124
|
+
instructions: string;
|
|
1125
|
+
modifiedAt: Date | null;
|
|
974
1126
|
teacherId: string;
|
|
975
1127
|
acceptFiles: boolean;
|
|
976
1128
|
acceptExtendedResponse: boolean;
|
|
@@ -979,21 +1131,13 @@ export declare function findAssignmentWithClassForTeacher(assignmentId: string,
|
|
|
979
1131
|
aiPolicyLevel: number;
|
|
980
1132
|
sectionId: string | null;
|
|
981
1133
|
graded: boolean;
|
|
982
|
-
maxGrade: number | null;
|
|
983
1134
|
weight: number;
|
|
984
1135
|
inProgress: boolean;
|
|
985
1136
|
template: boolean;
|
|
986
|
-
eventId: string | null;
|
|
987
1137
|
markSchemeId: string | null;
|
|
988
1138
|
order: number | null;
|
|
989
1139
|
gradingBoundaryId: string | null;
|
|
990
|
-
}) | null
|
|
991
|
-
datasources: {
|
|
992
|
-
db: {
|
|
993
|
-
url: string;
|
|
994
|
-
};
|
|
995
|
-
};
|
|
996
|
-
}>;
|
|
1140
|
+
}) | null>;
|
|
997
1141
|
/**
|
|
998
1142
|
* Clone an assignment into another class with a new title: copies settings, duplicates linked
|
|
999
1143
|
* worksheets into the target class, clones attachment file records (same storage path),
|
|
@@ -1005,10 +1149,12 @@ export declare function duplicateAssignment(sourceAssignmentId: string, targetCl
|
|
|
1005
1149
|
id: string;
|
|
1006
1150
|
createdAt: Date | null;
|
|
1007
1151
|
classId: string;
|
|
1008
|
-
modifiedAt: Date | null;
|
|
1009
1152
|
title: string;
|
|
1010
|
-
instructions: string;
|
|
1011
1153
|
dueDate: Date;
|
|
1154
|
+
maxGrade: number | null;
|
|
1155
|
+
eventId: string | null;
|
|
1156
|
+
instructions: string;
|
|
1157
|
+
modifiedAt: Date | null;
|
|
1012
1158
|
teacherId: string;
|
|
1013
1159
|
acceptFiles: boolean;
|
|
1014
1160
|
acceptExtendedResponse: boolean;
|
|
@@ -1017,25 +1163,23 @@ export declare function duplicateAssignment(sourceAssignmentId: string, targetCl
|
|
|
1017
1163
|
aiPolicyLevel: number;
|
|
1018
1164
|
sectionId: string | null;
|
|
1019
1165
|
graded: boolean;
|
|
1020
|
-
maxGrade: number | null;
|
|
1021
1166
|
weight: number;
|
|
1022
1167
|
inProgress: boolean;
|
|
1023
1168
|
template: boolean;
|
|
1024
|
-
eventId: string | null;
|
|
1025
1169
|
markSchemeId: string | null;
|
|
1026
1170
|
order: number | null;
|
|
1027
1171
|
gradingBoundaryId: string | null;
|
|
1028
1172
|
} | null>;
|
|
1029
1173
|
/** @returns Submissions for assignment (teacher view). */
|
|
1030
|
-
export declare function findSubmissionsByAssignmentForTeacher(assignmentId: string, teacherId: string): import("
|
|
1174
|
+
export declare function findSubmissionsByAssignmentForTeacher(assignmentId: string, teacherId: string): import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
1031
1175
|
assignment: {
|
|
1032
1176
|
class: {
|
|
1033
|
-
|
|
1177
|
+
section: string;
|
|
1034
1178
|
id: string;
|
|
1179
|
+
name: string;
|
|
1035
1180
|
schoolId: string | null;
|
|
1036
|
-
subject: string;
|
|
1037
1181
|
color: string | null;
|
|
1038
|
-
|
|
1182
|
+
subject: string;
|
|
1039
1183
|
syllabus: string | null;
|
|
1040
1184
|
departmentId: string | null;
|
|
1041
1185
|
discussionsEnabled: boolean;
|
|
@@ -1055,10 +1199,12 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1055
1199
|
id: string;
|
|
1056
1200
|
createdAt: Date | null;
|
|
1057
1201
|
classId: string;
|
|
1058
|
-
modifiedAt: Date | null;
|
|
1059
1202
|
title: string;
|
|
1060
|
-
instructions: string;
|
|
1061
1203
|
dueDate: Date;
|
|
1204
|
+
maxGrade: number | null;
|
|
1205
|
+
eventId: string | null;
|
|
1206
|
+
instructions: string;
|
|
1207
|
+
modifiedAt: Date | null;
|
|
1062
1208
|
teacherId: string;
|
|
1063
1209
|
acceptFiles: boolean;
|
|
1064
1210
|
acceptExtendedResponse: boolean;
|
|
@@ -1067,11 +1213,9 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1067
1213
|
aiPolicyLevel: number;
|
|
1068
1214
|
sectionId: string | null;
|
|
1069
1215
|
graded: boolean;
|
|
1070
|
-
maxGrade: number | null;
|
|
1071
1216
|
weight: number;
|
|
1072
1217
|
inProgress: boolean;
|
|
1073
1218
|
template: boolean;
|
|
1074
|
-
eventId: string | null;
|
|
1075
1219
|
markSchemeId: string | null;
|
|
1076
1220
|
order: number | null;
|
|
1077
1221
|
gradingBoundaryId: string | null;
|
|
@@ -1080,12 +1224,16 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1080
1224
|
thumbnail: {
|
|
1081
1225
|
path: string;
|
|
1082
1226
|
type: string;
|
|
1083
|
-
name: string;
|
|
1084
1227
|
id: string;
|
|
1085
1228
|
userId: string | null;
|
|
1086
|
-
|
|
1229
|
+
name: string;
|
|
1087
1230
|
size: number | null;
|
|
1088
1231
|
uploadedAt: Date | null;
|
|
1232
|
+
assignmentId: string | null;
|
|
1233
|
+
submissionId: string | null;
|
|
1234
|
+
thumbnailId: string | null;
|
|
1235
|
+
annotationId: string | null;
|
|
1236
|
+
conversationId: string | null;
|
|
1089
1237
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1090
1238
|
uploadUrl: string | null;
|
|
1091
1239
|
uploadExpiresAt: Date | null;
|
|
@@ -1095,12 +1243,8 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1095
1243
|
uploadRetryCount: number;
|
|
1096
1244
|
isOrphaned: boolean;
|
|
1097
1245
|
cleanupAt: Date | null;
|
|
1098
|
-
thumbnailId: string | null;
|
|
1099
|
-
assignmentId: string | null;
|
|
1100
|
-
submissionId: string | null;
|
|
1101
|
-
annotationId: string | null;
|
|
1102
1246
|
classDraftId: string | null;
|
|
1103
|
-
|
|
1247
|
+
folderId: string | null;
|
|
1104
1248
|
messageId: string | null;
|
|
1105
1249
|
announcementId: string | null;
|
|
1106
1250
|
discussionId: string | null;
|
|
@@ -1110,12 +1254,16 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1110
1254
|
} & {
|
|
1111
1255
|
path: string;
|
|
1112
1256
|
type: string;
|
|
1113
|
-
name: string;
|
|
1114
1257
|
id: string;
|
|
1115
1258
|
userId: string | null;
|
|
1116
|
-
|
|
1259
|
+
name: string;
|
|
1117
1260
|
size: number | null;
|
|
1118
1261
|
uploadedAt: Date | null;
|
|
1262
|
+
assignmentId: string | null;
|
|
1263
|
+
submissionId: string | null;
|
|
1264
|
+
thumbnailId: string | null;
|
|
1265
|
+
annotationId: string | null;
|
|
1266
|
+
conversationId: string | null;
|
|
1119
1267
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1120
1268
|
uploadUrl: string | null;
|
|
1121
1269
|
uploadExpiresAt: Date | null;
|
|
@@ -1125,12 +1273,8 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1125
1273
|
uploadRetryCount: number;
|
|
1126
1274
|
isOrphaned: boolean;
|
|
1127
1275
|
cleanupAt: Date | null;
|
|
1128
|
-
thumbnailId: string | null;
|
|
1129
|
-
assignmentId: string | null;
|
|
1130
|
-
submissionId: string | null;
|
|
1131
|
-
annotationId: string | null;
|
|
1132
1276
|
classDraftId: string | null;
|
|
1133
|
-
|
|
1277
|
+
folderId: string | null;
|
|
1134
1278
|
messageId: string | null;
|
|
1135
1279
|
announcementId: string | null;
|
|
1136
1280
|
discussionId: string | null;
|
|
@@ -1141,8 +1285,8 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1141
1285
|
id: string;
|
|
1142
1286
|
username: string;
|
|
1143
1287
|
profile: {
|
|
1144
|
-
displayName: string | null;
|
|
1145
1288
|
profilePicture: string | null;
|
|
1289
|
+
displayName: string | null;
|
|
1146
1290
|
profilePictureThumbnail: string | null;
|
|
1147
1291
|
} | null;
|
|
1148
1292
|
};
|
|
@@ -1150,8 +1294,8 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1150
1294
|
id: string;
|
|
1151
1295
|
createdAt: Date;
|
|
1152
1296
|
assignmentId: string;
|
|
1153
|
-
modifiedAt: Date;
|
|
1154
1297
|
studentId: string;
|
|
1298
|
+
modifiedAt: Date;
|
|
1155
1299
|
extendedResponse: string | null;
|
|
1156
1300
|
gradeReceived: number | null;
|
|
1157
1301
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -1164,15 +1308,39 @@ export declare function findSubmissionsByAssignmentForTeacher(assignmentId: stri
|
|
|
1164
1308
|
returned: boolean | null;
|
|
1165
1309
|
})[]>;
|
|
1166
1310
|
/** @returns Submission by ID for teacher update. */
|
|
1167
|
-
export declare function findSubmissionForTeacherUpdate(submissionId: string, teacherId: string): import(".prisma/client").Prisma.
|
|
1311
|
+
export declare function findSubmissionForTeacherUpdate(submissionId: string, teacherId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
1312
|
+
result: {
|
|
1313
|
+
userProfile: {
|
|
1314
|
+
profilePicture: () => {
|
|
1315
|
+
needs: {
|
|
1316
|
+
profilePicture: true;
|
|
1317
|
+
};
|
|
1318
|
+
compute(profile: {
|
|
1319
|
+
profilePicture: string | null;
|
|
1320
|
+
}): string | null;
|
|
1321
|
+
};
|
|
1322
|
+
profilePictureThumbnail: () => {
|
|
1323
|
+
needs: {
|
|
1324
|
+
profilePictureThumbnail: true;
|
|
1325
|
+
};
|
|
1326
|
+
compute(profile: {
|
|
1327
|
+
profilePictureThumbnail: string | null;
|
|
1328
|
+
}): string | null;
|
|
1329
|
+
};
|
|
1330
|
+
};
|
|
1331
|
+
};
|
|
1332
|
+
model: {};
|
|
1333
|
+
query: {};
|
|
1334
|
+
client: {};
|
|
1335
|
+
}, {}>, "Submission", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
1168
1336
|
assignment: {
|
|
1169
1337
|
class: {
|
|
1170
|
-
|
|
1338
|
+
section: string;
|
|
1171
1339
|
id: string;
|
|
1340
|
+
name: string;
|
|
1172
1341
|
schoolId: string | null;
|
|
1173
|
-
subject: string;
|
|
1174
1342
|
color: string | null;
|
|
1175
|
-
|
|
1343
|
+
subject: string;
|
|
1176
1344
|
syllabus: string | null;
|
|
1177
1345
|
departmentId: string | null;
|
|
1178
1346
|
discussionsEnabled: boolean;
|
|
@@ -1192,10 +1360,12 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1192
1360
|
id: string;
|
|
1193
1361
|
createdAt: Date | null;
|
|
1194
1362
|
classId: string;
|
|
1195
|
-
modifiedAt: Date | null;
|
|
1196
1363
|
title: string;
|
|
1197
|
-
instructions: string;
|
|
1198
1364
|
dueDate: Date;
|
|
1365
|
+
maxGrade: number | null;
|
|
1366
|
+
eventId: string | null;
|
|
1367
|
+
instructions: string;
|
|
1368
|
+
modifiedAt: Date | null;
|
|
1199
1369
|
teacherId: string;
|
|
1200
1370
|
acceptFiles: boolean;
|
|
1201
1371
|
acceptExtendedResponse: boolean;
|
|
@@ -1204,25 +1374,27 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1204
1374
|
aiPolicyLevel: number;
|
|
1205
1375
|
sectionId: string | null;
|
|
1206
1376
|
graded: boolean;
|
|
1207
|
-
maxGrade: number | null;
|
|
1208
1377
|
weight: number;
|
|
1209
1378
|
inProgress: boolean;
|
|
1210
1379
|
template: boolean;
|
|
1211
|
-
eventId: string | null;
|
|
1212
1380
|
markSchemeId: string | null;
|
|
1213
1381
|
order: number | null;
|
|
1214
1382
|
gradingBoundaryId: string | null;
|
|
1215
1383
|
};
|
|
1216
|
-
|
|
1384
|
+
attachments: ({
|
|
1217
1385
|
thumbnail: {
|
|
1218
1386
|
path: string;
|
|
1219
1387
|
type: string;
|
|
1220
|
-
name: string;
|
|
1221
1388
|
id: string;
|
|
1222
1389
|
userId: string | null;
|
|
1223
|
-
|
|
1390
|
+
name: string;
|
|
1224
1391
|
size: number | null;
|
|
1225
1392
|
uploadedAt: Date | null;
|
|
1393
|
+
assignmentId: string | null;
|
|
1394
|
+
submissionId: string | null;
|
|
1395
|
+
thumbnailId: string | null;
|
|
1396
|
+
annotationId: string | null;
|
|
1397
|
+
conversationId: string | null;
|
|
1226
1398
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1227
1399
|
uploadUrl: string | null;
|
|
1228
1400
|
uploadExpiresAt: Date | null;
|
|
@@ -1232,12 +1404,8 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1232
1404
|
uploadRetryCount: number;
|
|
1233
1405
|
isOrphaned: boolean;
|
|
1234
1406
|
cleanupAt: Date | null;
|
|
1235
|
-
thumbnailId: string | null;
|
|
1236
|
-
assignmentId: string | null;
|
|
1237
|
-
submissionId: string | null;
|
|
1238
|
-
annotationId: string | null;
|
|
1239
1407
|
classDraftId: string | null;
|
|
1240
|
-
|
|
1408
|
+
folderId: string | null;
|
|
1241
1409
|
messageId: string | null;
|
|
1242
1410
|
announcementId: string | null;
|
|
1243
1411
|
discussionId: string | null;
|
|
@@ -1247,12 +1415,16 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1247
1415
|
} & {
|
|
1248
1416
|
path: string;
|
|
1249
1417
|
type: string;
|
|
1250
|
-
name: string;
|
|
1251
1418
|
id: string;
|
|
1252
1419
|
userId: string | null;
|
|
1253
|
-
|
|
1420
|
+
name: string;
|
|
1254
1421
|
size: number | null;
|
|
1255
1422
|
uploadedAt: Date | null;
|
|
1423
|
+
assignmentId: string | null;
|
|
1424
|
+
submissionId: string | null;
|
|
1425
|
+
thumbnailId: string | null;
|
|
1426
|
+
annotationId: string | null;
|
|
1427
|
+
conversationId: string | null;
|
|
1256
1428
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1257
1429
|
uploadUrl: string | null;
|
|
1258
1430
|
uploadExpiresAt: Date | null;
|
|
@@ -1262,28 +1434,28 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1262
1434
|
uploadRetryCount: number;
|
|
1263
1435
|
isOrphaned: boolean;
|
|
1264
1436
|
cleanupAt: Date | null;
|
|
1265
|
-
thumbnailId: string | null;
|
|
1266
|
-
assignmentId: string | null;
|
|
1267
|
-
submissionId: string | null;
|
|
1268
|
-
annotationId: string | null;
|
|
1269
1437
|
classDraftId: string | null;
|
|
1270
|
-
|
|
1438
|
+
folderId: string | null;
|
|
1271
1439
|
messageId: string | null;
|
|
1272
1440
|
announcementId: string | null;
|
|
1273
1441
|
discussionId: string | null;
|
|
1274
1442
|
discussionReplyId: string | null;
|
|
1275
1443
|
schoolDevelopementProgramId: string | null;
|
|
1276
1444
|
})[];
|
|
1277
|
-
|
|
1445
|
+
annotations: ({
|
|
1278
1446
|
thumbnail: {
|
|
1279
1447
|
path: string;
|
|
1280
1448
|
type: string;
|
|
1281
|
-
name: string;
|
|
1282
1449
|
id: string;
|
|
1283
1450
|
userId: string | null;
|
|
1284
|
-
|
|
1451
|
+
name: string;
|
|
1285
1452
|
size: number | null;
|
|
1286
1453
|
uploadedAt: Date | null;
|
|
1454
|
+
assignmentId: string | null;
|
|
1455
|
+
submissionId: string | null;
|
|
1456
|
+
thumbnailId: string | null;
|
|
1457
|
+
annotationId: string | null;
|
|
1458
|
+
conversationId: string | null;
|
|
1287
1459
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1288
1460
|
uploadUrl: string | null;
|
|
1289
1461
|
uploadExpiresAt: Date | null;
|
|
@@ -1293,12 +1465,8 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1293
1465
|
uploadRetryCount: number;
|
|
1294
1466
|
isOrphaned: boolean;
|
|
1295
1467
|
cleanupAt: Date | null;
|
|
1296
|
-
thumbnailId: string | null;
|
|
1297
|
-
assignmentId: string | null;
|
|
1298
|
-
submissionId: string | null;
|
|
1299
|
-
annotationId: string | null;
|
|
1300
1468
|
classDraftId: string | null;
|
|
1301
|
-
|
|
1469
|
+
folderId: string | null;
|
|
1302
1470
|
messageId: string | null;
|
|
1303
1471
|
announcementId: string | null;
|
|
1304
1472
|
discussionId: string | null;
|
|
@@ -1308,12 +1476,16 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1308
1476
|
} & {
|
|
1309
1477
|
path: string;
|
|
1310
1478
|
type: string;
|
|
1311
|
-
name: string;
|
|
1312
1479
|
id: string;
|
|
1313
1480
|
userId: string | null;
|
|
1314
|
-
|
|
1481
|
+
name: string;
|
|
1315
1482
|
size: number | null;
|
|
1316
1483
|
uploadedAt: Date | null;
|
|
1484
|
+
assignmentId: string | null;
|
|
1485
|
+
submissionId: string | null;
|
|
1486
|
+
thumbnailId: string | null;
|
|
1487
|
+
annotationId: string | null;
|
|
1488
|
+
conversationId: string | null;
|
|
1317
1489
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1318
1490
|
uploadUrl: string | null;
|
|
1319
1491
|
uploadExpiresAt: Date | null;
|
|
@@ -1323,12 +1495,8 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1323
1495
|
uploadRetryCount: number;
|
|
1324
1496
|
isOrphaned: boolean;
|
|
1325
1497
|
cleanupAt: Date | null;
|
|
1326
|
-
thumbnailId: string | null;
|
|
1327
|
-
assignmentId: string | null;
|
|
1328
|
-
submissionId: string | null;
|
|
1329
|
-
annotationId: string | null;
|
|
1330
1498
|
classDraftId: string | null;
|
|
1331
|
-
|
|
1499
|
+
folderId: string | null;
|
|
1332
1500
|
messageId: string | null;
|
|
1333
1501
|
announcementId: string | null;
|
|
1334
1502
|
discussionId: string | null;
|
|
@@ -1339,8 +1507,8 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1339
1507
|
id: string;
|
|
1340
1508
|
createdAt: Date;
|
|
1341
1509
|
assignmentId: string;
|
|
1342
|
-
modifiedAt: Date;
|
|
1343
1510
|
studentId: string;
|
|
1511
|
+
modifiedAt: Date;
|
|
1344
1512
|
extendedResponse: string | null;
|
|
1345
1513
|
gradeReceived: number | null;
|
|
1346
1514
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -1351,41 +1519,59 @@ export declare function findSubmissionForTeacherUpdate(submissionId: string, tea
|
|
|
1351
1519
|
submittedAt: Date | null;
|
|
1352
1520
|
submitted: boolean | null;
|
|
1353
1521
|
returned: boolean | null;
|
|
1354
|
-
}) | null
|
|
1355
|
-
datasources: {
|
|
1356
|
-
db: {
|
|
1357
|
-
url: string;
|
|
1358
|
-
};
|
|
1359
|
-
};
|
|
1360
|
-
}>;
|
|
1522
|
+
}) | null>;
|
|
1361
1523
|
/** @returns Events in class that don't have this assignment attached. */
|
|
1362
|
-
export declare function findAvailableEventsForAssignment(classId: string, assignmentId: string): import("
|
|
1363
|
-
name: string | null;
|
|
1524
|
+
export declare function findAvailableEventsForAssignment(classId: string, assignmentId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
1364
1525
|
id: string;
|
|
1526
|
+
location: string | null;
|
|
1527
|
+
name: string | null;
|
|
1365
1528
|
color: string | null;
|
|
1366
1529
|
startTime: Date;
|
|
1367
1530
|
endTime: Date;
|
|
1368
|
-
location: string | null;
|
|
1369
1531
|
remarks: string | null;
|
|
1370
1532
|
}[]>;
|
|
1371
1533
|
/** Attach assignment to event. */
|
|
1372
|
-
export declare function attachAssignmentToEvent(assignmentId: string, eventId: string): import(".prisma/client").Prisma.
|
|
1534
|
+
export declare function attachAssignmentToEvent(assignmentId: string, eventId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
1535
|
+
result: {
|
|
1536
|
+
userProfile: {
|
|
1537
|
+
profilePicture: () => {
|
|
1538
|
+
needs: {
|
|
1539
|
+
profilePicture: true;
|
|
1540
|
+
};
|
|
1541
|
+
compute(profile: {
|
|
1542
|
+
profilePicture: string | null;
|
|
1543
|
+
}): string | null;
|
|
1544
|
+
};
|
|
1545
|
+
profilePictureThumbnail: () => {
|
|
1546
|
+
needs: {
|
|
1547
|
+
profilePictureThumbnail: true;
|
|
1548
|
+
};
|
|
1549
|
+
compute(profile: {
|
|
1550
|
+
profilePictureThumbnail: string | null;
|
|
1551
|
+
}): string | null;
|
|
1552
|
+
};
|
|
1553
|
+
};
|
|
1554
|
+
};
|
|
1555
|
+
model: {};
|
|
1556
|
+
query: {};
|
|
1557
|
+
client: {};
|
|
1558
|
+
}, {}>, "Assignment", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
1373
1559
|
section: {
|
|
1374
|
-
name: string;
|
|
1375
1560
|
id: string;
|
|
1561
|
+
name: string;
|
|
1376
1562
|
} | null;
|
|
1377
|
-
teacher: {
|
|
1378
|
-
id: string;
|
|
1379
|
-
username: string;
|
|
1380
|
-
};
|
|
1381
1563
|
attachments: {
|
|
1382
1564
|
type: string;
|
|
1383
|
-
name: string;
|
|
1384
1565
|
id: string;
|
|
1566
|
+
name: string;
|
|
1385
1567
|
}[];
|
|
1568
|
+
teacher: {
|
|
1569
|
+
id: string;
|
|
1570
|
+
username: string;
|
|
1571
|
+
};
|
|
1386
1572
|
eventAttached: {
|
|
1387
|
-
name: string | null;
|
|
1388
1573
|
id: string;
|
|
1574
|
+
name: string | null;
|
|
1389
1575
|
color: string | null;
|
|
1390
1576
|
startTime: Date;
|
|
1391
1577
|
endTime: Date;
|
|
@@ -1395,10 +1581,12 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
|
|
|
1395
1581
|
id: string;
|
|
1396
1582
|
createdAt: Date | null;
|
|
1397
1583
|
classId: string;
|
|
1398
|
-
modifiedAt: Date | null;
|
|
1399
1584
|
title: string;
|
|
1400
|
-
instructions: string;
|
|
1401
1585
|
dueDate: Date;
|
|
1586
|
+
maxGrade: number | null;
|
|
1587
|
+
eventId: string | null;
|
|
1588
|
+
instructions: string;
|
|
1589
|
+
modifiedAt: Date | null;
|
|
1402
1590
|
teacherId: string;
|
|
1403
1591
|
acceptFiles: boolean;
|
|
1404
1592
|
acceptExtendedResponse: boolean;
|
|
@@ -1407,39 +1595,55 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
|
|
|
1407
1595
|
aiPolicyLevel: number;
|
|
1408
1596
|
sectionId: string | null;
|
|
1409
1597
|
graded: boolean;
|
|
1410
|
-
maxGrade: number | null;
|
|
1411
1598
|
weight: number;
|
|
1412
1599
|
inProgress: boolean;
|
|
1413
1600
|
template: boolean;
|
|
1414
|
-
eventId: string | null;
|
|
1415
1601
|
markSchemeId: string | null;
|
|
1416
1602
|
order: number | null;
|
|
1417
1603
|
gradingBoundaryId: string | null;
|
|
1418
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
1419
|
-
datasources: {
|
|
1420
|
-
db: {
|
|
1421
|
-
url: string;
|
|
1422
|
-
};
|
|
1423
|
-
};
|
|
1424
1604
|
}>;
|
|
1425
1605
|
/** Detach assignment from event. */
|
|
1426
|
-
export declare function detachAssignmentFromEvent(assignmentId: string): import(".prisma/client").Prisma.
|
|
1606
|
+
export declare function detachAssignmentFromEvent(assignmentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
1607
|
+
result: {
|
|
1608
|
+
userProfile: {
|
|
1609
|
+
profilePicture: () => {
|
|
1610
|
+
needs: {
|
|
1611
|
+
profilePicture: true;
|
|
1612
|
+
};
|
|
1613
|
+
compute(profile: {
|
|
1614
|
+
profilePicture: string | null;
|
|
1615
|
+
}): string | null;
|
|
1616
|
+
};
|
|
1617
|
+
profilePictureThumbnail: () => {
|
|
1618
|
+
needs: {
|
|
1619
|
+
profilePictureThumbnail: true;
|
|
1620
|
+
};
|
|
1621
|
+
compute(profile: {
|
|
1622
|
+
profilePictureThumbnail: string | null;
|
|
1623
|
+
}): string | null;
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
};
|
|
1627
|
+
model: {};
|
|
1628
|
+
query: {};
|
|
1629
|
+
client: {};
|
|
1630
|
+
}, {}>, "Assignment", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
1427
1631
|
section: {
|
|
1428
|
-
name: string;
|
|
1429
1632
|
id: string;
|
|
1633
|
+
name: string;
|
|
1430
1634
|
} | null;
|
|
1431
|
-
teacher: {
|
|
1432
|
-
id: string;
|
|
1433
|
-
username: string;
|
|
1434
|
-
};
|
|
1435
1635
|
attachments: {
|
|
1436
1636
|
type: string;
|
|
1437
|
-
name: string;
|
|
1438
1637
|
id: string;
|
|
1638
|
+
name: string;
|
|
1439
1639
|
}[];
|
|
1640
|
+
teacher: {
|
|
1641
|
+
id: string;
|
|
1642
|
+
username: string;
|
|
1643
|
+
};
|
|
1440
1644
|
eventAttached: {
|
|
1441
|
-
name: string | null;
|
|
1442
1645
|
id: string;
|
|
1646
|
+
name: string | null;
|
|
1443
1647
|
color: string | null;
|
|
1444
1648
|
startTime: Date;
|
|
1445
1649
|
endTime: Date;
|
|
@@ -1449,10 +1653,12 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
|
|
|
1449
1653
|
id: string;
|
|
1450
1654
|
createdAt: Date | null;
|
|
1451
1655
|
classId: string;
|
|
1452
|
-
modifiedAt: Date | null;
|
|
1453
1656
|
title: string;
|
|
1454
|
-
instructions: string;
|
|
1455
1657
|
dueDate: Date;
|
|
1658
|
+
maxGrade: number | null;
|
|
1659
|
+
eventId: string | null;
|
|
1660
|
+
instructions: string;
|
|
1661
|
+
modifiedAt: Date | null;
|
|
1456
1662
|
teacherId: string;
|
|
1457
1663
|
acceptFiles: boolean;
|
|
1458
1664
|
acceptExtendedResponse: boolean;
|
|
@@ -1461,19 +1667,11 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
|
|
|
1461
1667
|
aiPolicyLevel: number;
|
|
1462
1668
|
sectionId: string | null;
|
|
1463
1669
|
graded: boolean;
|
|
1464
|
-
maxGrade: number | null;
|
|
1465
1670
|
weight: number;
|
|
1466
1671
|
inProgress: boolean;
|
|
1467
1672
|
template: boolean;
|
|
1468
|
-
eventId: string | null;
|
|
1469
1673
|
markSchemeId: string | null;
|
|
1470
1674
|
order: number | null;
|
|
1471
1675
|
gradingBoundaryId: string | null;
|
|
1472
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
1473
|
-
datasources: {
|
|
1474
|
-
db: {
|
|
1475
|
-
url: string;
|
|
1476
|
-
};
|
|
1477
|
-
};
|
|
1478
1676
|
}>;
|
|
1479
1677
|
//# sourceMappingURL=assignment.d.ts.map
|