@studious-lms/server 1.13.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 -198
- 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 +267 -115
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/conversation.d.ts +199 -73
- 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 +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 +1020 -411
- 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 +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/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 +2203 -1957
- 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 -32
- package/dist/routers/assignment.d.ts +335 -335
- package/dist/routers/attendance.d.ts +10 -10
- package/dist/routers/auth.d.ts +2 -2
- package/dist/routers/class.d.ts +147 -147
- package/dist/routers/comment.d.ts +22 -22
- 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 +95 -57
- 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 +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 +28 -9
- 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 +138 -138
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +19 -3
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +22 -22
- package/dist/services/conversation.d.ts +17 -17
- 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 +60 -48
- 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 +38 -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 +3 -2
- package/src/models/worksheet.ts +5 -2
- package/src/pipelines/aiLabChat.ts +54 -79
- package/src/pipelines/aiLabChatContract.ts +69 -69
- package/src/pipelines/aiNewtonChat.ts +46 -43
- package/src/pipelines/labChatPrompt.ts +63 -88
- package/src/routers/_app.ts +2 -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 +27 -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 +28 -7
- package/src/services/class.ts +20 -1
- 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 +9 -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/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
|
@@ -2,27 +2,35 @@ export declare function assignmentExists(id: string): Promise<boolean>;
|
|
|
2
2
|
export declare function getDueToday(): Promise<{
|
|
3
3
|
dueDate: string;
|
|
4
4
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
5
|
-
id: string;
|
|
6
5
|
class: {
|
|
7
|
-
name: string;
|
|
8
6
|
id: string;
|
|
7
|
+
name: string;
|
|
9
8
|
};
|
|
9
|
+
id: string;
|
|
10
10
|
title: string;
|
|
11
|
-
graded: boolean;
|
|
12
11
|
maxGrade: number | null;
|
|
12
|
+
graded: boolean;
|
|
13
13
|
}[]>;
|
|
14
14
|
export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
15
15
|
sections: {
|
|
16
|
-
name: string;
|
|
17
16
|
id: string;
|
|
17
|
+
name: string;
|
|
18
18
|
}[];
|
|
19
19
|
class: {
|
|
20
|
-
name: string;
|
|
21
20
|
id: string;
|
|
21
|
+
name: string;
|
|
22
22
|
};
|
|
23
|
+
markScheme: {
|
|
24
|
+
id: string;
|
|
25
|
+
structured: string;
|
|
26
|
+
} | null;
|
|
27
|
+
gradingBoundary: {
|
|
28
|
+
id: string;
|
|
29
|
+
structured: string;
|
|
30
|
+
} | null;
|
|
23
31
|
section: {
|
|
24
|
-
name: string;
|
|
25
32
|
id: string;
|
|
33
|
+
name: string;
|
|
26
34
|
} | null;
|
|
27
35
|
submissions: {
|
|
28
36
|
student: {
|
|
@@ -30,17 +38,9 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
|
30
38
|
username: string;
|
|
31
39
|
};
|
|
32
40
|
}[];
|
|
33
|
-
markScheme: {
|
|
34
|
-
id: string;
|
|
35
|
-
structured: string;
|
|
36
|
-
} | null;
|
|
37
|
-
gradingBoundary: {
|
|
38
|
-
id: string;
|
|
39
|
-
structured: string;
|
|
40
|
-
} | null;
|
|
41
41
|
worksheets: {
|
|
42
|
-
name: string;
|
|
43
42
|
id: string;
|
|
43
|
+
name: string;
|
|
44
44
|
}[];
|
|
45
45
|
teacher: {
|
|
46
46
|
id: string;
|
|
@@ -49,29 +49,31 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
|
49
49
|
attachments: {
|
|
50
50
|
path: string;
|
|
51
51
|
type: string;
|
|
52
|
-
name: string;
|
|
53
52
|
id: string;
|
|
53
|
+
name: string;
|
|
54
54
|
size: number | null;
|
|
55
55
|
uploadedAt: Date | null;
|
|
56
56
|
thumbnailId: string | null;
|
|
57
57
|
}[];
|
|
58
58
|
eventAttached: {
|
|
59
|
-
name: string | null;
|
|
60
59
|
id: string;
|
|
60
|
+
location: string | null;
|
|
61
|
+
name: string | null;
|
|
61
62
|
color: string | null;
|
|
62
63
|
startTime: Date;
|
|
63
64
|
endTime: Date;
|
|
64
|
-
location: string | null;
|
|
65
65
|
remarks: string | null;
|
|
66
66
|
} | null;
|
|
67
67
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: Date | null;
|
|
70
70
|
classId: string;
|
|
71
|
-
modifiedAt: Date | null;
|
|
72
71
|
title: string;
|
|
73
|
-
instructions: string;
|
|
74
72
|
dueDate: Date;
|
|
73
|
+
maxGrade: number | null;
|
|
74
|
+
eventId: string | null;
|
|
75
|
+
instructions: string;
|
|
76
|
+
modifiedAt: Date | null;
|
|
75
77
|
teacherId: string;
|
|
76
78
|
acceptFiles: boolean;
|
|
77
79
|
acceptExtendedResponse: boolean;
|
|
@@ -80,11 +82,9 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
|
80
82
|
aiPolicyLevel: number;
|
|
81
83
|
sectionId: string | null;
|
|
82
84
|
graded: boolean;
|
|
83
|
-
maxGrade: number | null;
|
|
84
85
|
weight: number;
|
|
85
86
|
inProgress: boolean;
|
|
86
87
|
template: boolean;
|
|
87
|
-
eventId: string | null;
|
|
88
88
|
markSchemeId: string | null;
|
|
89
89
|
order: number | null;
|
|
90
90
|
gradingBoundaryId: string | null;
|
|
@@ -93,12 +93,12 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
93
93
|
late: boolean;
|
|
94
94
|
assignment: {
|
|
95
95
|
class: {
|
|
96
|
-
|
|
96
|
+
section: string;
|
|
97
97
|
id: string;
|
|
98
|
+
name: string;
|
|
98
99
|
schoolId: string | null;
|
|
99
|
-
subject: string;
|
|
100
100
|
color: string | null;
|
|
101
|
-
|
|
101
|
+
subject: string;
|
|
102
102
|
syllabus: string | null;
|
|
103
103
|
departmentId: string | null;
|
|
104
104
|
discussionsEnabled: boolean;
|
|
@@ -114,18 +114,20 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
114
114
|
structured: string;
|
|
115
115
|
} | null;
|
|
116
116
|
worksheets: {
|
|
117
|
-
name: string;
|
|
118
117
|
id: string;
|
|
118
|
+
name: string;
|
|
119
119
|
}[];
|
|
120
120
|
} & {
|
|
121
121
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
122
122
|
id: string;
|
|
123
123
|
createdAt: Date | null;
|
|
124
124
|
classId: string;
|
|
125
|
-
modifiedAt: Date | null;
|
|
126
125
|
title: string;
|
|
127
|
-
instructions: string;
|
|
128
126
|
dueDate: Date;
|
|
127
|
+
maxGrade: number | null;
|
|
128
|
+
eventId: string | null;
|
|
129
|
+
instructions: string;
|
|
130
|
+
modifiedAt: Date | null;
|
|
129
131
|
teacherId: string;
|
|
130
132
|
acceptFiles: boolean;
|
|
131
133
|
acceptExtendedResponse: boolean;
|
|
@@ -134,24 +136,25 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
134
136
|
aiPolicyLevel: number;
|
|
135
137
|
sectionId: string | null;
|
|
136
138
|
graded: boolean;
|
|
137
|
-
maxGrade: number | null;
|
|
138
139
|
weight: number;
|
|
139
140
|
inProgress: boolean;
|
|
140
141
|
template: boolean;
|
|
141
|
-
eventId: string | null;
|
|
142
142
|
markSchemeId: string | null;
|
|
143
143
|
order: number | null;
|
|
144
144
|
gradingBoundaryId: string | null;
|
|
145
145
|
};
|
|
146
|
-
|
|
146
|
+
attachments: {
|
|
147
147
|
path: string;
|
|
148
148
|
type: string;
|
|
149
|
-
name: string;
|
|
150
149
|
id: string;
|
|
151
150
|
userId: string | null;
|
|
152
|
-
|
|
151
|
+
name: string;
|
|
153
152
|
size: number | null;
|
|
154
153
|
uploadedAt: Date | null;
|
|
154
|
+
assignmentId: string | null;
|
|
155
|
+
submissionId: string | null;
|
|
156
|
+
thumbnailId: string | null;
|
|
157
|
+
annotationId: string | null;
|
|
155
158
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
156
159
|
uploadUrl: string | null;
|
|
157
160
|
uploadExpiresAt: Date | null;
|
|
@@ -161,11 +164,8 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
161
164
|
uploadRetryCount: number;
|
|
162
165
|
isOrphaned: boolean;
|
|
163
166
|
cleanupAt: Date | null;
|
|
164
|
-
thumbnailId: string | null;
|
|
165
|
-
assignmentId: string | null;
|
|
166
|
-
submissionId: string | null;
|
|
167
|
-
annotationId: string | null;
|
|
168
167
|
classDraftId: string | null;
|
|
168
|
+
folderId: string | null;
|
|
169
169
|
conversationId: string | null;
|
|
170
170
|
messageId: string | null;
|
|
171
171
|
announcementId: string | null;
|
|
@@ -173,15 +173,22 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
173
173
|
discussionReplyId: string | null;
|
|
174
174
|
schoolDevelopementProgramId: string | null;
|
|
175
175
|
}[];
|
|
176
|
-
|
|
176
|
+
student: {
|
|
177
|
+
id: string;
|
|
178
|
+
username: string;
|
|
179
|
+
};
|
|
180
|
+
annotations: {
|
|
177
181
|
path: string;
|
|
178
182
|
type: string;
|
|
179
|
-
name: string;
|
|
180
183
|
id: string;
|
|
181
184
|
userId: string | null;
|
|
182
|
-
|
|
185
|
+
name: string;
|
|
183
186
|
size: number | null;
|
|
184
187
|
uploadedAt: Date | null;
|
|
188
|
+
assignmentId: string | null;
|
|
189
|
+
submissionId: string | null;
|
|
190
|
+
thumbnailId: string | null;
|
|
191
|
+
annotationId: string | null;
|
|
185
192
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
186
193
|
uploadUrl: string | null;
|
|
187
194
|
uploadExpiresAt: Date | null;
|
|
@@ -191,11 +198,8 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
191
198
|
uploadRetryCount: number;
|
|
192
199
|
isOrphaned: boolean;
|
|
193
200
|
cleanupAt: Date | null;
|
|
194
|
-
thumbnailId: string | null;
|
|
195
|
-
assignmentId: string | null;
|
|
196
|
-
submissionId: string | null;
|
|
197
|
-
annotationId: string | null;
|
|
198
201
|
classDraftId: string | null;
|
|
202
|
+
folderId: string | null;
|
|
199
203
|
conversationId: string | null;
|
|
200
204
|
messageId: string | null;
|
|
201
205
|
announcementId: string | null;
|
|
@@ -203,10 +207,6 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
203
207
|
discussionReplyId: string | null;
|
|
204
208
|
schoolDevelopementProgramId: string | null;
|
|
205
209
|
}[];
|
|
206
|
-
student: {
|
|
207
|
-
id: string;
|
|
208
|
-
username: string;
|
|
209
|
-
};
|
|
210
210
|
id: string;
|
|
211
211
|
createdAt: Date;
|
|
212
212
|
assignmentId: string;
|
|
@@ -227,12 +227,12 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
227
227
|
late: boolean;
|
|
228
228
|
assignment: {
|
|
229
229
|
class: {
|
|
230
|
-
|
|
230
|
+
section: string;
|
|
231
231
|
id: string;
|
|
232
|
+
name: string;
|
|
232
233
|
schoolId: string | null;
|
|
233
|
-
subject: string;
|
|
234
234
|
color: string | null;
|
|
235
|
-
|
|
235
|
+
subject: string;
|
|
236
236
|
syllabus: string | null;
|
|
237
237
|
departmentId: string | null;
|
|
238
238
|
discussionsEnabled: boolean;
|
|
@@ -248,18 +248,20 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
248
248
|
structured: string;
|
|
249
249
|
} | null;
|
|
250
250
|
worksheets: {
|
|
251
|
-
name: string;
|
|
252
251
|
id: string;
|
|
252
|
+
name: string;
|
|
253
253
|
}[];
|
|
254
254
|
} & {
|
|
255
255
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
256
256
|
id: string;
|
|
257
257
|
createdAt: Date | null;
|
|
258
258
|
classId: string;
|
|
259
|
-
modifiedAt: Date | null;
|
|
260
259
|
title: string;
|
|
261
|
-
instructions: string;
|
|
262
260
|
dueDate: Date;
|
|
261
|
+
maxGrade: number | null;
|
|
262
|
+
eventId: string | null;
|
|
263
|
+
instructions: string;
|
|
264
|
+
modifiedAt: Date | null;
|
|
263
265
|
teacherId: string;
|
|
264
266
|
acceptFiles: boolean;
|
|
265
267
|
acceptExtendedResponse: boolean;
|
|
@@ -268,24 +270,25 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
268
270
|
aiPolicyLevel: number;
|
|
269
271
|
sectionId: string | null;
|
|
270
272
|
graded: boolean;
|
|
271
|
-
maxGrade: number | null;
|
|
272
273
|
weight: number;
|
|
273
274
|
inProgress: boolean;
|
|
274
275
|
template: boolean;
|
|
275
|
-
eventId: string | null;
|
|
276
276
|
markSchemeId: string | null;
|
|
277
277
|
order: number | null;
|
|
278
278
|
gradingBoundaryId: string | null;
|
|
279
279
|
};
|
|
280
|
-
|
|
280
|
+
attachments: {
|
|
281
281
|
path: string;
|
|
282
282
|
type: string;
|
|
283
|
-
name: string;
|
|
284
283
|
id: string;
|
|
285
284
|
userId: string | null;
|
|
286
|
-
|
|
285
|
+
name: string;
|
|
287
286
|
size: number | null;
|
|
288
287
|
uploadedAt: Date | null;
|
|
288
|
+
assignmentId: string | null;
|
|
289
|
+
submissionId: string | null;
|
|
290
|
+
thumbnailId: string | null;
|
|
291
|
+
annotationId: string | null;
|
|
289
292
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
290
293
|
uploadUrl: string | null;
|
|
291
294
|
uploadExpiresAt: Date | null;
|
|
@@ -295,11 +298,8 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
295
298
|
uploadRetryCount: number;
|
|
296
299
|
isOrphaned: boolean;
|
|
297
300
|
cleanupAt: Date | null;
|
|
298
|
-
thumbnailId: string | null;
|
|
299
|
-
assignmentId: string | null;
|
|
300
|
-
submissionId: string | null;
|
|
301
|
-
annotationId: string | null;
|
|
302
301
|
classDraftId: string | null;
|
|
302
|
+
folderId: string | null;
|
|
303
303
|
conversationId: string | null;
|
|
304
304
|
messageId: string | null;
|
|
305
305
|
announcementId: string | null;
|
|
@@ -307,15 +307,34 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
307
307
|
discussionReplyId: string | null;
|
|
308
308
|
schoolDevelopementProgramId: string | null;
|
|
309
309
|
}[];
|
|
310
|
-
|
|
310
|
+
student: {
|
|
311
|
+
id: string;
|
|
312
|
+
username: string;
|
|
313
|
+
profile: {
|
|
314
|
+
id: string;
|
|
315
|
+
userId: string;
|
|
316
|
+
displayName: string | null;
|
|
317
|
+
bio: string | null;
|
|
318
|
+
location: string | null;
|
|
319
|
+
website: string | null;
|
|
320
|
+
createdAt: Date;
|
|
321
|
+
updatedAt: Date;
|
|
322
|
+
profilePicture: string | null;
|
|
323
|
+
profilePictureThumbnail: string | null;
|
|
324
|
+
} | null;
|
|
325
|
+
};
|
|
326
|
+
annotations: {
|
|
311
327
|
path: string;
|
|
312
328
|
type: string;
|
|
313
|
-
name: string;
|
|
314
329
|
id: string;
|
|
315
330
|
userId: string | null;
|
|
316
|
-
|
|
331
|
+
name: string;
|
|
317
332
|
size: number | null;
|
|
318
333
|
uploadedAt: Date | null;
|
|
334
|
+
assignmentId: string | null;
|
|
335
|
+
submissionId: string | null;
|
|
336
|
+
thumbnailId: string | null;
|
|
337
|
+
annotationId: string | null;
|
|
319
338
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
320
339
|
uploadUrl: string | null;
|
|
321
340
|
uploadExpiresAt: Date | null;
|
|
@@ -325,11 +344,8 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
325
344
|
uploadRetryCount: number;
|
|
326
345
|
isOrphaned: boolean;
|
|
327
346
|
cleanupAt: Date | null;
|
|
328
|
-
thumbnailId: string | null;
|
|
329
|
-
assignmentId: string | null;
|
|
330
|
-
submissionId: string | null;
|
|
331
|
-
annotationId: string | null;
|
|
332
347
|
classDraftId: string | null;
|
|
348
|
+
folderId: string | null;
|
|
333
349
|
conversationId: string | null;
|
|
334
350
|
messageId: string | null;
|
|
335
351
|
announcementId: string | null;
|
|
@@ -337,22 +353,6 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
337
353
|
discussionReplyId: string | null;
|
|
338
354
|
schoolDevelopementProgramId: string | null;
|
|
339
355
|
}[];
|
|
340
|
-
student: {
|
|
341
|
-
id: string;
|
|
342
|
-
username: string;
|
|
343
|
-
profile: {
|
|
344
|
-
id: string;
|
|
345
|
-
createdAt: Date;
|
|
346
|
-
updatedAt: Date;
|
|
347
|
-
userId: string;
|
|
348
|
-
location: string | null;
|
|
349
|
-
displayName: string | null;
|
|
350
|
-
bio: string | null;
|
|
351
|
-
website: string | null;
|
|
352
|
-
profilePicture: string | null;
|
|
353
|
-
profilePictureThumbnail: string | null;
|
|
354
|
-
} | null;
|
|
355
|
-
};
|
|
356
356
|
id: string;
|
|
357
357
|
createdAt: Date;
|
|
358
358
|
assignmentId: string;
|
|
@@ -373,12 +373,12 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
373
373
|
late: boolean;
|
|
374
374
|
assignment: {
|
|
375
375
|
class: {
|
|
376
|
-
|
|
376
|
+
section: string;
|
|
377
377
|
id: string;
|
|
378
|
+
name: string;
|
|
378
379
|
schoolId: string | null;
|
|
379
|
-
subject: string;
|
|
380
380
|
color: string | null;
|
|
381
|
-
|
|
381
|
+
subject: string;
|
|
382
382
|
syllabus: string | null;
|
|
383
383
|
departmentId: string | null;
|
|
384
384
|
discussionsEnabled: boolean;
|
|
@@ -398,10 +398,12 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
398
398
|
id: string;
|
|
399
399
|
createdAt: Date | null;
|
|
400
400
|
classId: string;
|
|
401
|
-
modifiedAt: Date | null;
|
|
402
401
|
title: string;
|
|
403
|
-
instructions: string;
|
|
404
402
|
dueDate: Date;
|
|
403
|
+
maxGrade: number | null;
|
|
404
|
+
eventId: string | null;
|
|
405
|
+
instructions: string;
|
|
406
|
+
modifiedAt: Date | null;
|
|
405
407
|
teacherId: string;
|
|
406
408
|
acceptFiles: boolean;
|
|
407
409
|
acceptExtendedResponse: boolean;
|
|
@@ -410,11 +412,9 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
410
412
|
aiPolicyLevel: number;
|
|
411
413
|
sectionId: string | null;
|
|
412
414
|
graded: boolean;
|
|
413
|
-
maxGrade: number | null;
|
|
414
415
|
weight: number;
|
|
415
416
|
inProgress: boolean;
|
|
416
417
|
template: boolean;
|
|
417
|
-
eventId: string | null;
|
|
418
418
|
markSchemeId: string | null;
|
|
419
419
|
order: number | null;
|
|
420
420
|
gradingBoundaryId: string | null;
|
|
@@ -423,12 +423,15 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
423
423
|
thumbnail: {
|
|
424
424
|
path: string;
|
|
425
425
|
type: string;
|
|
426
|
-
name: string;
|
|
427
426
|
id: string;
|
|
428
427
|
userId: string | null;
|
|
429
|
-
|
|
428
|
+
name: string;
|
|
430
429
|
size: number | null;
|
|
431
430
|
uploadedAt: Date | null;
|
|
431
|
+
assignmentId: string | null;
|
|
432
|
+
submissionId: string | null;
|
|
433
|
+
thumbnailId: string | null;
|
|
434
|
+
annotationId: string | null;
|
|
432
435
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
433
436
|
uploadUrl: string | null;
|
|
434
437
|
uploadExpiresAt: Date | null;
|
|
@@ -438,11 +441,8 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
438
441
|
uploadRetryCount: number;
|
|
439
442
|
isOrphaned: boolean;
|
|
440
443
|
cleanupAt: Date | null;
|
|
441
|
-
thumbnailId: string | null;
|
|
442
|
-
assignmentId: string | null;
|
|
443
|
-
submissionId: string | null;
|
|
444
|
-
annotationId: string | null;
|
|
445
444
|
classDraftId: string | null;
|
|
445
|
+
folderId: string | null;
|
|
446
446
|
conversationId: string | null;
|
|
447
447
|
messageId: string | null;
|
|
448
448
|
announcementId: string | null;
|
|
@@ -453,12 +453,15 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
453
453
|
} & {
|
|
454
454
|
path: string;
|
|
455
455
|
type: string;
|
|
456
|
-
name: string;
|
|
457
456
|
id: string;
|
|
458
457
|
userId: string | null;
|
|
459
|
-
|
|
458
|
+
name: string;
|
|
460
459
|
size: number | null;
|
|
461
460
|
uploadedAt: Date | null;
|
|
461
|
+
assignmentId: string | null;
|
|
462
|
+
submissionId: string | null;
|
|
463
|
+
thumbnailId: string | null;
|
|
464
|
+
annotationId: string | null;
|
|
462
465
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
463
466
|
uploadUrl: string | null;
|
|
464
467
|
uploadExpiresAt: Date | null;
|
|
@@ -468,11 +471,8 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
468
471
|
uploadRetryCount: number;
|
|
469
472
|
isOrphaned: boolean;
|
|
470
473
|
cleanupAt: Date | null;
|
|
471
|
-
thumbnailId: string | null;
|
|
472
|
-
assignmentId: string | null;
|
|
473
|
-
submissionId: string | null;
|
|
474
|
-
annotationId: string | null;
|
|
475
474
|
classDraftId: string | null;
|
|
475
|
+
folderId: string | null;
|
|
476
476
|
conversationId: string | null;
|
|
477
477
|
messageId: string | null;
|
|
478
478
|
announcementId: string | null;
|
|
@@ -484,8 +484,8 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
484
484
|
id: string;
|
|
485
485
|
username: string;
|
|
486
486
|
profile: {
|
|
487
|
-
displayName: string | null;
|
|
488
487
|
profilePicture: string | null;
|
|
488
|
+
displayName: string | null;
|
|
489
489
|
profilePictureThumbnail: string | null;
|
|
490
490
|
} | null;
|
|
491
491
|
};
|
|
@@ -535,20 +535,20 @@ export declare function createAssignmentRecord(userId: string, input: {
|
|
|
535
535
|
sourceAssignmentId?: string;
|
|
536
536
|
}): Promise<{
|
|
537
537
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
538
|
-
id: string;
|
|
539
538
|
class: {
|
|
540
|
-
name: string;
|
|
541
539
|
id: string;
|
|
540
|
+
name: string;
|
|
542
541
|
};
|
|
543
542
|
section: {
|
|
544
|
-
name: string;
|
|
545
543
|
id: string;
|
|
544
|
+
name: string;
|
|
546
545
|
} | null;
|
|
546
|
+
id: string;
|
|
547
547
|
title: string;
|
|
548
|
-
instructions: string;
|
|
549
548
|
dueDate: Date;
|
|
550
|
-
graded: boolean;
|
|
551
549
|
maxGrade: number | null;
|
|
550
|
+
instructions: string;
|
|
551
|
+
graded: boolean;
|
|
552
552
|
weight: number;
|
|
553
553
|
teacher: {
|
|
554
554
|
id: string;
|
|
@@ -556,8 +556,8 @@ export declare function createAssignmentRecord(userId: string, input: {
|
|
|
556
556
|
};
|
|
557
557
|
attachments: {
|
|
558
558
|
type: string;
|
|
559
|
-
name: string;
|
|
560
559
|
id: string;
|
|
560
|
+
name: string;
|
|
561
561
|
}[];
|
|
562
562
|
}>;
|
|
563
563
|
/**
|
|
@@ -569,10 +569,12 @@ export declare function duplicateAssignmentRecord(assignmentId: string, classId:
|
|
|
569
569
|
id: string;
|
|
570
570
|
createdAt: Date | null;
|
|
571
571
|
classId: string;
|
|
572
|
-
modifiedAt: Date | null;
|
|
573
572
|
title: string;
|
|
574
|
-
instructions: string;
|
|
575
573
|
dueDate: Date;
|
|
574
|
+
maxGrade: number | null;
|
|
575
|
+
eventId: string | null;
|
|
576
|
+
instructions: string;
|
|
577
|
+
modifiedAt: Date | null;
|
|
576
578
|
teacherId: string;
|
|
577
579
|
acceptFiles: boolean;
|
|
578
580
|
acceptExtendedResponse: boolean;
|
|
@@ -581,11 +583,9 @@ export declare function duplicateAssignmentRecord(assignmentId: string, classId:
|
|
|
581
583
|
aiPolicyLevel: number;
|
|
582
584
|
sectionId: string | null;
|
|
583
585
|
graded: boolean;
|
|
584
|
-
maxGrade: number | null;
|
|
585
586
|
weight: number;
|
|
586
587
|
inProgress: boolean;
|
|
587
588
|
template: boolean;
|
|
588
|
-
eventId: string | null;
|
|
589
589
|
markSchemeId: string | null;
|
|
590
590
|
order: number | null;
|
|
591
591
|
gradingBoundaryId: string | null;
|
|
@@ -618,15 +618,13 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
618
618
|
studentIds?: string[];
|
|
619
619
|
}): Promise<{
|
|
620
620
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
621
|
-
id: string;
|
|
622
|
-
createdAt: Date | null;
|
|
623
621
|
class: {
|
|
624
|
-
|
|
622
|
+
section: string;
|
|
625
623
|
id: string;
|
|
624
|
+
name: string;
|
|
626
625
|
schoolId: string | null;
|
|
627
|
-
subject: string;
|
|
628
626
|
color: string | null;
|
|
629
|
-
|
|
627
|
+
subject: string;
|
|
630
628
|
syllabus: string | null;
|
|
631
629
|
departmentId: string | null;
|
|
632
630
|
discussionsEnabled: boolean;
|
|
@@ -634,12 +632,14 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
634
632
|
studentsCanReply: boolean;
|
|
635
633
|
};
|
|
636
634
|
section: {
|
|
637
|
-
name: string;
|
|
638
635
|
id: string;
|
|
636
|
+
name: string;
|
|
639
637
|
color: string | null;
|
|
640
638
|
classId: string;
|
|
641
639
|
order: number | null;
|
|
642
640
|
} | null;
|
|
641
|
+
id: string;
|
|
642
|
+
createdAt: Date | null;
|
|
643
643
|
submissions: {
|
|
644
644
|
student: {
|
|
645
645
|
id: string;
|
|
@@ -647,10 +647,10 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
647
647
|
};
|
|
648
648
|
}[];
|
|
649
649
|
title: string;
|
|
650
|
-
instructions: string;
|
|
651
650
|
dueDate: Date;
|
|
652
|
-
graded: boolean;
|
|
653
651
|
maxGrade: number | null;
|
|
652
|
+
instructions: string;
|
|
653
|
+
graded: boolean;
|
|
654
654
|
weight: number;
|
|
655
655
|
markSchemeId: string | null;
|
|
656
656
|
teacher: {
|
|
@@ -664,22 +664,24 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
664
664
|
attachments: {
|
|
665
665
|
path: string;
|
|
666
666
|
type: string;
|
|
667
|
-
name: string;
|
|
668
667
|
id: string;
|
|
668
|
+
name: string;
|
|
669
669
|
size: number | null;
|
|
670
670
|
uploadedAt: Date | null;
|
|
671
|
-
thumbnailId: string | null;
|
|
672
671
|
thumbnail: {
|
|
673
672
|
path: string;
|
|
674
673
|
type: string;
|
|
675
|
-
name: string;
|
|
676
674
|
id: string;
|
|
677
675
|
userId: string | null;
|
|
678
|
-
|
|
676
|
+
name: string;
|
|
679
677
|
size: number | null;
|
|
680
678
|
uploadedAt: Date | null;
|
|
681
|
-
|
|
682
|
-
|
|
679
|
+
assignmentId: string | null;
|
|
680
|
+
submissionId: string | null;
|
|
681
|
+
thumbnailId: string | null;
|
|
682
|
+
annotationId: string | null;
|
|
683
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
684
|
+
uploadUrl: string | null;
|
|
683
685
|
uploadExpiresAt: Date | null;
|
|
684
686
|
uploadSessionId: string | null;
|
|
685
687
|
uploadProgress: number | null;
|
|
@@ -687,11 +689,8 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
687
689
|
uploadRetryCount: number;
|
|
688
690
|
isOrphaned: boolean;
|
|
689
691
|
cleanupAt: Date | null;
|
|
690
|
-
thumbnailId: string | null;
|
|
691
|
-
assignmentId: string | null;
|
|
692
|
-
submissionId: string | null;
|
|
693
|
-
annotationId: string | null;
|
|
694
692
|
classDraftId: string | null;
|
|
693
|
+
folderId: string | null;
|
|
695
694
|
conversationId: string | null;
|
|
696
695
|
messageId: string | null;
|
|
697
696
|
announcementId: string | null;
|
|
@@ -699,6 +698,7 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
699
698
|
discussionReplyId: string | null;
|
|
700
699
|
schoolDevelopementProgramId: string | null;
|
|
701
700
|
} | null;
|
|
701
|
+
thumbnailId: string | null;
|
|
702
702
|
}[];
|
|
703
703
|
}>;
|
|
704
704
|
export declare function deleteAssignmentRecord(userId: string, id: string, _classId: string): Promise<{
|
|
@@ -720,12 +720,12 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
720
720
|
}): Promise<{
|
|
721
721
|
assignment: {
|
|
722
722
|
class: {
|
|
723
|
-
|
|
723
|
+
section: string;
|
|
724
724
|
id: string;
|
|
725
|
+
name: string;
|
|
725
726
|
schoolId: string | null;
|
|
726
|
-
subject: string;
|
|
727
727
|
color: string | null;
|
|
728
|
-
|
|
728
|
+
subject: string;
|
|
729
729
|
syllabus: string | null;
|
|
730
730
|
departmentId: string | null;
|
|
731
731
|
discussionsEnabled: boolean;
|
|
@@ -745,10 +745,12 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
745
745
|
id: string;
|
|
746
746
|
createdAt: Date | null;
|
|
747
747
|
classId: string;
|
|
748
|
-
modifiedAt: Date | null;
|
|
749
748
|
title: string;
|
|
750
|
-
instructions: string;
|
|
751
749
|
dueDate: Date;
|
|
750
|
+
maxGrade: number | null;
|
|
751
|
+
eventId: string | null;
|
|
752
|
+
instructions: string;
|
|
753
|
+
modifiedAt: Date | null;
|
|
752
754
|
teacherId: string;
|
|
753
755
|
acceptFiles: boolean;
|
|
754
756
|
acceptExtendedResponse: boolean;
|
|
@@ -757,11 +759,9 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
757
759
|
aiPolicyLevel: number;
|
|
758
760
|
sectionId: string | null;
|
|
759
761
|
graded: boolean;
|
|
760
|
-
maxGrade: number | null;
|
|
761
762
|
weight: number;
|
|
762
763
|
inProgress: boolean;
|
|
763
764
|
template: boolean;
|
|
764
|
-
eventId: string | null;
|
|
765
765
|
markSchemeId: string | null;
|
|
766
766
|
order: number | null;
|
|
767
767
|
gradingBoundaryId: string | null;
|
|
@@ -769,12 +769,15 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
769
769
|
attachments: {
|
|
770
770
|
path: string;
|
|
771
771
|
type: string;
|
|
772
|
-
name: string;
|
|
773
772
|
id: string;
|
|
774
773
|
userId: string | null;
|
|
775
|
-
|
|
774
|
+
name: string;
|
|
776
775
|
size: number | null;
|
|
777
776
|
uploadedAt: Date | null;
|
|
777
|
+
assignmentId: string | null;
|
|
778
|
+
submissionId: string | null;
|
|
779
|
+
thumbnailId: string | null;
|
|
780
|
+
annotationId: string | null;
|
|
778
781
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
779
782
|
uploadUrl: string | null;
|
|
780
783
|
uploadExpiresAt: Date | null;
|
|
@@ -784,11 +787,8 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
784
787
|
uploadRetryCount: number;
|
|
785
788
|
isOrphaned: boolean;
|
|
786
789
|
cleanupAt: Date | null;
|
|
787
|
-
thumbnailId: string | null;
|
|
788
|
-
assignmentId: string | null;
|
|
789
|
-
submissionId: string | null;
|
|
790
|
-
annotationId: string | null;
|
|
791
790
|
classDraftId: string | null;
|
|
791
|
+
folderId: string | null;
|
|
792
792
|
conversationId: string | null;
|
|
793
793
|
messageId: string | null;
|
|
794
794
|
announcementId: string | null;
|
|
@@ -840,12 +840,12 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
840
840
|
}): Promise<{
|
|
841
841
|
assignment: {
|
|
842
842
|
class: {
|
|
843
|
-
|
|
843
|
+
section: string;
|
|
844
844
|
id: string;
|
|
845
|
+
name: string;
|
|
845
846
|
schoolId: string | null;
|
|
846
|
-
subject: string;
|
|
847
847
|
color: string | null;
|
|
848
|
-
|
|
848
|
+
subject: string;
|
|
849
849
|
syllabus: string | null;
|
|
850
850
|
departmentId: string | null;
|
|
851
851
|
discussionsEnabled: boolean;
|
|
@@ -865,10 +865,12 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
865
865
|
id: string;
|
|
866
866
|
createdAt: Date | null;
|
|
867
867
|
classId: string;
|
|
868
|
-
modifiedAt: Date | null;
|
|
869
868
|
title: string;
|
|
870
|
-
instructions: string;
|
|
871
869
|
dueDate: Date;
|
|
870
|
+
maxGrade: number | null;
|
|
871
|
+
eventId: string | null;
|
|
872
|
+
instructions: string;
|
|
873
|
+
modifiedAt: Date | null;
|
|
872
874
|
teacherId: string;
|
|
873
875
|
acceptFiles: boolean;
|
|
874
876
|
acceptExtendedResponse: boolean;
|
|
@@ -877,25 +879,26 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
877
879
|
aiPolicyLevel: number;
|
|
878
880
|
sectionId: string | null;
|
|
879
881
|
graded: boolean;
|
|
880
|
-
maxGrade: number | null;
|
|
881
882
|
weight: number;
|
|
882
883
|
inProgress: boolean;
|
|
883
884
|
template: boolean;
|
|
884
|
-
eventId: string | null;
|
|
885
885
|
markSchemeId: string | null;
|
|
886
886
|
order: number | null;
|
|
887
887
|
gradingBoundaryId: string | null;
|
|
888
888
|
};
|
|
889
|
-
|
|
889
|
+
attachments: ({
|
|
890
890
|
thumbnail: {
|
|
891
891
|
path: string;
|
|
892
892
|
type: string;
|
|
893
|
-
name: string;
|
|
894
893
|
id: string;
|
|
895
894
|
userId: string | null;
|
|
896
|
-
|
|
895
|
+
name: string;
|
|
897
896
|
size: number | null;
|
|
898
897
|
uploadedAt: Date | null;
|
|
898
|
+
assignmentId: string | null;
|
|
899
|
+
submissionId: string | null;
|
|
900
|
+
thumbnailId: string | null;
|
|
901
|
+
annotationId: string | null;
|
|
899
902
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
900
903
|
uploadUrl: string | null;
|
|
901
904
|
uploadExpiresAt: Date | null;
|
|
@@ -905,11 +908,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
905
908
|
uploadRetryCount: number;
|
|
906
909
|
isOrphaned: boolean;
|
|
907
910
|
cleanupAt: Date | null;
|
|
908
|
-
thumbnailId: string | null;
|
|
909
|
-
assignmentId: string | null;
|
|
910
|
-
submissionId: string | null;
|
|
911
|
-
annotationId: string | null;
|
|
912
911
|
classDraftId: string | null;
|
|
912
|
+
folderId: string | null;
|
|
913
913
|
conversationId: string | null;
|
|
914
914
|
messageId: string | null;
|
|
915
915
|
announcementId: string | null;
|
|
@@ -920,12 +920,15 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
920
920
|
} & {
|
|
921
921
|
path: string;
|
|
922
922
|
type: string;
|
|
923
|
-
name: string;
|
|
924
923
|
id: string;
|
|
925
924
|
userId: string | null;
|
|
926
|
-
|
|
925
|
+
name: string;
|
|
927
926
|
size: number | null;
|
|
928
927
|
uploadedAt: Date | null;
|
|
928
|
+
assignmentId: string | null;
|
|
929
|
+
submissionId: string | null;
|
|
930
|
+
thumbnailId: string | null;
|
|
931
|
+
annotationId: string | null;
|
|
929
932
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
930
933
|
uploadUrl: string | null;
|
|
931
934
|
uploadExpiresAt: Date | null;
|
|
@@ -935,11 +938,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
935
938
|
uploadRetryCount: number;
|
|
936
939
|
isOrphaned: boolean;
|
|
937
940
|
cleanupAt: Date | null;
|
|
938
|
-
thumbnailId: string | null;
|
|
939
|
-
assignmentId: string | null;
|
|
940
|
-
submissionId: string | null;
|
|
941
|
-
annotationId: string | null;
|
|
942
941
|
classDraftId: string | null;
|
|
942
|
+
folderId: string | null;
|
|
943
943
|
conversationId: string | null;
|
|
944
944
|
messageId: string | null;
|
|
945
945
|
announcementId: string | null;
|
|
@@ -947,16 +947,28 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
947
947
|
discussionReplyId: string | null;
|
|
948
948
|
schoolDevelopementProgramId: string | null;
|
|
949
949
|
})[];
|
|
950
|
-
|
|
950
|
+
student: {
|
|
951
|
+
id: string;
|
|
952
|
+
username: string;
|
|
953
|
+
profile: {
|
|
954
|
+
profilePicture: string | null;
|
|
955
|
+
displayName: string | null;
|
|
956
|
+
profilePictureThumbnail: string | null;
|
|
957
|
+
} | null;
|
|
958
|
+
};
|
|
959
|
+
annotations: ({
|
|
951
960
|
thumbnail: {
|
|
952
961
|
path: string;
|
|
953
962
|
type: string;
|
|
954
|
-
name: string;
|
|
955
963
|
id: string;
|
|
956
964
|
userId: string | null;
|
|
957
|
-
|
|
965
|
+
name: string;
|
|
958
966
|
size: number | null;
|
|
959
967
|
uploadedAt: Date | null;
|
|
968
|
+
assignmentId: string | null;
|
|
969
|
+
submissionId: string | null;
|
|
970
|
+
thumbnailId: string | null;
|
|
971
|
+
annotationId: string | null;
|
|
960
972
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
961
973
|
uploadUrl: string | null;
|
|
962
974
|
uploadExpiresAt: Date | null;
|
|
@@ -966,11 +978,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
966
978
|
uploadRetryCount: number;
|
|
967
979
|
isOrphaned: boolean;
|
|
968
980
|
cleanupAt: Date | null;
|
|
969
|
-
thumbnailId: string | null;
|
|
970
|
-
assignmentId: string | null;
|
|
971
|
-
submissionId: string | null;
|
|
972
|
-
annotationId: string | null;
|
|
973
981
|
classDraftId: string | null;
|
|
982
|
+
folderId: string | null;
|
|
974
983
|
conversationId: string | null;
|
|
975
984
|
messageId: string | null;
|
|
976
985
|
announcementId: string | null;
|
|
@@ -981,12 +990,15 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
981
990
|
} & {
|
|
982
991
|
path: string;
|
|
983
992
|
type: string;
|
|
984
|
-
name: string;
|
|
985
993
|
id: string;
|
|
986
994
|
userId: string | null;
|
|
987
|
-
|
|
995
|
+
name: string;
|
|
988
996
|
size: number | null;
|
|
989
997
|
uploadedAt: Date | null;
|
|
998
|
+
assignmentId: string | null;
|
|
999
|
+
submissionId: string | null;
|
|
1000
|
+
thumbnailId: string | null;
|
|
1001
|
+
annotationId: string | null;
|
|
990
1002
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
991
1003
|
uploadUrl: string | null;
|
|
992
1004
|
uploadExpiresAt: Date | null;
|
|
@@ -996,11 +1008,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
996
1008
|
uploadRetryCount: number;
|
|
997
1009
|
isOrphaned: boolean;
|
|
998
1010
|
cleanupAt: Date | null;
|
|
999
|
-
thumbnailId: string | null;
|
|
1000
|
-
assignmentId: string | null;
|
|
1001
|
-
submissionId: string | null;
|
|
1002
|
-
annotationId: string | null;
|
|
1003
1011
|
classDraftId: string | null;
|
|
1012
|
+
folderId: string | null;
|
|
1004
1013
|
conversationId: string | null;
|
|
1005
1014
|
messageId: string | null;
|
|
1006
1015
|
announcementId: string | null;
|
|
@@ -1008,15 +1017,6 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
1008
1017
|
discussionReplyId: string | null;
|
|
1009
1018
|
schoolDevelopementProgramId: string | null;
|
|
1010
1019
|
})[];
|
|
1011
|
-
student: {
|
|
1012
|
-
id: string;
|
|
1013
|
-
username: string;
|
|
1014
|
-
profile: {
|
|
1015
|
-
displayName: string | null;
|
|
1016
|
-
profilePicture: string | null;
|
|
1017
|
-
profilePictureThumbnail: string | null;
|
|
1018
|
-
} | null;
|
|
1019
|
-
};
|
|
1020
1020
|
} & {
|
|
1021
1021
|
id: string;
|
|
1022
1022
|
createdAt: Date;
|
|
@@ -1037,8 +1037,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
1037
1037
|
export declare function attachAssignmentToEventRecord(teacherId: string, assignmentId: string, eventId: string): Promise<{
|
|
1038
1038
|
assignment: {
|
|
1039
1039
|
section: {
|
|
1040
|
-
name: string;
|
|
1041
1040
|
id: string;
|
|
1041
|
+
name: string;
|
|
1042
1042
|
} | null;
|
|
1043
1043
|
teacher: {
|
|
1044
1044
|
id: string;
|
|
@@ -1046,12 +1046,12 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
1046
1046
|
};
|
|
1047
1047
|
attachments: {
|
|
1048
1048
|
type: string;
|
|
1049
|
-
name: string;
|
|
1050
1049
|
id: string;
|
|
1050
|
+
name: string;
|
|
1051
1051
|
}[];
|
|
1052
1052
|
eventAttached: {
|
|
1053
|
-
name: string | null;
|
|
1054
1053
|
id: string;
|
|
1054
|
+
name: string | null;
|
|
1055
1055
|
color: string | null;
|
|
1056
1056
|
startTime: Date;
|
|
1057
1057
|
endTime: Date;
|
|
@@ -1061,10 +1061,12 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
1061
1061
|
id: string;
|
|
1062
1062
|
createdAt: Date | null;
|
|
1063
1063
|
classId: string;
|
|
1064
|
-
modifiedAt: Date | null;
|
|
1065
1064
|
title: string;
|
|
1066
|
-
instructions: string;
|
|
1067
1065
|
dueDate: Date;
|
|
1066
|
+
maxGrade: number | null;
|
|
1067
|
+
eventId: string | null;
|
|
1068
|
+
instructions: string;
|
|
1069
|
+
modifiedAt: Date | null;
|
|
1068
1070
|
teacherId: string;
|
|
1069
1071
|
acceptFiles: boolean;
|
|
1070
1072
|
acceptExtendedResponse: boolean;
|
|
@@ -1073,11 +1075,9 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
1073
1075
|
aiPolicyLevel: number;
|
|
1074
1076
|
sectionId: string | null;
|
|
1075
1077
|
graded: boolean;
|
|
1076
|
-
maxGrade: number | null;
|
|
1077
1078
|
weight: number;
|
|
1078
1079
|
inProgress: boolean;
|
|
1079
1080
|
template: boolean;
|
|
1080
|
-
eventId: string | null;
|
|
1081
1081
|
markSchemeId: string | null;
|
|
1082
1082
|
order: number | null;
|
|
1083
1083
|
gradingBoundaryId: string | null;
|
|
@@ -1086,8 +1086,8 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
1086
1086
|
export declare function detachAssignmentFromEventRecord(teacherId: string, assignmentId: string): Promise<{
|
|
1087
1087
|
assignment: {
|
|
1088
1088
|
section: {
|
|
1089
|
-
name: string;
|
|
1090
1089
|
id: string;
|
|
1090
|
+
name: string;
|
|
1091
1091
|
} | null;
|
|
1092
1092
|
teacher: {
|
|
1093
1093
|
id: string;
|
|
@@ -1095,12 +1095,12 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1095
1095
|
};
|
|
1096
1096
|
attachments: {
|
|
1097
1097
|
type: string;
|
|
1098
|
-
name: string;
|
|
1099
1098
|
id: string;
|
|
1099
|
+
name: string;
|
|
1100
1100
|
}[];
|
|
1101
1101
|
eventAttached: {
|
|
1102
|
-
name: string | null;
|
|
1103
1102
|
id: string;
|
|
1103
|
+
name: string | null;
|
|
1104
1104
|
color: string | null;
|
|
1105
1105
|
startTime: Date;
|
|
1106
1106
|
endTime: Date;
|
|
@@ -1110,10 +1110,12 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1110
1110
|
id: string;
|
|
1111
1111
|
createdAt: Date | null;
|
|
1112
1112
|
classId: string;
|
|
1113
|
-
modifiedAt: Date | null;
|
|
1114
1113
|
title: string;
|
|
1115
|
-
instructions: string;
|
|
1116
1114
|
dueDate: Date;
|
|
1115
|
+
maxGrade: number | null;
|
|
1116
|
+
eventId: string | null;
|
|
1117
|
+
instructions: string;
|
|
1118
|
+
modifiedAt: Date | null;
|
|
1117
1119
|
teacherId: string;
|
|
1118
1120
|
acceptFiles: boolean;
|
|
1119
1121
|
acceptExtendedResponse: boolean;
|
|
@@ -1122,11 +1124,9 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1122
1124
|
aiPolicyLevel: number;
|
|
1123
1125
|
sectionId: string | null;
|
|
1124
1126
|
graded: boolean;
|
|
1125
|
-
maxGrade: number | null;
|
|
1126
1127
|
weight: number;
|
|
1127
1128
|
inProgress: boolean;
|
|
1128
1129
|
template: boolean;
|
|
1129
|
-
eventId: string | null;
|
|
1130
1130
|
markSchemeId: string | null;
|
|
1131
1131
|
order: number | null;
|
|
1132
1132
|
gradingBoundaryId: string | null;
|
|
@@ -1134,30 +1134,30 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1134
1134
|
}>;
|
|
1135
1135
|
export declare function getAvailableEventsForAssignment(teacherId: string, assignmentId: string): Promise<{
|
|
1136
1136
|
events: {
|
|
1137
|
-
name: string | null;
|
|
1138
1137
|
id: string;
|
|
1138
|
+
location: string | null;
|
|
1139
|
+
name: string | null;
|
|
1139
1140
|
color: string | null;
|
|
1140
1141
|
startTime: Date;
|
|
1141
1142
|
endTime: Date;
|
|
1142
|
-
location: string | null;
|
|
1143
1143
|
remarks: string | null;
|
|
1144
1144
|
}[];
|
|
1145
1145
|
}>;
|
|
1146
1146
|
export declare function attachMarkSchemeRecord(teacherId: string, assignmentId: string, markSchemeId: string | null): Promise<{
|
|
1147
|
+
markScheme: {
|
|
1148
|
+
id: string;
|
|
1149
|
+
name: string | null;
|
|
1150
|
+
classId: string | null;
|
|
1151
|
+
departmentId: string | null;
|
|
1152
|
+
structured: string;
|
|
1153
|
+
} | null;
|
|
1147
1154
|
section: {
|
|
1148
|
-
name: string;
|
|
1149
1155
|
id: string;
|
|
1156
|
+
name: string;
|
|
1150
1157
|
color: string | null;
|
|
1151
1158
|
classId: string;
|
|
1152
1159
|
order: number | null;
|
|
1153
1160
|
} | null;
|
|
1154
|
-
markScheme: {
|
|
1155
|
-
name: string | null;
|
|
1156
|
-
id: string;
|
|
1157
|
-
departmentId: string | null;
|
|
1158
|
-
classId: string | null;
|
|
1159
|
-
structured: string;
|
|
1160
|
-
} | null;
|
|
1161
1161
|
teacher: {
|
|
1162
1162
|
id: string;
|
|
1163
1163
|
username: string;
|
|
@@ -1169,12 +1169,15 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1169
1169
|
attachments: {
|
|
1170
1170
|
path: string;
|
|
1171
1171
|
type: string;
|
|
1172
|
-
name: string;
|
|
1173
1172
|
id: string;
|
|
1174
1173
|
userId: string | null;
|
|
1175
|
-
|
|
1174
|
+
name: string;
|
|
1176
1175
|
size: number | null;
|
|
1177
1176
|
uploadedAt: Date | null;
|
|
1177
|
+
assignmentId: string | null;
|
|
1178
|
+
submissionId: string | null;
|
|
1179
|
+
thumbnailId: string | null;
|
|
1180
|
+
annotationId: string | null;
|
|
1178
1181
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1179
1182
|
uploadUrl: string | null;
|
|
1180
1183
|
uploadExpiresAt: Date | null;
|
|
@@ -1184,11 +1187,8 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1184
1187
|
uploadRetryCount: number;
|
|
1185
1188
|
isOrphaned: boolean;
|
|
1186
1189
|
cleanupAt: Date | null;
|
|
1187
|
-
thumbnailId: string | null;
|
|
1188
|
-
assignmentId: string | null;
|
|
1189
|
-
submissionId: string | null;
|
|
1190
|
-
annotationId: string | null;
|
|
1191
1190
|
classDraftId: string | null;
|
|
1191
|
+
folderId: string | null;
|
|
1192
1192
|
conversationId: string | null;
|
|
1193
1193
|
messageId: string | null;
|
|
1194
1194
|
announcementId: string | null;
|
|
@@ -1197,14 +1197,14 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1197
1197
|
schoolDevelopementProgramId: string | null;
|
|
1198
1198
|
}[];
|
|
1199
1199
|
eventAttached: {
|
|
1200
|
-
name: string | null;
|
|
1201
1200
|
id: string;
|
|
1202
1201
|
userId: string | null;
|
|
1202
|
+
location: string | null;
|
|
1203
|
+
name: string | null;
|
|
1203
1204
|
color: string | null;
|
|
1204
1205
|
classId: string | null;
|
|
1205
1206
|
startTime: Date;
|
|
1206
1207
|
endTime: Date;
|
|
1207
|
-
location: string | null;
|
|
1208
1208
|
remarks: string | null;
|
|
1209
1209
|
} | null;
|
|
1210
1210
|
} & {
|
|
@@ -1212,10 +1212,12 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1212
1212
|
id: string;
|
|
1213
1213
|
createdAt: Date | null;
|
|
1214
1214
|
classId: string;
|
|
1215
|
-
modifiedAt: Date | null;
|
|
1216
1215
|
title: string;
|
|
1217
|
-
instructions: string;
|
|
1218
1216
|
dueDate: Date;
|
|
1217
|
+
maxGrade: number | null;
|
|
1218
|
+
eventId: string | null;
|
|
1219
|
+
instructions: string;
|
|
1220
|
+
modifiedAt: Date | null;
|
|
1219
1221
|
teacherId: string;
|
|
1220
1222
|
acceptFiles: boolean;
|
|
1221
1223
|
acceptExtendedResponse: boolean;
|
|
@@ -1224,30 +1226,28 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1224
1226
|
aiPolicyLevel: number;
|
|
1225
1227
|
sectionId: string | null;
|
|
1226
1228
|
graded: boolean;
|
|
1227
|
-
maxGrade: number | null;
|
|
1228
1229
|
weight: number;
|
|
1229
1230
|
inProgress: boolean;
|
|
1230
1231
|
template: boolean;
|
|
1231
|
-
eventId: string | null;
|
|
1232
1232
|
markSchemeId: string | null;
|
|
1233
1233
|
order: number | null;
|
|
1234
1234
|
gradingBoundaryId: string | null;
|
|
1235
1235
|
}>;
|
|
1236
1236
|
export declare function detachMarkSchemeRecord(teacherId: string, assignmentId: string): Promise<{
|
|
1237
|
+
markScheme: {
|
|
1238
|
+
id: string;
|
|
1239
|
+
name: string | null;
|
|
1240
|
+
classId: string | null;
|
|
1241
|
+
departmentId: string | null;
|
|
1242
|
+
structured: string;
|
|
1243
|
+
} | null;
|
|
1237
1244
|
section: {
|
|
1238
|
-
name: string;
|
|
1239
1245
|
id: string;
|
|
1246
|
+
name: string;
|
|
1240
1247
|
color: string | null;
|
|
1241
1248
|
classId: string;
|
|
1242
1249
|
order: number | null;
|
|
1243
1250
|
} | null;
|
|
1244
|
-
markScheme: {
|
|
1245
|
-
name: string | null;
|
|
1246
|
-
id: string;
|
|
1247
|
-
departmentId: string | null;
|
|
1248
|
-
classId: string | null;
|
|
1249
|
-
structured: string;
|
|
1250
|
-
} | null;
|
|
1251
1251
|
teacher: {
|
|
1252
1252
|
id: string;
|
|
1253
1253
|
username: string;
|
|
@@ -1259,12 +1259,15 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1259
1259
|
attachments: {
|
|
1260
1260
|
path: string;
|
|
1261
1261
|
type: string;
|
|
1262
|
-
name: string;
|
|
1263
1262
|
id: string;
|
|
1264
1263
|
userId: string | null;
|
|
1265
|
-
|
|
1264
|
+
name: string;
|
|
1266
1265
|
size: number | null;
|
|
1267
1266
|
uploadedAt: Date | null;
|
|
1267
|
+
assignmentId: string | null;
|
|
1268
|
+
submissionId: string | null;
|
|
1269
|
+
thumbnailId: string | null;
|
|
1270
|
+
annotationId: string | null;
|
|
1268
1271
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1269
1272
|
uploadUrl: string | null;
|
|
1270
1273
|
uploadExpiresAt: Date | null;
|
|
@@ -1274,11 +1277,8 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1274
1277
|
uploadRetryCount: number;
|
|
1275
1278
|
isOrphaned: boolean;
|
|
1276
1279
|
cleanupAt: Date | null;
|
|
1277
|
-
thumbnailId: string | null;
|
|
1278
|
-
assignmentId: string | null;
|
|
1279
|
-
submissionId: string | null;
|
|
1280
|
-
annotationId: string | null;
|
|
1281
1280
|
classDraftId: string | null;
|
|
1281
|
+
folderId: string | null;
|
|
1282
1282
|
conversationId: string | null;
|
|
1283
1283
|
messageId: string | null;
|
|
1284
1284
|
announcementId: string | null;
|
|
@@ -1287,14 +1287,14 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1287
1287
|
schoolDevelopementProgramId: string | null;
|
|
1288
1288
|
}[];
|
|
1289
1289
|
eventAttached: {
|
|
1290
|
-
name: string | null;
|
|
1291
1290
|
id: string;
|
|
1292
1291
|
userId: string | null;
|
|
1292
|
+
location: string | null;
|
|
1293
|
+
name: string | null;
|
|
1293
1294
|
color: string | null;
|
|
1294
1295
|
classId: string | null;
|
|
1295
1296
|
startTime: Date;
|
|
1296
1297
|
endTime: Date;
|
|
1297
|
-
location: string | null;
|
|
1298
1298
|
remarks: string | null;
|
|
1299
1299
|
} | null;
|
|
1300
1300
|
} & {
|
|
@@ -1302,10 +1302,12 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1302
1302
|
id: string;
|
|
1303
1303
|
createdAt: Date | null;
|
|
1304
1304
|
classId: string;
|
|
1305
|
-
modifiedAt: Date | null;
|
|
1306
1305
|
title: string;
|
|
1307
|
-
instructions: string;
|
|
1308
1306
|
dueDate: Date;
|
|
1307
|
+
maxGrade: number | null;
|
|
1308
|
+
eventId: string | null;
|
|
1309
|
+
instructions: string;
|
|
1310
|
+
modifiedAt: Date | null;
|
|
1309
1311
|
teacherId: string;
|
|
1310
1312
|
acceptFiles: boolean;
|
|
1311
1313
|
acceptExtendedResponse: boolean;
|
|
@@ -1314,30 +1316,28 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1314
1316
|
aiPolicyLevel: number;
|
|
1315
1317
|
sectionId: string | null;
|
|
1316
1318
|
graded: boolean;
|
|
1317
|
-
maxGrade: number | null;
|
|
1318
1319
|
weight: number;
|
|
1319
1320
|
inProgress: boolean;
|
|
1320
1321
|
template: boolean;
|
|
1321
|
-
eventId: string | null;
|
|
1322
1322
|
markSchemeId: string | null;
|
|
1323
1323
|
order: number | null;
|
|
1324
1324
|
gradingBoundaryId: string | null;
|
|
1325
1325
|
}>;
|
|
1326
1326
|
export declare function attachGradingBoundaryRecord(teacherId: string, assignmentId: string, gradingBoundaryId: string | null): Promise<{
|
|
1327
|
+
gradingBoundary: {
|
|
1328
|
+
id: string;
|
|
1329
|
+
name: string | null;
|
|
1330
|
+
classId: string | null;
|
|
1331
|
+
departmentId: string | null;
|
|
1332
|
+
structured: string;
|
|
1333
|
+
} | null;
|
|
1327
1334
|
section: {
|
|
1328
|
-
name: string;
|
|
1329
1335
|
id: string;
|
|
1336
|
+
name: string;
|
|
1330
1337
|
color: string | null;
|
|
1331
1338
|
classId: string;
|
|
1332
1339
|
order: number | null;
|
|
1333
1340
|
} | null;
|
|
1334
|
-
gradingBoundary: {
|
|
1335
|
-
name: string | null;
|
|
1336
|
-
id: string;
|
|
1337
|
-
departmentId: string | null;
|
|
1338
|
-
classId: string | null;
|
|
1339
|
-
structured: string;
|
|
1340
|
-
} | null;
|
|
1341
1341
|
teacher: {
|
|
1342
1342
|
id: string;
|
|
1343
1343
|
username: string;
|
|
@@ -1349,12 +1349,15 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1349
1349
|
attachments: {
|
|
1350
1350
|
path: string;
|
|
1351
1351
|
type: string;
|
|
1352
|
-
name: string;
|
|
1353
1352
|
id: string;
|
|
1354
1353
|
userId: string | null;
|
|
1355
|
-
|
|
1354
|
+
name: string;
|
|
1356
1355
|
size: number | null;
|
|
1357
1356
|
uploadedAt: Date | null;
|
|
1357
|
+
assignmentId: string | null;
|
|
1358
|
+
submissionId: string | null;
|
|
1359
|
+
thumbnailId: string | null;
|
|
1360
|
+
annotationId: string | null;
|
|
1358
1361
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1359
1362
|
uploadUrl: string | null;
|
|
1360
1363
|
uploadExpiresAt: Date | null;
|
|
@@ -1364,11 +1367,8 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1364
1367
|
uploadRetryCount: number;
|
|
1365
1368
|
isOrphaned: boolean;
|
|
1366
1369
|
cleanupAt: Date | null;
|
|
1367
|
-
thumbnailId: string | null;
|
|
1368
|
-
assignmentId: string | null;
|
|
1369
|
-
submissionId: string | null;
|
|
1370
|
-
annotationId: string | null;
|
|
1371
1370
|
classDraftId: string | null;
|
|
1371
|
+
folderId: string | null;
|
|
1372
1372
|
conversationId: string | null;
|
|
1373
1373
|
messageId: string | null;
|
|
1374
1374
|
announcementId: string | null;
|
|
@@ -1377,14 +1377,14 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1377
1377
|
schoolDevelopementProgramId: string | null;
|
|
1378
1378
|
}[];
|
|
1379
1379
|
eventAttached: {
|
|
1380
|
-
name: string | null;
|
|
1381
1380
|
id: string;
|
|
1382
1381
|
userId: string | null;
|
|
1382
|
+
location: string | null;
|
|
1383
|
+
name: string | null;
|
|
1383
1384
|
color: string | null;
|
|
1384
1385
|
classId: string | null;
|
|
1385
1386
|
startTime: Date;
|
|
1386
1387
|
endTime: Date;
|
|
1387
|
-
location: string | null;
|
|
1388
1388
|
remarks: string | null;
|
|
1389
1389
|
} | null;
|
|
1390
1390
|
} & {
|
|
@@ -1392,10 +1392,12 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1392
1392
|
id: string;
|
|
1393
1393
|
createdAt: Date | null;
|
|
1394
1394
|
classId: string;
|
|
1395
|
-
modifiedAt: Date | null;
|
|
1396
1395
|
title: string;
|
|
1397
|
-
instructions: string;
|
|
1398
1396
|
dueDate: Date;
|
|
1397
|
+
maxGrade: number | null;
|
|
1398
|
+
eventId: string | null;
|
|
1399
|
+
instructions: string;
|
|
1400
|
+
modifiedAt: Date | null;
|
|
1399
1401
|
teacherId: string;
|
|
1400
1402
|
acceptFiles: boolean;
|
|
1401
1403
|
acceptExtendedResponse: boolean;
|
|
@@ -1404,30 +1406,28 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1404
1406
|
aiPolicyLevel: number;
|
|
1405
1407
|
sectionId: string | null;
|
|
1406
1408
|
graded: boolean;
|
|
1407
|
-
maxGrade: number | null;
|
|
1408
1409
|
weight: number;
|
|
1409
1410
|
inProgress: boolean;
|
|
1410
1411
|
template: boolean;
|
|
1411
|
-
eventId: string | null;
|
|
1412
1412
|
markSchemeId: string | null;
|
|
1413
1413
|
order: number | null;
|
|
1414
1414
|
gradingBoundaryId: string | null;
|
|
1415
1415
|
}>;
|
|
1416
1416
|
export declare function detachGradingBoundaryRecord(teacherId: string, assignmentId: string): Promise<{
|
|
1417
|
+
gradingBoundary: {
|
|
1418
|
+
id: string;
|
|
1419
|
+
name: string | null;
|
|
1420
|
+
classId: string | null;
|
|
1421
|
+
departmentId: string | null;
|
|
1422
|
+
structured: string;
|
|
1423
|
+
} | null;
|
|
1417
1424
|
section: {
|
|
1418
|
-
name: string;
|
|
1419
1425
|
id: string;
|
|
1426
|
+
name: string;
|
|
1420
1427
|
color: string | null;
|
|
1421
1428
|
classId: string;
|
|
1422
1429
|
order: number | null;
|
|
1423
1430
|
} | null;
|
|
1424
|
-
gradingBoundary: {
|
|
1425
|
-
name: string | null;
|
|
1426
|
-
id: string;
|
|
1427
|
-
departmentId: string | null;
|
|
1428
|
-
classId: string | null;
|
|
1429
|
-
structured: string;
|
|
1430
|
-
} | null;
|
|
1431
1431
|
teacher: {
|
|
1432
1432
|
id: string;
|
|
1433
1433
|
username: string;
|
|
@@ -1439,12 +1439,15 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1439
1439
|
attachments: {
|
|
1440
1440
|
path: string;
|
|
1441
1441
|
type: string;
|
|
1442
|
-
name: string;
|
|
1443
1442
|
id: string;
|
|
1444
1443
|
userId: string | null;
|
|
1445
|
-
|
|
1444
|
+
name: string;
|
|
1446
1445
|
size: number | null;
|
|
1447
1446
|
uploadedAt: Date | null;
|
|
1447
|
+
assignmentId: string | null;
|
|
1448
|
+
submissionId: string | null;
|
|
1449
|
+
thumbnailId: string | null;
|
|
1450
|
+
annotationId: string | null;
|
|
1448
1451
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1449
1452
|
uploadUrl: string | null;
|
|
1450
1453
|
uploadExpiresAt: Date | null;
|
|
@@ -1454,11 +1457,8 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1454
1457
|
uploadRetryCount: number;
|
|
1455
1458
|
isOrphaned: boolean;
|
|
1456
1459
|
cleanupAt: Date | null;
|
|
1457
|
-
thumbnailId: string | null;
|
|
1458
|
-
assignmentId: string | null;
|
|
1459
|
-
submissionId: string | null;
|
|
1460
|
-
annotationId: string | null;
|
|
1461
1460
|
classDraftId: string | null;
|
|
1461
|
+
folderId: string | null;
|
|
1462
1462
|
conversationId: string | null;
|
|
1463
1463
|
messageId: string | null;
|
|
1464
1464
|
announcementId: string | null;
|
|
@@ -1467,14 +1467,14 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1467
1467
|
schoolDevelopementProgramId: string | null;
|
|
1468
1468
|
}[];
|
|
1469
1469
|
eventAttached: {
|
|
1470
|
-
name: string | null;
|
|
1471
1470
|
id: string;
|
|
1472
1471
|
userId: string | null;
|
|
1472
|
+
location: string | null;
|
|
1473
|
+
name: string | null;
|
|
1473
1474
|
color: string | null;
|
|
1474
1475
|
classId: string | null;
|
|
1475
1476
|
startTime: Date;
|
|
1476
1477
|
endTime: Date;
|
|
1477
|
-
location: string | null;
|
|
1478
1478
|
remarks: string | null;
|
|
1479
1479
|
} | null;
|
|
1480
1480
|
} & {
|
|
@@ -1482,10 +1482,12 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1482
1482
|
id: string;
|
|
1483
1483
|
createdAt: Date | null;
|
|
1484
1484
|
classId: string;
|
|
1485
|
-
modifiedAt: Date | null;
|
|
1486
1485
|
title: string;
|
|
1487
|
-
instructions: string;
|
|
1488
1486
|
dueDate: Date;
|
|
1487
|
+
maxGrade: number | null;
|
|
1488
|
+
eventId: string | null;
|
|
1489
|
+
instructions: string;
|
|
1490
|
+
modifiedAt: Date | null;
|
|
1489
1491
|
teacherId: string;
|
|
1490
1492
|
acceptFiles: boolean;
|
|
1491
1493
|
acceptExtendedResponse: boolean;
|
|
@@ -1494,11 +1496,9 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1494
1496
|
aiPolicyLevel: number;
|
|
1495
1497
|
sectionId: string | null;
|
|
1496
1498
|
graded: boolean;
|
|
1497
|
-
maxGrade: number | null;
|
|
1498
1499
|
weight: number;
|
|
1499
1500
|
inProgress: boolean;
|
|
1500
1501
|
template: boolean;
|
|
1501
|
-
eventId: string | null;
|
|
1502
1502
|
markSchemeId: string | null;
|
|
1503
1503
|
order: number | null;
|
|
1504
1504
|
gradingBoundaryId: string | null;
|
|
@@ -1513,10 +1513,12 @@ export declare function reorderAssignmentRecord(teacherId: string, input: {
|
|
|
1513
1513
|
id: string;
|
|
1514
1514
|
createdAt: Date | null;
|
|
1515
1515
|
classId: string;
|
|
1516
|
-
modifiedAt: Date | null;
|
|
1517
1516
|
title: string;
|
|
1518
|
-
instructions: string;
|
|
1519
1517
|
dueDate: Date;
|
|
1518
|
+
maxGrade: number | null;
|
|
1519
|
+
eventId: string | null;
|
|
1520
|
+
instructions: string;
|
|
1521
|
+
modifiedAt: Date | null;
|
|
1520
1522
|
teacherId: string;
|
|
1521
1523
|
acceptFiles: boolean;
|
|
1522
1524
|
acceptExtendedResponse: boolean;
|
|
@@ -1525,11 +1527,9 @@ export declare function reorderAssignmentRecord(teacherId: string, input: {
|
|
|
1525
1527
|
aiPolicyLevel: number;
|
|
1526
1528
|
sectionId: string | null;
|
|
1527
1529
|
graded: boolean;
|
|
1528
|
-
maxGrade: number | null;
|
|
1529
1530
|
weight: number;
|
|
1530
1531
|
inProgress: boolean;
|
|
1531
1532
|
template: boolean;
|
|
1532
|
-
eventId: string | null;
|
|
1533
1533
|
markSchemeId: string | null;
|
|
1534
1534
|
order: number | null;
|
|
1535
1535
|
gradingBoundaryId: string | null;
|
|
@@ -1543,10 +1543,12 @@ export declare function moveAssignmentRecord(teacherId: string, input: {
|
|
|
1543
1543
|
id: string;
|
|
1544
1544
|
createdAt: Date | null;
|
|
1545
1545
|
classId: string;
|
|
1546
|
-
modifiedAt: Date | null;
|
|
1547
1546
|
title: string;
|
|
1548
|
-
instructions: string;
|
|
1549
1547
|
dueDate: Date;
|
|
1548
|
+
maxGrade: number | null;
|
|
1549
|
+
eventId: string | null;
|
|
1550
|
+
instructions: string;
|
|
1551
|
+
modifiedAt: Date | null;
|
|
1550
1552
|
teacherId: string;
|
|
1551
1553
|
acceptFiles: boolean;
|
|
1552
1554
|
acceptExtendedResponse: boolean;
|
|
@@ -1555,11 +1557,9 @@ export declare function moveAssignmentRecord(teacherId: string, input: {
|
|
|
1555
1557
|
aiPolicyLevel: number;
|
|
1556
1558
|
sectionId: string | null;
|
|
1557
1559
|
graded: boolean;
|
|
1558
|
-
maxGrade: number | null;
|
|
1559
1560
|
weight: number;
|
|
1560
1561
|
inProgress: boolean;
|
|
1561
1562
|
template: boolean;
|
|
1562
|
-
eventId: string | null;
|
|
1563
1563
|
markSchemeId: string | null;
|
|
1564
1564
|
order: number | null;
|
|
1565
1565
|
gradingBoundaryId: string | null;
|