@studious-lms/server 1.4.1 → 1.4.2
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/.env.example +6 -0
- package/.env.test.example +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -50
- package/dist/index.js.map +1 -1
- package/dist/lib/config/cors.d.ts +16 -0
- package/dist/lib/config/cors.d.ts.map +1 -0
- package/dist/lib/config/cors.js +75 -0
- package/dist/lib/config/cors.js.map +1 -0
- package/dist/lib/config/env.d.ts +14 -0
- package/dist/lib/config/env.d.ts.map +1 -1
- package/dist/lib/config/env.js +9 -2
- package/dist/lib/config/env.js.map +1 -1
- package/dist/lib/prisma.d.ts +14 -2
- package/dist/lib/prisma.d.ts.map +1 -1
- package/dist/lib/prisma.js +27 -8
- package/dist/lib/prisma.js.map +1 -1
- package/dist/middleware/security.d.ts.map +1 -1
- package/dist/middleware/security.js +3 -3
- package/dist/middleware/security.js.map +1 -1
- package/dist/models/agenda.d.ts +16 -16
- package/dist/models/announcement.d.ts +59 -23
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +363 -276
- package/dist/models/assignment.d.ts.map +1 -1
- package/dist/models/attendance.d.ts +63 -21
- package/dist/models/attendance.d.ts.map +1 -1
- package/dist/models/auth.d.ts +102 -18
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/class.d.ts +112 -64
- package/dist/models/class.d.ts.map +1 -1
- package/dist/models/comment.d.ts +52 -16
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/conversation.d.ts +46 -16
- package/dist/models/conversation.d.ts.map +1 -1
- package/dist/models/event.d.ts +107 -53
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +213 -165
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/folder.d.ts +161 -77
- package/dist/models/folder.d.ts.map +1 -1
- package/dist/models/labChat.d.ts +73 -31
- package/dist/models/labChat.d.ts.map +1 -1
- package/dist/models/marketing.d.ts +25 -7
- package/dist/models/marketing.d.ts.map +1 -1
- package/dist/models/message.d.ts +31 -13
- package/dist/models/message.d.ts.map +1 -1
- package/dist/models/newtonChat.d.ts +34 -10
- package/dist/models/newtonChat.d.ts.map +1 -1
- package/dist/models/notification.d.ts +25 -7
- package/dist/models/notification.d.ts.map +1 -1
- package/dist/models/section.d.ts +71 -23
- package/dist/models/section.d.ts.map +1 -1
- package/dist/models/user.d.ts +27 -9
- package/dist/models/user.d.ts.map +1 -1
- package/dist/models/worksheet.d.ts +237 -108
- package/dist/models/worksheet.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.d.ts +22 -2
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +125 -95
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +22 -22
- package/dist/pipelines/gradeWorksheet.d.ts +8 -8
- package/dist/pipelines/gradeWorksheet.js +4 -4
- package/dist/pipelines/gradeWorksheet.js.map +1 -1
- package/dist/pipelines/labChatPrompt.d.ts +27 -0
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +143 -69
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/routers/_app.d.ts +1439 -1223
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/agenda.d.ts +16 -16
- package/dist/routers/announcement.d.ts +19 -19
- package/dist/routers/assignment.d.ts +307 -291
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +3 -2
- package/dist/routers/assignment.js.map +1 -1
- package/dist/routers/attendance.d.ts +7 -7
- package/dist/routers/auth.d.ts +1 -1
- package/dist/routers/class.d.ts +77 -71
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +6 -6
- package/dist/routers/conversation.d.ts +11 -11
- package/dist/routers/event.d.ts +35 -35
- package/dist/routers/file.d.ts +12 -12
- package/dist/routers/folder.d.ts +54 -54
- package/dist/routers/labChat.d.ts +12 -12
- package/dist/routers/marketing.d.ts +2 -2
- package/dist/routers/message.d.ts +2 -2
- package/dist/routers/newtonChat.d.ts +1 -1
- package/dist/routers/notifications.d.ts +4 -4
- package/dist/routers/section.d.ts +7 -7
- package/dist/routers/studentProgress.d.ts +86 -0
- package/dist/routers/studentProgress.d.ts.map +1 -1
- package/dist/routers/studentProgress.js +14 -4
- package/dist/routers/studentProgress.js.map +1 -1
- package/dist/routers/user.d.ts +1 -1
- package/dist/routers/worksheet.d.ts +58 -58
- package/dist/seedDatabase.d.ts +1 -1
- package/dist/services/agenda.d.ts +16 -16
- package/dist/services/announcement.d.ts +8 -8
- package/dist/services/assignment.d.ts +299 -283
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +24 -5
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/attendance.d.ts +7 -7
- package/dist/services/auth.d.ts +1 -1
- package/dist/services/class.d.ts +73 -67
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/comment.d.ts +6 -6
- package/dist/services/conversation.d.ts +11 -11
- package/dist/services/event.d.ts +31 -31
- package/dist/services/file.d.ts +12 -12
- package/dist/services/folder.d.ts +52 -52
- package/dist/services/labChat.d.ts +12 -12
- package/dist/services/marketing.d.ts +2 -2
- package/dist/services/notification.d.ts +4 -4
- package/dist/services/section.d.ts +6 -6
- package/dist/services/studentProgress.d.ts +75 -0
- package/dist/services/studentProgress.d.ts.map +1 -1
- package/dist/services/studentProgress.js +296 -106
- package/dist/services/studentProgress.js.map +1 -1
- package/dist/services/worksheet.d.ts +49 -49
- package/dist/utils/inference.d.ts +0 -11
- package/dist/utils/inference.d.ts.map +1 -1
- package/dist/utils/inference.js +2 -50
- package/dist/utils/inference.js.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +14 -0
- package/prisma/schema.prisma +14 -0
- package/src/index.ts +39 -51
- package/src/lib/config/cors.ts +96 -0
- package/src/lib/config/env.ts +12 -1
- package/src/lib/prisma.ts +25 -6
- package/src/middleware/security.ts +1 -1
- package/src/pipelines/aiLabChat.ts +175 -104
- package/src/pipelines/gradeWorksheet.ts +2 -2
- package/src/pipelines/labChatPrompt.ts +196 -68
- package/src/routers/assignment.ts +1 -0
- package/src/routers/studentProgress.ts +25 -1
- package/src/services/assignment.ts +30 -2
- package/src/services/studentProgress.ts +421 -120
- package/src/utils/inference.ts +0 -61
- package/tests/lib/cors.test.ts +103 -0
- package/tests/pipelines/aiLabChat.test.ts +64 -84
- package/tests/routers/studentProgress.test.ts +2 -31
- package/tests/utils/aiLabChatPrompt.test.ts +114 -6
- package/tests/utils/studentProgress.test.ts +361 -0
- package/vitest.unit.config.ts +1 -0
|
@@ -4,17 +4,17 @@ export declare function getDueToday(): Promise<{
|
|
|
4
4
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
5
5
|
id: string;
|
|
6
6
|
class: {
|
|
7
|
-
id: string;
|
|
8
7
|
name: string;
|
|
8
|
+
id: string;
|
|
9
9
|
};
|
|
10
10
|
title: string;
|
|
11
|
-
maxGrade: number | null;
|
|
12
11
|
graded: boolean;
|
|
12
|
+
maxGrade: number | null;
|
|
13
13
|
}[]>;
|
|
14
14
|
export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
15
15
|
sections: {
|
|
16
|
-
id: string;
|
|
17
16
|
name: string;
|
|
17
|
+
id: string;
|
|
18
18
|
}[];
|
|
19
19
|
submissions: {
|
|
20
20
|
student: {
|
|
@@ -23,16 +23,24 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
|
23
23
|
};
|
|
24
24
|
}[];
|
|
25
25
|
class: {
|
|
26
|
-
id: string;
|
|
27
26
|
name: string;
|
|
27
|
+
id: string;
|
|
28
28
|
};
|
|
29
29
|
section: {
|
|
30
|
-
id: string;
|
|
31
30
|
name: string;
|
|
31
|
+
id: string;
|
|
32
32
|
} | null;
|
|
33
|
-
|
|
33
|
+
markScheme: {
|
|
34
|
+
id: string;
|
|
35
|
+
structured: string;
|
|
36
|
+
} | null;
|
|
37
|
+
gradingBoundary: {
|
|
34
38
|
id: string;
|
|
39
|
+
structured: string;
|
|
40
|
+
} | null;
|
|
41
|
+
worksheets: {
|
|
35
42
|
name: string;
|
|
43
|
+
id: string;
|
|
36
44
|
}[];
|
|
37
45
|
teacher: {
|
|
38
46
|
id: string;
|
|
@@ -41,39 +49,29 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
|
41
49
|
attachments: {
|
|
42
50
|
path: string;
|
|
43
51
|
type: string;
|
|
44
|
-
id: string;
|
|
45
52
|
name: string;
|
|
53
|
+
id: string;
|
|
46
54
|
size: number | null;
|
|
47
55
|
uploadedAt: Date | null;
|
|
48
56
|
thumbnailId: string | null;
|
|
49
57
|
}[];
|
|
50
58
|
eventAttached: {
|
|
51
|
-
id: string;
|
|
52
|
-
location: string | null;
|
|
53
59
|
name: string | null;
|
|
60
|
+
id: string;
|
|
54
61
|
color: string | null;
|
|
55
62
|
startTime: Date;
|
|
56
63
|
endTime: Date;
|
|
64
|
+
location: string | null;
|
|
57
65
|
remarks: string | null;
|
|
58
66
|
} | null;
|
|
59
|
-
markScheme: {
|
|
60
|
-
id: string;
|
|
61
|
-
structured: string;
|
|
62
|
-
} | null;
|
|
63
|
-
gradingBoundary: {
|
|
64
|
-
id: string;
|
|
65
|
-
structured: string;
|
|
66
|
-
} | null;
|
|
67
67
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: Date | null;
|
|
70
|
+
modifiedAt: Date | null;
|
|
70
71
|
classId: string;
|
|
71
72
|
title: string;
|
|
72
|
-
dueDate: Date;
|
|
73
|
-
maxGrade: number | null;
|
|
74
|
-
eventId: string | null;
|
|
75
73
|
instructions: string;
|
|
76
|
-
|
|
74
|
+
dueDate: Date;
|
|
77
75
|
teacherId: string;
|
|
78
76
|
acceptFiles: boolean;
|
|
79
77
|
acceptExtendedResponse: boolean;
|
|
@@ -82,9 +80,11 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
|
82
80
|
aiPolicyLevel: number;
|
|
83
81
|
sectionId: string | null;
|
|
84
82
|
graded: boolean;
|
|
83
|
+
maxGrade: number | null;
|
|
85
84
|
weight: number;
|
|
86
85
|
inProgress: boolean;
|
|
87
86
|
template: boolean;
|
|
87
|
+
eventId: string | null;
|
|
88
88
|
markSchemeId: string | null;
|
|
89
89
|
order: number | null;
|
|
90
90
|
gradingBoundaryId: string | null;
|
|
@@ -93,18 +93,14 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
93
93
|
late: boolean;
|
|
94
94
|
assignment: {
|
|
95
95
|
class: {
|
|
96
|
+
name: string;
|
|
96
97
|
id: string;
|
|
97
98
|
schoolId: string | null;
|
|
98
|
-
name: string;
|
|
99
99
|
subject: string;
|
|
100
100
|
color: string | null;
|
|
101
101
|
section: string;
|
|
102
102
|
syllabus: string | null;
|
|
103
103
|
};
|
|
104
|
-
worksheets: {
|
|
105
|
-
id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
}[];
|
|
108
104
|
markScheme: {
|
|
109
105
|
id: string;
|
|
110
106
|
structured: string;
|
|
@@ -113,17 +109,19 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
113
109
|
id: string;
|
|
114
110
|
structured: string;
|
|
115
111
|
} | null;
|
|
112
|
+
worksheets: {
|
|
113
|
+
name: string;
|
|
114
|
+
id: string;
|
|
115
|
+
}[];
|
|
116
116
|
} & {
|
|
117
117
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
118
118
|
id: string;
|
|
119
119
|
createdAt: Date | null;
|
|
120
|
+
modifiedAt: Date | null;
|
|
120
121
|
classId: string;
|
|
121
122
|
title: string;
|
|
122
|
-
dueDate: Date;
|
|
123
|
-
maxGrade: number | null;
|
|
124
|
-
eventId: string | null;
|
|
125
123
|
instructions: string;
|
|
126
|
-
|
|
124
|
+
dueDate: Date;
|
|
127
125
|
teacherId: string;
|
|
128
126
|
acceptFiles: boolean;
|
|
129
127
|
acceptExtendedResponse: boolean;
|
|
@@ -132,25 +130,23 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
132
130
|
aiPolicyLevel: number;
|
|
133
131
|
sectionId: string | null;
|
|
134
132
|
graded: boolean;
|
|
133
|
+
maxGrade: number | null;
|
|
135
134
|
weight: number;
|
|
136
135
|
inProgress: boolean;
|
|
137
136
|
template: boolean;
|
|
137
|
+
eventId: string | null;
|
|
138
138
|
markSchemeId: string | null;
|
|
139
139
|
order: number | null;
|
|
140
140
|
gradingBoundaryId: string | null;
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
annotations: {
|
|
143
143
|
path: string;
|
|
144
144
|
type: string;
|
|
145
|
-
id: string;
|
|
146
|
-
userId: string | null;
|
|
147
145
|
name: string;
|
|
146
|
+
id: string;
|
|
148
147
|
size: number | null;
|
|
148
|
+
userId: string | null;
|
|
149
149
|
uploadedAt: Date | null;
|
|
150
|
-
assignmentId: string | null;
|
|
151
|
-
submissionId: string | null;
|
|
152
|
-
thumbnailId: string | null;
|
|
153
|
-
annotationId: string | null;
|
|
154
150
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
155
151
|
uploadUrl: string | null;
|
|
156
152
|
uploadExpiresAt: Date | null;
|
|
@@ -160,6 +156,10 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
160
156
|
uploadRetryCount: number;
|
|
161
157
|
isOrphaned: boolean;
|
|
162
158
|
cleanupAt: Date | null;
|
|
159
|
+
thumbnailId: string | null;
|
|
160
|
+
assignmentId: string | null;
|
|
161
|
+
submissionId: string | null;
|
|
162
|
+
annotationId: string | null;
|
|
163
163
|
classDraftId: string | null;
|
|
164
164
|
folderId: string | null;
|
|
165
165
|
conversationId: string | null;
|
|
@@ -167,22 +167,14 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
167
167
|
announcementId: string | null;
|
|
168
168
|
schoolDevelopementProgramId: string | null;
|
|
169
169
|
}[];
|
|
170
|
-
|
|
171
|
-
id: string;
|
|
172
|
-
username: string;
|
|
173
|
-
};
|
|
174
|
-
annotations: {
|
|
170
|
+
attachments: {
|
|
175
171
|
path: string;
|
|
176
172
|
type: string;
|
|
177
|
-
id: string;
|
|
178
|
-
userId: string | null;
|
|
179
173
|
name: string;
|
|
174
|
+
id: string;
|
|
180
175
|
size: number | null;
|
|
176
|
+
userId: string | null;
|
|
181
177
|
uploadedAt: Date | null;
|
|
182
|
-
assignmentId: string | null;
|
|
183
|
-
submissionId: string | null;
|
|
184
|
-
thumbnailId: string | null;
|
|
185
|
-
annotationId: string | null;
|
|
186
178
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
187
179
|
uploadUrl: string | null;
|
|
188
180
|
uploadExpiresAt: Date | null;
|
|
@@ -192,6 +184,10 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
192
184
|
uploadRetryCount: number;
|
|
193
185
|
isOrphaned: boolean;
|
|
194
186
|
cleanupAt: Date | null;
|
|
187
|
+
thumbnailId: string | null;
|
|
188
|
+
assignmentId: string | null;
|
|
189
|
+
submissionId: string | null;
|
|
190
|
+
annotationId: string | null;
|
|
195
191
|
classDraftId: string | null;
|
|
196
192
|
folderId: string | null;
|
|
197
193
|
conversationId: string | null;
|
|
@@ -199,13 +195,20 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
199
195
|
announcementId: string | null;
|
|
200
196
|
schoolDevelopementProgramId: string | null;
|
|
201
197
|
}[];
|
|
198
|
+
student: {
|
|
199
|
+
id: string;
|
|
200
|
+
username: string;
|
|
201
|
+
};
|
|
202
202
|
id: string;
|
|
203
|
-
createdAt: Date;
|
|
204
203
|
assignmentId: string;
|
|
204
|
+
createdAt: Date;
|
|
205
205
|
modifiedAt: Date;
|
|
206
206
|
studentId: string;
|
|
207
207
|
extendedResponse: string | null;
|
|
208
208
|
gradeReceived: number | null;
|
|
209
|
+
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
210
|
+
recommendationUpdatedAt: Date | null;
|
|
211
|
+
targetedAssignmentId: string | null;
|
|
209
212
|
rubricState: string | null;
|
|
210
213
|
teacherComments: string | null;
|
|
211
214
|
submittedAt: Date | null;
|
|
@@ -216,18 +219,14 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
216
219
|
late: boolean;
|
|
217
220
|
assignment: {
|
|
218
221
|
class: {
|
|
222
|
+
name: string;
|
|
219
223
|
id: string;
|
|
220
224
|
schoolId: string | null;
|
|
221
|
-
name: string;
|
|
222
225
|
subject: string;
|
|
223
226
|
color: string | null;
|
|
224
227
|
section: string;
|
|
225
228
|
syllabus: string | null;
|
|
226
229
|
};
|
|
227
|
-
worksheets: {
|
|
228
|
-
id: string;
|
|
229
|
-
name: string;
|
|
230
|
-
}[];
|
|
231
230
|
markScheme: {
|
|
232
231
|
id: string;
|
|
233
232
|
structured: string;
|
|
@@ -236,17 +235,19 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
236
235
|
id: string;
|
|
237
236
|
structured: string;
|
|
238
237
|
} | null;
|
|
238
|
+
worksheets: {
|
|
239
|
+
name: string;
|
|
240
|
+
id: string;
|
|
241
|
+
}[];
|
|
239
242
|
} & {
|
|
240
243
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
241
244
|
id: string;
|
|
242
245
|
createdAt: Date | null;
|
|
246
|
+
modifiedAt: Date | null;
|
|
243
247
|
classId: string;
|
|
244
248
|
title: string;
|
|
245
|
-
dueDate: Date;
|
|
246
|
-
maxGrade: number | null;
|
|
247
|
-
eventId: string | null;
|
|
248
249
|
instructions: string;
|
|
249
|
-
|
|
250
|
+
dueDate: Date;
|
|
250
251
|
teacherId: string;
|
|
251
252
|
acceptFiles: boolean;
|
|
252
253
|
acceptExtendedResponse: boolean;
|
|
@@ -255,25 +256,23 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
255
256
|
aiPolicyLevel: number;
|
|
256
257
|
sectionId: string | null;
|
|
257
258
|
graded: boolean;
|
|
259
|
+
maxGrade: number | null;
|
|
258
260
|
weight: number;
|
|
259
261
|
inProgress: boolean;
|
|
260
262
|
template: boolean;
|
|
263
|
+
eventId: string | null;
|
|
261
264
|
markSchemeId: string | null;
|
|
262
265
|
order: number | null;
|
|
263
266
|
gradingBoundaryId: string | null;
|
|
264
267
|
};
|
|
265
|
-
|
|
268
|
+
annotations: {
|
|
266
269
|
path: string;
|
|
267
270
|
type: string;
|
|
268
|
-
id: string;
|
|
269
|
-
userId: string | null;
|
|
270
271
|
name: string;
|
|
272
|
+
id: string;
|
|
271
273
|
size: number | null;
|
|
274
|
+
userId: string | null;
|
|
272
275
|
uploadedAt: Date | null;
|
|
273
|
-
assignmentId: string | null;
|
|
274
|
-
submissionId: string | null;
|
|
275
|
-
thumbnailId: string | null;
|
|
276
|
-
annotationId: string | null;
|
|
277
276
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
278
277
|
uploadUrl: string | null;
|
|
279
278
|
uploadExpiresAt: Date | null;
|
|
@@ -283,6 +282,10 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
283
282
|
uploadRetryCount: number;
|
|
284
283
|
isOrphaned: boolean;
|
|
285
284
|
cleanupAt: Date | null;
|
|
285
|
+
thumbnailId: string | null;
|
|
286
|
+
assignmentId: string | null;
|
|
287
|
+
submissionId: string | null;
|
|
288
|
+
annotationId: string | null;
|
|
286
289
|
classDraftId: string | null;
|
|
287
290
|
folderId: string | null;
|
|
288
291
|
conversationId: string | null;
|
|
@@ -290,34 +293,14 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
290
293
|
announcementId: string | null;
|
|
291
294
|
schoolDevelopementProgramId: string | null;
|
|
292
295
|
}[];
|
|
293
|
-
|
|
294
|
-
id: string;
|
|
295
|
-
username: string;
|
|
296
|
-
profile: {
|
|
297
|
-
id: string;
|
|
298
|
-
userId: string;
|
|
299
|
-
displayName: string | null;
|
|
300
|
-
bio: string | null;
|
|
301
|
-
location: string | null;
|
|
302
|
-
website: string | null;
|
|
303
|
-
profilePicture: string | null;
|
|
304
|
-
profilePictureThumbnail: string | null;
|
|
305
|
-
createdAt: Date;
|
|
306
|
-
updatedAt: Date;
|
|
307
|
-
} | null;
|
|
308
|
-
};
|
|
309
|
-
annotations: {
|
|
296
|
+
attachments: {
|
|
310
297
|
path: string;
|
|
311
298
|
type: string;
|
|
312
|
-
id: string;
|
|
313
|
-
userId: string | null;
|
|
314
299
|
name: string;
|
|
300
|
+
id: string;
|
|
315
301
|
size: number | null;
|
|
302
|
+
userId: string | null;
|
|
316
303
|
uploadedAt: Date | null;
|
|
317
|
-
assignmentId: string | null;
|
|
318
|
-
submissionId: string | null;
|
|
319
|
-
thumbnailId: string | null;
|
|
320
|
-
annotationId: string | null;
|
|
321
304
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
322
305
|
uploadUrl: string | null;
|
|
323
306
|
uploadExpiresAt: Date | null;
|
|
@@ -327,6 +310,10 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
327
310
|
uploadRetryCount: number;
|
|
328
311
|
isOrphaned: boolean;
|
|
329
312
|
cleanupAt: Date | null;
|
|
313
|
+
thumbnailId: string | null;
|
|
314
|
+
assignmentId: string | null;
|
|
315
|
+
submissionId: string | null;
|
|
316
|
+
annotationId: string | null;
|
|
330
317
|
classDraftId: string | null;
|
|
331
318
|
folderId: string | null;
|
|
332
319
|
conversationId: string | null;
|
|
@@ -334,13 +321,32 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
334
321
|
announcementId: string | null;
|
|
335
322
|
schoolDevelopementProgramId: string | null;
|
|
336
323
|
}[];
|
|
324
|
+
student: {
|
|
325
|
+
id: string;
|
|
326
|
+
username: string;
|
|
327
|
+
profile: {
|
|
328
|
+
id: string;
|
|
329
|
+
userId: string;
|
|
330
|
+
createdAt: Date;
|
|
331
|
+
location: string | null;
|
|
332
|
+
updatedAt: Date;
|
|
333
|
+
displayName: string | null;
|
|
334
|
+
bio: string | null;
|
|
335
|
+
website: string | null;
|
|
336
|
+
profilePicture: string | null;
|
|
337
|
+
profilePictureThumbnail: string | null;
|
|
338
|
+
} | null;
|
|
339
|
+
};
|
|
337
340
|
id: string;
|
|
338
|
-
createdAt: Date;
|
|
339
341
|
assignmentId: string;
|
|
342
|
+
createdAt: Date;
|
|
340
343
|
modifiedAt: Date;
|
|
341
344
|
studentId: string;
|
|
342
345
|
extendedResponse: string | null;
|
|
343
346
|
gradeReceived: number | null;
|
|
347
|
+
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
348
|
+
recommendationUpdatedAt: Date | null;
|
|
349
|
+
targetedAssignmentId: string | null;
|
|
344
350
|
rubricState: string | null;
|
|
345
351
|
teacherComments: string | null;
|
|
346
352
|
submittedAt: Date | null;
|
|
@@ -351,9 +357,9 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
351
357
|
late: boolean;
|
|
352
358
|
assignment: {
|
|
353
359
|
class: {
|
|
360
|
+
name: string;
|
|
354
361
|
id: string;
|
|
355
362
|
schoolId: string | null;
|
|
356
|
-
name: string;
|
|
357
363
|
subject: string;
|
|
358
364
|
color: string | null;
|
|
359
365
|
section: string;
|
|
@@ -371,13 +377,11 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
371
377
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
372
378
|
id: string;
|
|
373
379
|
createdAt: Date | null;
|
|
380
|
+
modifiedAt: Date | null;
|
|
374
381
|
classId: string;
|
|
375
382
|
title: string;
|
|
376
|
-
dueDate: Date;
|
|
377
|
-
maxGrade: number | null;
|
|
378
|
-
eventId: string | null;
|
|
379
383
|
instructions: string;
|
|
380
|
-
|
|
384
|
+
dueDate: Date;
|
|
381
385
|
teacherId: string;
|
|
382
386
|
acceptFiles: boolean;
|
|
383
387
|
acceptExtendedResponse: boolean;
|
|
@@ -386,9 +390,11 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
386
390
|
aiPolicyLevel: number;
|
|
387
391
|
sectionId: string | null;
|
|
388
392
|
graded: boolean;
|
|
393
|
+
maxGrade: number | null;
|
|
389
394
|
weight: number;
|
|
390
395
|
inProgress: boolean;
|
|
391
396
|
template: boolean;
|
|
397
|
+
eventId: string | null;
|
|
392
398
|
markSchemeId: string | null;
|
|
393
399
|
order: number | null;
|
|
394
400
|
gradingBoundaryId: string | null;
|
|
@@ -397,15 +403,11 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
397
403
|
thumbnail: {
|
|
398
404
|
path: string;
|
|
399
405
|
type: string;
|
|
400
|
-
id: string;
|
|
401
|
-
userId: string | null;
|
|
402
406
|
name: string;
|
|
407
|
+
id: string;
|
|
403
408
|
size: number | null;
|
|
409
|
+
userId: string | null;
|
|
404
410
|
uploadedAt: Date | null;
|
|
405
|
-
assignmentId: string | null;
|
|
406
|
-
submissionId: string | null;
|
|
407
|
-
thumbnailId: string | null;
|
|
408
|
-
annotationId: string | null;
|
|
409
411
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
410
412
|
uploadUrl: string | null;
|
|
411
413
|
uploadExpiresAt: Date | null;
|
|
@@ -415,6 +417,10 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
415
417
|
uploadRetryCount: number;
|
|
416
418
|
isOrphaned: boolean;
|
|
417
419
|
cleanupAt: Date | null;
|
|
420
|
+
thumbnailId: string | null;
|
|
421
|
+
assignmentId: string | null;
|
|
422
|
+
submissionId: string | null;
|
|
423
|
+
annotationId: string | null;
|
|
418
424
|
classDraftId: string | null;
|
|
419
425
|
folderId: string | null;
|
|
420
426
|
conversationId: string | null;
|
|
@@ -425,15 +431,11 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
425
431
|
} & {
|
|
426
432
|
path: string;
|
|
427
433
|
type: string;
|
|
428
|
-
id: string;
|
|
429
|
-
userId: string | null;
|
|
430
434
|
name: string;
|
|
435
|
+
id: string;
|
|
431
436
|
size: number | null;
|
|
437
|
+
userId: string | null;
|
|
432
438
|
uploadedAt: Date | null;
|
|
433
|
-
assignmentId: string | null;
|
|
434
|
-
submissionId: string | null;
|
|
435
|
-
thumbnailId: string | null;
|
|
436
|
-
annotationId: string | null;
|
|
437
439
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
438
440
|
uploadUrl: string | null;
|
|
439
441
|
uploadExpiresAt: Date | null;
|
|
@@ -443,6 +445,10 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
443
445
|
uploadRetryCount: number;
|
|
444
446
|
isOrphaned: boolean;
|
|
445
447
|
cleanupAt: Date | null;
|
|
448
|
+
thumbnailId: string | null;
|
|
449
|
+
assignmentId: string | null;
|
|
450
|
+
submissionId: string | null;
|
|
451
|
+
annotationId: string | null;
|
|
446
452
|
classDraftId: string | null;
|
|
447
453
|
folderId: string | null;
|
|
448
454
|
conversationId: string | null;
|
|
@@ -460,12 +466,15 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
460
466
|
} | null;
|
|
461
467
|
};
|
|
462
468
|
id: string;
|
|
463
|
-
createdAt: Date;
|
|
464
469
|
assignmentId: string;
|
|
470
|
+
createdAt: Date;
|
|
465
471
|
modifiedAt: Date;
|
|
466
472
|
studentId: string;
|
|
467
473
|
extendedResponse: string | null;
|
|
468
474
|
gradeReceived: number | null;
|
|
475
|
+
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
476
|
+
recommendationUpdatedAt: Date | null;
|
|
477
|
+
targetedAssignmentId: string | null;
|
|
469
478
|
rubricState: string | null;
|
|
470
479
|
teacherComments: string | null;
|
|
471
480
|
submittedAt: Date | null;
|
|
@@ -499,22 +508,23 @@ export declare function createAssignmentRecord(userId: string, input: {
|
|
|
499
508
|
markSchemeId?: string;
|
|
500
509
|
gradingBoundaryId?: string;
|
|
501
510
|
inProgress?: boolean;
|
|
511
|
+
sourceAssignmentId?: string;
|
|
502
512
|
}): Promise<{
|
|
503
513
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
504
514
|
id: string;
|
|
505
515
|
class: {
|
|
506
|
-
id: string;
|
|
507
516
|
name: string;
|
|
517
|
+
id: string;
|
|
508
518
|
};
|
|
509
519
|
section: {
|
|
510
|
-
id: string;
|
|
511
520
|
name: string;
|
|
521
|
+
id: string;
|
|
512
522
|
} | null;
|
|
513
523
|
title: string;
|
|
514
|
-
dueDate: Date;
|
|
515
|
-
maxGrade: number | null;
|
|
516
524
|
instructions: string;
|
|
525
|
+
dueDate: Date;
|
|
517
526
|
graded: boolean;
|
|
527
|
+
maxGrade: number | null;
|
|
518
528
|
weight: number;
|
|
519
529
|
teacher: {
|
|
520
530
|
id: string;
|
|
@@ -522,8 +532,8 @@ export declare function createAssignmentRecord(userId: string, input: {
|
|
|
522
532
|
};
|
|
523
533
|
attachments: {
|
|
524
534
|
type: string;
|
|
525
|
-
id: string;
|
|
526
535
|
name: string;
|
|
536
|
+
id: string;
|
|
527
537
|
}[];
|
|
528
538
|
}>;
|
|
529
539
|
export declare function updateAssignmentRecord(userId: string, input: {
|
|
@@ -561,28 +571,28 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
561
571
|
username: string;
|
|
562
572
|
};
|
|
563
573
|
}[];
|
|
564
|
-
createdAt: Date | null;
|
|
565
574
|
class: {
|
|
575
|
+
name: string;
|
|
566
576
|
id: string;
|
|
567
577
|
schoolId: string | null;
|
|
568
|
-
name: string;
|
|
569
578
|
subject: string;
|
|
570
579
|
color: string | null;
|
|
571
580
|
section: string;
|
|
572
581
|
syllabus: string | null;
|
|
573
582
|
};
|
|
574
583
|
section: {
|
|
575
|
-
id: string;
|
|
576
|
-
classId: string;
|
|
577
584
|
name: string;
|
|
585
|
+
id: string;
|
|
578
586
|
color: string | null;
|
|
587
|
+
classId: string;
|
|
579
588
|
order: number | null;
|
|
580
589
|
} | null;
|
|
590
|
+
createdAt: Date | null;
|
|
581
591
|
title: string;
|
|
582
|
-
dueDate: Date;
|
|
583
|
-
maxGrade: number | null;
|
|
584
592
|
instructions: string;
|
|
593
|
+
dueDate: Date;
|
|
585
594
|
graded: boolean;
|
|
595
|
+
maxGrade: number | null;
|
|
586
596
|
weight: number;
|
|
587
597
|
markSchemeId: string | null;
|
|
588
598
|
teacher: {
|
|
@@ -597,22 +607,19 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
597
607
|
attachments: {
|
|
598
608
|
path: string;
|
|
599
609
|
type: string;
|
|
600
|
-
id: string;
|
|
601
610
|
name: string;
|
|
611
|
+
id: string;
|
|
602
612
|
size: number | null;
|
|
603
613
|
uploadedAt: Date | null;
|
|
614
|
+
thumbnailId: string | null;
|
|
604
615
|
thumbnail: {
|
|
605
616
|
path: string;
|
|
606
617
|
type: string;
|
|
607
|
-
id: string;
|
|
608
|
-
userId: string | null;
|
|
609
618
|
name: string;
|
|
619
|
+
id: string;
|
|
610
620
|
size: number | null;
|
|
621
|
+
userId: string | null;
|
|
611
622
|
uploadedAt: Date | null;
|
|
612
|
-
assignmentId: string | null;
|
|
613
|
-
submissionId: string | null;
|
|
614
|
-
thumbnailId: string | null;
|
|
615
|
-
annotationId: string | null;
|
|
616
623
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
617
624
|
uploadUrl: string | null;
|
|
618
625
|
uploadExpiresAt: Date | null;
|
|
@@ -622,6 +629,10 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
622
629
|
uploadRetryCount: number;
|
|
623
630
|
isOrphaned: boolean;
|
|
624
631
|
cleanupAt: Date | null;
|
|
632
|
+
thumbnailId: string | null;
|
|
633
|
+
assignmentId: string | null;
|
|
634
|
+
submissionId: string | null;
|
|
635
|
+
annotationId: string | null;
|
|
625
636
|
classDraftId: string | null;
|
|
626
637
|
folderId: string | null;
|
|
627
638
|
conversationId: string | null;
|
|
@@ -629,7 +640,6 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
629
640
|
announcementId: string | null;
|
|
630
641
|
schoolDevelopementProgramId: string | null;
|
|
631
642
|
} | null;
|
|
632
|
-
thumbnailId: string | null;
|
|
633
643
|
}[];
|
|
634
644
|
}>;
|
|
635
645
|
export declare function deleteAssignmentRecord(userId: string, id: string, _classId: string): Promise<{
|
|
@@ -651,9 +661,9 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
651
661
|
}): Promise<{
|
|
652
662
|
assignment: {
|
|
653
663
|
class: {
|
|
664
|
+
name: string;
|
|
654
665
|
id: string;
|
|
655
666
|
schoolId: string | null;
|
|
656
|
-
name: string;
|
|
657
667
|
subject: string;
|
|
658
668
|
color: string | null;
|
|
659
669
|
section: string;
|
|
@@ -671,13 +681,11 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
671
681
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
672
682
|
id: string;
|
|
673
683
|
createdAt: Date | null;
|
|
684
|
+
modifiedAt: Date | null;
|
|
674
685
|
classId: string;
|
|
675
686
|
title: string;
|
|
687
|
+
instructions: string;
|
|
676
688
|
dueDate: Date;
|
|
677
|
-
maxGrade: number | null;
|
|
678
|
-
eventId: string | null;
|
|
679
|
-
instructions: string;
|
|
680
|
-
modifiedAt: Date | null;
|
|
681
689
|
teacherId: string;
|
|
682
690
|
acceptFiles: boolean;
|
|
683
691
|
acceptExtendedResponse: boolean;
|
|
@@ -686,9 +694,11 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
686
694
|
aiPolicyLevel: number;
|
|
687
695
|
sectionId: string | null;
|
|
688
696
|
graded: boolean;
|
|
697
|
+
maxGrade: number | null;
|
|
689
698
|
weight: number;
|
|
690
699
|
inProgress: boolean;
|
|
691
700
|
template: boolean;
|
|
701
|
+
eventId: string | null;
|
|
692
702
|
markSchemeId: string | null;
|
|
693
703
|
order: number | null;
|
|
694
704
|
gradingBoundaryId: string | null;
|
|
@@ -696,15 +706,11 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
696
706
|
attachments: {
|
|
697
707
|
path: string;
|
|
698
708
|
type: string;
|
|
699
|
-
id: string;
|
|
700
|
-
userId: string | null;
|
|
701
709
|
name: string;
|
|
710
|
+
id: string;
|
|
702
711
|
size: number | null;
|
|
712
|
+
userId: string | null;
|
|
703
713
|
uploadedAt: Date | null;
|
|
704
|
-
assignmentId: string | null;
|
|
705
|
-
submissionId: string | null;
|
|
706
|
-
thumbnailId: string | null;
|
|
707
|
-
annotationId: string | null;
|
|
708
714
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
709
715
|
uploadUrl: string | null;
|
|
710
716
|
uploadExpiresAt: Date | null;
|
|
@@ -714,6 +720,10 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
714
720
|
uploadRetryCount: number;
|
|
715
721
|
isOrphaned: boolean;
|
|
716
722
|
cleanupAt: Date | null;
|
|
723
|
+
thumbnailId: string | null;
|
|
724
|
+
assignmentId: string | null;
|
|
725
|
+
submissionId: string | null;
|
|
726
|
+
annotationId: string | null;
|
|
717
727
|
classDraftId: string | null;
|
|
718
728
|
folderId: string | null;
|
|
719
729
|
conversationId: string | null;
|
|
@@ -727,12 +737,15 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
727
737
|
};
|
|
728
738
|
} & {
|
|
729
739
|
id: string;
|
|
730
|
-
createdAt: Date;
|
|
731
740
|
assignmentId: string;
|
|
741
|
+
createdAt: Date;
|
|
732
742
|
modifiedAt: Date;
|
|
733
743
|
studentId: string;
|
|
734
744
|
extendedResponse: string | null;
|
|
735
745
|
gradeReceived: number | null;
|
|
746
|
+
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
747
|
+
recommendationUpdatedAt: Date | null;
|
|
748
|
+
targetedAssignmentId: string | null;
|
|
736
749
|
rubricState: string | null;
|
|
737
750
|
teacherComments: string | null;
|
|
738
751
|
submittedAt: Date | null;
|
|
@@ -762,9 +775,9 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
762
775
|
}): Promise<{
|
|
763
776
|
assignment: {
|
|
764
777
|
class: {
|
|
778
|
+
name: string;
|
|
765
779
|
id: string;
|
|
766
780
|
schoolId: string | null;
|
|
767
|
-
name: string;
|
|
768
781
|
subject: string;
|
|
769
782
|
color: string | null;
|
|
770
783
|
section: string;
|
|
@@ -782,13 +795,11 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
782
795
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
783
796
|
id: string;
|
|
784
797
|
createdAt: Date | null;
|
|
798
|
+
modifiedAt: Date | null;
|
|
785
799
|
classId: string;
|
|
786
800
|
title: string;
|
|
787
|
-
dueDate: Date;
|
|
788
|
-
maxGrade: number | null;
|
|
789
|
-
eventId: string | null;
|
|
790
801
|
instructions: string;
|
|
791
|
-
|
|
802
|
+
dueDate: Date;
|
|
792
803
|
teacherId: string;
|
|
793
804
|
acceptFiles: boolean;
|
|
794
805
|
acceptExtendedResponse: boolean;
|
|
@@ -797,26 +808,24 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
797
808
|
aiPolicyLevel: number;
|
|
798
809
|
sectionId: string | null;
|
|
799
810
|
graded: boolean;
|
|
811
|
+
maxGrade: number | null;
|
|
800
812
|
weight: number;
|
|
801
813
|
inProgress: boolean;
|
|
802
814
|
template: boolean;
|
|
815
|
+
eventId: string | null;
|
|
803
816
|
markSchemeId: string | null;
|
|
804
817
|
order: number | null;
|
|
805
818
|
gradingBoundaryId: string | null;
|
|
806
819
|
};
|
|
807
|
-
|
|
820
|
+
annotations: ({
|
|
808
821
|
thumbnail: {
|
|
809
822
|
path: string;
|
|
810
823
|
type: string;
|
|
811
|
-
id: string;
|
|
812
|
-
userId: string | null;
|
|
813
824
|
name: string;
|
|
825
|
+
id: string;
|
|
814
826
|
size: number | null;
|
|
827
|
+
userId: string | null;
|
|
815
828
|
uploadedAt: Date | null;
|
|
816
|
-
assignmentId: string | null;
|
|
817
|
-
submissionId: string | null;
|
|
818
|
-
thumbnailId: string | null;
|
|
819
|
-
annotationId: string | null;
|
|
820
829
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
821
830
|
uploadUrl: string | null;
|
|
822
831
|
uploadExpiresAt: Date | null;
|
|
@@ -826,6 +835,10 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
826
835
|
uploadRetryCount: number;
|
|
827
836
|
isOrphaned: boolean;
|
|
828
837
|
cleanupAt: Date | null;
|
|
838
|
+
thumbnailId: string | null;
|
|
839
|
+
assignmentId: string | null;
|
|
840
|
+
submissionId: string | null;
|
|
841
|
+
annotationId: string | null;
|
|
829
842
|
classDraftId: string | null;
|
|
830
843
|
folderId: string | null;
|
|
831
844
|
conversationId: string | null;
|
|
@@ -836,15 +849,11 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
836
849
|
} & {
|
|
837
850
|
path: string;
|
|
838
851
|
type: string;
|
|
839
|
-
id: string;
|
|
840
|
-
userId: string | null;
|
|
841
852
|
name: string;
|
|
853
|
+
id: string;
|
|
842
854
|
size: number | null;
|
|
855
|
+
userId: string | null;
|
|
843
856
|
uploadedAt: Date | null;
|
|
844
|
-
assignmentId: string | null;
|
|
845
|
-
submissionId: string | null;
|
|
846
|
-
thumbnailId: string | null;
|
|
847
|
-
annotationId: string | null;
|
|
848
857
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
849
858
|
uploadUrl: string | null;
|
|
850
859
|
uploadExpiresAt: Date | null;
|
|
@@ -854,6 +863,10 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
854
863
|
uploadRetryCount: number;
|
|
855
864
|
isOrphaned: boolean;
|
|
856
865
|
cleanupAt: Date | null;
|
|
866
|
+
thumbnailId: string | null;
|
|
867
|
+
assignmentId: string | null;
|
|
868
|
+
submissionId: string | null;
|
|
869
|
+
annotationId: string | null;
|
|
857
870
|
classDraftId: string | null;
|
|
858
871
|
folderId: string | null;
|
|
859
872
|
conversationId: string | null;
|
|
@@ -861,28 +874,15 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
861
874
|
announcementId: string | null;
|
|
862
875
|
schoolDevelopementProgramId: string | null;
|
|
863
876
|
})[];
|
|
864
|
-
|
|
865
|
-
id: string;
|
|
866
|
-
username: string;
|
|
867
|
-
profile: {
|
|
868
|
-
displayName: string | null;
|
|
869
|
-
profilePicture: string | null;
|
|
870
|
-
profilePictureThumbnail: string | null;
|
|
871
|
-
} | null;
|
|
872
|
-
};
|
|
873
|
-
annotations: ({
|
|
877
|
+
attachments: ({
|
|
874
878
|
thumbnail: {
|
|
875
879
|
path: string;
|
|
876
880
|
type: string;
|
|
877
|
-
id: string;
|
|
878
|
-
userId: string | null;
|
|
879
881
|
name: string;
|
|
882
|
+
id: string;
|
|
880
883
|
size: number | null;
|
|
884
|
+
userId: string | null;
|
|
881
885
|
uploadedAt: Date | null;
|
|
882
|
-
assignmentId: string | null;
|
|
883
|
-
submissionId: string | null;
|
|
884
|
-
thumbnailId: string | null;
|
|
885
|
-
annotationId: string | null;
|
|
886
886
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
887
887
|
uploadUrl: string | null;
|
|
888
888
|
uploadExpiresAt: Date | null;
|
|
@@ -892,6 +892,10 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
892
892
|
uploadRetryCount: number;
|
|
893
893
|
isOrphaned: boolean;
|
|
894
894
|
cleanupAt: Date | null;
|
|
895
|
+
thumbnailId: string | null;
|
|
896
|
+
assignmentId: string | null;
|
|
897
|
+
submissionId: string | null;
|
|
898
|
+
annotationId: string | null;
|
|
895
899
|
classDraftId: string | null;
|
|
896
900
|
folderId: string | null;
|
|
897
901
|
conversationId: string | null;
|
|
@@ -902,15 +906,11 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
902
906
|
} & {
|
|
903
907
|
path: string;
|
|
904
908
|
type: string;
|
|
905
|
-
id: string;
|
|
906
|
-
userId: string | null;
|
|
907
909
|
name: string;
|
|
910
|
+
id: string;
|
|
908
911
|
size: number | null;
|
|
912
|
+
userId: string | null;
|
|
909
913
|
uploadedAt: Date | null;
|
|
910
|
-
assignmentId: string | null;
|
|
911
|
-
submissionId: string | null;
|
|
912
|
-
thumbnailId: string | null;
|
|
913
|
-
annotationId: string | null;
|
|
914
914
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
915
915
|
uploadUrl: string | null;
|
|
916
916
|
uploadExpiresAt: Date | null;
|
|
@@ -920,6 +920,10 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
920
920
|
uploadRetryCount: number;
|
|
921
921
|
isOrphaned: boolean;
|
|
922
922
|
cleanupAt: Date | null;
|
|
923
|
+
thumbnailId: string | null;
|
|
924
|
+
assignmentId: string | null;
|
|
925
|
+
submissionId: string | null;
|
|
926
|
+
annotationId: string | null;
|
|
923
927
|
classDraftId: string | null;
|
|
924
928
|
folderId: string | null;
|
|
925
929
|
conversationId: string | null;
|
|
@@ -927,14 +931,26 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
927
931
|
announcementId: string | null;
|
|
928
932
|
schoolDevelopementProgramId: string | null;
|
|
929
933
|
})[];
|
|
934
|
+
student: {
|
|
935
|
+
id: string;
|
|
936
|
+
username: string;
|
|
937
|
+
profile: {
|
|
938
|
+
displayName: string | null;
|
|
939
|
+
profilePicture: string | null;
|
|
940
|
+
profilePictureThumbnail: string | null;
|
|
941
|
+
} | null;
|
|
942
|
+
};
|
|
930
943
|
} & {
|
|
931
944
|
id: string;
|
|
932
|
-
createdAt: Date;
|
|
933
945
|
assignmentId: string;
|
|
946
|
+
createdAt: Date;
|
|
934
947
|
modifiedAt: Date;
|
|
935
948
|
studentId: string;
|
|
936
949
|
extendedResponse: string | null;
|
|
937
950
|
gradeReceived: number | null;
|
|
951
|
+
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
952
|
+
recommendationUpdatedAt: Date | null;
|
|
953
|
+
targetedAssignmentId: string | null;
|
|
938
954
|
rubricState: string | null;
|
|
939
955
|
teacherComments: string | null;
|
|
940
956
|
submittedAt: Date | null;
|
|
@@ -944,8 +960,8 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
944
960
|
export declare function attachAssignmentToEventRecord(teacherId: string, assignmentId: string, eventId: string): Promise<{
|
|
945
961
|
assignment: {
|
|
946
962
|
section: {
|
|
947
|
-
id: string;
|
|
948
963
|
name: string;
|
|
964
|
+
id: string;
|
|
949
965
|
} | null;
|
|
950
966
|
teacher: {
|
|
951
967
|
id: string;
|
|
@@ -953,12 +969,12 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
953
969
|
};
|
|
954
970
|
attachments: {
|
|
955
971
|
type: string;
|
|
956
|
-
id: string;
|
|
957
972
|
name: string;
|
|
973
|
+
id: string;
|
|
958
974
|
}[];
|
|
959
975
|
eventAttached: {
|
|
960
|
-
id: string;
|
|
961
976
|
name: string | null;
|
|
977
|
+
id: string;
|
|
962
978
|
color: string | null;
|
|
963
979
|
startTime: Date;
|
|
964
980
|
endTime: Date;
|
|
@@ -967,13 +983,11 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
967
983
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
968
984
|
id: string;
|
|
969
985
|
createdAt: Date | null;
|
|
986
|
+
modifiedAt: Date | null;
|
|
970
987
|
classId: string;
|
|
971
988
|
title: string;
|
|
972
|
-
dueDate: Date;
|
|
973
|
-
maxGrade: number | null;
|
|
974
|
-
eventId: string | null;
|
|
975
989
|
instructions: string;
|
|
976
|
-
|
|
990
|
+
dueDate: Date;
|
|
977
991
|
teacherId: string;
|
|
978
992
|
acceptFiles: boolean;
|
|
979
993
|
acceptExtendedResponse: boolean;
|
|
@@ -982,9 +996,11 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
982
996
|
aiPolicyLevel: number;
|
|
983
997
|
sectionId: string | null;
|
|
984
998
|
graded: boolean;
|
|
999
|
+
maxGrade: number | null;
|
|
985
1000
|
weight: number;
|
|
986
1001
|
inProgress: boolean;
|
|
987
1002
|
template: boolean;
|
|
1003
|
+
eventId: string | null;
|
|
988
1004
|
markSchemeId: string | null;
|
|
989
1005
|
order: number | null;
|
|
990
1006
|
gradingBoundaryId: string | null;
|
|
@@ -993,8 +1009,8 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
993
1009
|
export declare function detachAssignmentFromEventRecord(teacherId: string, assignmentId: string): Promise<{
|
|
994
1010
|
assignment: {
|
|
995
1011
|
section: {
|
|
996
|
-
id: string;
|
|
997
1012
|
name: string;
|
|
1013
|
+
id: string;
|
|
998
1014
|
} | null;
|
|
999
1015
|
teacher: {
|
|
1000
1016
|
id: string;
|
|
@@ -1002,12 +1018,12 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1002
1018
|
};
|
|
1003
1019
|
attachments: {
|
|
1004
1020
|
type: string;
|
|
1005
|
-
id: string;
|
|
1006
1021
|
name: string;
|
|
1022
|
+
id: string;
|
|
1007
1023
|
}[];
|
|
1008
1024
|
eventAttached: {
|
|
1009
|
-
id: string;
|
|
1010
1025
|
name: string | null;
|
|
1026
|
+
id: string;
|
|
1011
1027
|
color: string | null;
|
|
1012
1028
|
startTime: Date;
|
|
1013
1029
|
endTime: Date;
|
|
@@ -1016,13 +1032,11 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1016
1032
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1017
1033
|
id: string;
|
|
1018
1034
|
createdAt: Date | null;
|
|
1035
|
+
modifiedAt: Date | null;
|
|
1019
1036
|
classId: string;
|
|
1020
1037
|
title: string;
|
|
1021
|
-
dueDate: Date;
|
|
1022
|
-
maxGrade: number | null;
|
|
1023
|
-
eventId: string | null;
|
|
1024
1038
|
instructions: string;
|
|
1025
|
-
|
|
1039
|
+
dueDate: Date;
|
|
1026
1040
|
teacherId: string;
|
|
1027
1041
|
acceptFiles: boolean;
|
|
1028
1042
|
acceptExtendedResponse: boolean;
|
|
@@ -1031,9 +1045,11 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1031
1045
|
aiPolicyLevel: number;
|
|
1032
1046
|
sectionId: string | null;
|
|
1033
1047
|
graded: boolean;
|
|
1048
|
+
maxGrade: number | null;
|
|
1034
1049
|
weight: number;
|
|
1035
1050
|
inProgress: boolean;
|
|
1036
1051
|
template: boolean;
|
|
1052
|
+
eventId: string | null;
|
|
1037
1053
|
markSchemeId: string | null;
|
|
1038
1054
|
order: number | null;
|
|
1039
1055
|
gradingBoundaryId: string | null;
|
|
@@ -1041,23 +1057,28 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1041
1057
|
}>;
|
|
1042
1058
|
export declare function getAvailableEventsForAssignment(teacherId: string, assignmentId: string): Promise<{
|
|
1043
1059
|
events: {
|
|
1044
|
-
id: string;
|
|
1045
|
-
location: string | null;
|
|
1046
1060
|
name: string | null;
|
|
1061
|
+
id: string;
|
|
1047
1062
|
color: string | null;
|
|
1048
1063
|
startTime: Date;
|
|
1049
1064
|
endTime: Date;
|
|
1065
|
+
location: string | null;
|
|
1050
1066
|
remarks: string | null;
|
|
1051
1067
|
}[];
|
|
1052
1068
|
}>;
|
|
1053
1069
|
export declare function attachMarkSchemeRecord(teacherId: string, assignmentId: string, markSchemeId: string | null): Promise<{
|
|
1054
1070
|
section: {
|
|
1055
|
-
id: string;
|
|
1056
|
-
classId: string;
|
|
1057
1071
|
name: string;
|
|
1072
|
+
id: string;
|
|
1058
1073
|
color: string | null;
|
|
1074
|
+
classId: string;
|
|
1059
1075
|
order: number | null;
|
|
1060
1076
|
} | null;
|
|
1077
|
+
markScheme: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
classId: string;
|
|
1080
|
+
structured: string;
|
|
1081
|
+
} | null;
|
|
1061
1082
|
teacher: {
|
|
1062
1083
|
id: string;
|
|
1063
1084
|
username: string;
|
|
@@ -1070,15 +1091,11 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1070
1091
|
attachments: {
|
|
1071
1092
|
path: string;
|
|
1072
1093
|
type: string;
|
|
1073
|
-
id: string;
|
|
1074
|
-
userId: string | null;
|
|
1075
1094
|
name: string;
|
|
1095
|
+
id: string;
|
|
1076
1096
|
size: number | null;
|
|
1097
|
+
userId: string | null;
|
|
1077
1098
|
uploadedAt: Date | null;
|
|
1078
|
-
assignmentId: string | null;
|
|
1079
|
-
submissionId: string | null;
|
|
1080
|
-
thumbnailId: string | null;
|
|
1081
|
-
annotationId: string | null;
|
|
1082
1099
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1083
1100
|
uploadUrl: string | null;
|
|
1084
1101
|
uploadExpiresAt: Date | null;
|
|
@@ -1088,6 +1105,10 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1088
1105
|
uploadRetryCount: number;
|
|
1089
1106
|
isOrphaned: boolean;
|
|
1090
1107
|
cleanupAt: Date | null;
|
|
1108
|
+
thumbnailId: string | null;
|
|
1109
|
+
assignmentId: string | null;
|
|
1110
|
+
submissionId: string | null;
|
|
1111
|
+
annotationId: string | null;
|
|
1091
1112
|
classDraftId: string | null;
|
|
1092
1113
|
folderId: string | null;
|
|
1093
1114
|
conversationId: string | null;
|
|
@@ -1096,32 +1117,25 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1096
1117
|
schoolDevelopementProgramId: string | null;
|
|
1097
1118
|
}[];
|
|
1098
1119
|
eventAttached: {
|
|
1120
|
+
name: string | null;
|
|
1099
1121
|
id: string;
|
|
1100
1122
|
userId: string | null;
|
|
1101
|
-
location: string | null;
|
|
1102
|
-
classId: string | null;
|
|
1103
|
-
name: string | null;
|
|
1104
1123
|
color: string | null;
|
|
1124
|
+
classId: string | null;
|
|
1105
1125
|
startTime: Date;
|
|
1106
1126
|
endTime: Date;
|
|
1127
|
+
location: string | null;
|
|
1107
1128
|
remarks: string | null;
|
|
1108
1129
|
} | null;
|
|
1109
|
-
markScheme: {
|
|
1110
|
-
id: string;
|
|
1111
|
-
classId: string;
|
|
1112
|
-
structured: string;
|
|
1113
|
-
} | null;
|
|
1114
1130
|
} & {
|
|
1115
1131
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1116
1132
|
id: string;
|
|
1117
1133
|
createdAt: Date | null;
|
|
1134
|
+
modifiedAt: Date | null;
|
|
1118
1135
|
classId: string;
|
|
1119
1136
|
title: string;
|
|
1120
|
-
dueDate: Date;
|
|
1121
|
-
maxGrade: number | null;
|
|
1122
|
-
eventId: string | null;
|
|
1123
1137
|
instructions: string;
|
|
1124
|
-
|
|
1138
|
+
dueDate: Date;
|
|
1125
1139
|
teacherId: string;
|
|
1126
1140
|
acceptFiles: boolean;
|
|
1127
1141
|
acceptExtendedResponse: boolean;
|
|
@@ -1130,21 +1144,28 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1130
1144
|
aiPolicyLevel: number;
|
|
1131
1145
|
sectionId: string | null;
|
|
1132
1146
|
graded: boolean;
|
|
1147
|
+
maxGrade: number | null;
|
|
1133
1148
|
weight: number;
|
|
1134
1149
|
inProgress: boolean;
|
|
1135
1150
|
template: boolean;
|
|
1151
|
+
eventId: string | null;
|
|
1136
1152
|
markSchemeId: string | null;
|
|
1137
1153
|
order: number | null;
|
|
1138
1154
|
gradingBoundaryId: string | null;
|
|
1139
1155
|
}>;
|
|
1140
1156
|
export declare function detachMarkSchemeRecord(teacherId: string, assignmentId: string): Promise<{
|
|
1141
1157
|
section: {
|
|
1142
|
-
id: string;
|
|
1143
|
-
classId: string;
|
|
1144
1158
|
name: string;
|
|
1159
|
+
id: string;
|
|
1145
1160
|
color: string | null;
|
|
1161
|
+
classId: string;
|
|
1146
1162
|
order: number | null;
|
|
1147
1163
|
} | null;
|
|
1164
|
+
markScheme: {
|
|
1165
|
+
id: string;
|
|
1166
|
+
classId: string;
|
|
1167
|
+
structured: string;
|
|
1168
|
+
} | null;
|
|
1148
1169
|
teacher: {
|
|
1149
1170
|
id: string;
|
|
1150
1171
|
username: string;
|
|
@@ -1157,15 +1178,11 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1157
1178
|
attachments: {
|
|
1158
1179
|
path: string;
|
|
1159
1180
|
type: string;
|
|
1160
|
-
id: string;
|
|
1161
|
-
userId: string | null;
|
|
1162
1181
|
name: string;
|
|
1182
|
+
id: string;
|
|
1163
1183
|
size: number | null;
|
|
1184
|
+
userId: string | null;
|
|
1164
1185
|
uploadedAt: Date | null;
|
|
1165
|
-
assignmentId: string | null;
|
|
1166
|
-
submissionId: string | null;
|
|
1167
|
-
thumbnailId: string | null;
|
|
1168
|
-
annotationId: string | null;
|
|
1169
1186
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1170
1187
|
uploadUrl: string | null;
|
|
1171
1188
|
uploadExpiresAt: Date | null;
|
|
@@ -1175,6 +1192,10 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1175
1192
|
uploadRetryCount: number;
|
|
1176
1193
|
isOrphaned: boolean;
|
|
1177
1194
|
cleanupAt: Date | null;
|
|
1195
|
+
thumbnailId: string | null;
|
|
1196
|
+
assignmentId: string | null;
|
|
1197
|
+
submissionId: string | null;
|
|
1198
|
+
annotationId: string | null;
|
|
1178
1199
|
classDraftId: string | null;
|
|
1179
1200
|
folderId: string | null;
|
|
1180
1201
|
conversationId: string | null;
|
|
@@ -1183,32 +1204,25 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1183
1204
|
schoolDevelopementProgramId: string | null;
|
|
1184
1205
|
}[];
|
|
1185
1206
|
eventAttached: {
|
|
1207
|
+
name: string | null;
|
|
1186
1208
|
id: string;
|
|
1187
1209
|
userId: string | null;
|
|
1188
|
-
location: string | null;
|
|
1189
|
-
classId: string | null;
|
|
1190
|
-
name: string | null;
|
|
1191
1210
|
color: string | null;
|
|
1211
|
+
classId: string | null;
|
|
1192
1212
|
startTime: Date;
|
|
1193
1213
|
endTime: Date;
|
|
1214
|
+
location: string | null;
|
|
1194
1215
|
remarks: string | null;
|
|
1195
1216
|
} | null;
|
|
1196
|
-
markScheme: {
|
|
1197
|
-
id: string;
|
|
1198
|
-
classId: string;
|
|
1199
|
-
structured: string;
|
|
1200
|
-
} | null;
|
|
1201
1217
|
} & {
|
|
1202
1218
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1203
1219
|
id: string;
|
|
1204
1220
|
createdAt: Date | null;
|
|
1221
|
+
modifiedAt: Date | null;
|
|
1205
1222
|
classId: string;
|
|
1206
1223
|
title: string;
|
|
1207
|
-
dueDate: Date;
|
|
1208
|
-
maxGrade: number | null;
|
|
1209
|
-
eventId: string | null;
|
|
1210
1224
|
instructions: string;
|
|
1211
|
-
|
|
1225
|
+
dueDate: Date;
|
|
1212
1226
|
teacherId: string;
|
|
1213
1227
|
acceptFiles: boolean;
|
|
1214
1228
|
acceptExtendedResponse: boolean;
|
|
@@ -1217,21 +1231,28 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1217
1231
|
aiPolicyLevel: number;
|
|
1218
1232
|
sectionId: string | null;
|
|
1219
1233
|
graded: boolean;
|
|
1234
|
+
maxGrade: number | null;
|
|
1220
1235
|
weight: number;
|
|
1221
1236
|
inProgress: boolean;
|
|
1222
1237
|
template: boolean;
|
|
1238
|
+
eventId: string | null;
|
|
1223
1239
|
markSchemeId: string | null;
|
|
1224
1240
|
order: number | null;
|
|
1225
1241
|
gradingBoundaryId: string | null;
|
|
1226
1242
|
}>;
|
|
1227
1243
|
export declare function attachGradingBoundaryRecord(teacherId: string, assignmentId: string, gradingBoundaryId: string | null): Promise<{
|
|
1228
1244
|
section: {
|
|
1229
|
-
id: string;
|
|
1230
|
-
classId: string;
|
|
1231
1245
|
name: string;
|
|
1246
|
+
id: string;
|
|
1232
1247
|
color: string | null;
|
|
1248
|
+
classId: string;
|
|
1233
1249
|
order: number | null;
|
|
1234
1250
|
} | null;
|
|
1251
|
+
gradingBoundary: {
|
|
1252
|
+
id: string;
|
|
1253
|
+
classId: string;
|
|
1254
|
+
structured: string;
|
|
1255
|
+
} | null;
|
|
1235
1256
|
teacher: {
|
|
1236
1257
|
id: string;
|
|
1237
1258
|
username: string;
|
|
@@ -1244,15 +1265,11 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1244
1265
|
attachments: {
|
|
1245
1266
|
path: string;
|
|
1246
1267
|
type: string;
|
|
1247
|
-
id: string;
|
|
1248
|
-
userId: string | null;
|
|
1249
1268
|
name: string;
|
|
1269
|
+
id: string;
|
|
1250
1270
|
size: number | null;
|
|
1271
|
+
userId: string | null;
|
|
1251
1272
|
uploadedAt: Date | null;
|
|
1252
|
-
assignmentId: string | null;
|
|
1253
|
-
submissionId: string | null;
|
|
1254
|
-
thumbnailId: string | null;
|
|
1255
|
-
annotationId: string | null;
|
|
1256
1273
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1257
1274
|
uploadUrl: string | null;
|
|
1258
1275
|
uploadExpiresAt: Date | null;
|
|
@@ -1262,6 +1279,10 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1262
1279
|
uploadRetryCount: number;
|
|
1263
1280
|
isOrphaned: boolean;
|
|
1264
1281
|
cleanupAt: Date | null;
|
|
1282
|
+
thumbnailId: string | null;
|
|
1283
|
+
assignmentId: string | null;
|
|
1284
|
+
submissionId: string | null;
|
|
1285
|
+
annotationId: string | null;
|
|
1265
1286
|
classDraftId: string | null;
|
|
1266
1287
|
folderId: string | null;
|
|
1267
1288
|
conversationId: string | null;
|
|
@@ -1270,32 +1291,25 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1270
1291
|
schoolDevelopementProgramId: string | null;
|
|
1271
1292
|
}[];
|
|
1272
1293
|
eventAttached: {
|
|
1294
|
+
name: string | null;
|
|
1273
1295
|
id: string;
|
|
1274
1296
|
userId: string | null;
|
|
1275
|
-
location: string | null;
|
|
1276
|
-
classId: string | null;
|
|
1277
|
-
name: string | null;
|
|
1278
1297
|
color: string | null;
|
|
1298
|
+
classId: string | null;
|
|
1279
1299
|
startTime: Date;
|
|
1280
1300
|
endTime: Date;
|
|
1301
|
+
location: string | null;
|
|
1281
1302
|
remarks: string | null;
|
|
1282
1303
|
} | null;
|
|
1283
|
-
gradingBoundary: {
|
|
1284
|
-
id: string;
|
|
1285
|
-
classId: string;
|
|
1286
|
-
structured: string;
|
|
1287
|
-
} | null;
|
|
1288
1304
|
} & {
|
|
1289
1305
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1290
1306
|
id: string;
|
|
1291
1307
|
createdAt: Date | null;
|
|
1308
|
+
modifiedAt: Date | null;
|
|
1292
1309
|
classId: string;
|
|
1293
1310
|
title: string;
|
|
1294
|
-
dueDate: Date;
|
|
1295
|
-
maxGrade: number | null;
|
|
1296
|
-
eventId: string | null;
|
|
1297
1311
|
instructions: string;
|
|
1298
|
-
|
|
1312
|
+
dueDate: Date;
|
|
1299
1313
|
teacherId: string;
|
|
1300
1314
|
acceptFiles: boolean;
|
|
1301
1315
|
acceptExtendedResponse: boolean;
|
|
@@ -1304,21 +1318,28 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1304
1318
|
aiPolicyLevel: number;
|
|
1305
1319
|
sectionId: string | null;
|
|
1306
1320
|
graded: boolean;
|
|
1321
|
+
maxGrade: number | null;
|
|
1307
1322
|
weight: number;
|
|
1308
1323
|
inProgress: boolean;
|
|
1309
1324
|
template: boolean;
|
|
1325
|
+
eventId: string | null;
|
|
1310
1326
|
markSchemeId: string | null;
|
|
1311
1327
|
order: number | null;
|
|
1312
1328
|
gradingBoundaryId: string | null;
|
|
1313
1329
|
}>;
|
|
1314
1330
|
export declare function detachGradingBoundaryRecord(teacherId: string, assignmentId: string): Promise<{
|
|
1315
1331
|
section: {
|
|
1316
|
-
id: string;
|
|
1317
|
-
classId: string;
|
|
1318
1332
|
name: string;
|
|
1333
|
+
id: string;
|
|
1319
1334
|
color: string | null;
|
|
1335
|
+
classId: string;
|
|
1320
1336
|
order: number | null;
|
|
1321
1337
|
} | null;
|
|
1338
|
+
gradingBoundary: {
|
|
1339
|
+
id: string;
|
|
1340
|
+
classId: string;
|
|
1341
|
+
structured: string;
|
|
1342
|
+
} | null;
|
|
1322
1343
|
teacher: {
|
|
1323
1344
|
id: string;
|
|
1324
1345
|
username: string;
|
|
@@ -1331,15 +1352,11 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1331
1352
|
attachments: {
|
|
1332
1353
|
path: string;
|
|
1333
1354
|
type: string;
|
|
1334
|
-
id: string;
|
|
1335
|
-
userId: string | null;
|
|
1336
1355
|
name: string;
|
|
1356
|
+
id: string;
|
|
1337
1357
|
size: number | null;
|
|
1358
|
+
userId: string | null;
|
|
1338
1359
|
uploadedAt: Date | null;
|
|
1339
|
-
assignmentId: string | null;
|
|
1340
|
-
submissionId: string | null;
|
|
1341
|
-
thumbnailId: string | null;
|
|
1342
|
-
annotationId: string | null;
|
|
1343
1360
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1344
1361
|
uploadUrl: string | null;
|
|
1345
1362
|
uploadExpiresAt: Date | null;
|
|
@@ -1349,6 +1366,10 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1349
1366
|
uploadRetryCount: number;
|
|
1350
1367
|
isOrphaned: boolean;
|
|
1351
1368
|
cleanupAt: Date | null;
|
|
1369
|
+
thumbnailId: string | null;
|
|
1370
|
+
assignmentId: string | null;
|
|
1371
|
+
submissionId: string | null;
|
|
1372
|
+
annotationId: string | null;
|
|
1352
1373
|
classDraftId: string | null;
|
|
1353
1374
|
folderId: string | null;
|
|
1354
1375
|
conversationId: string | null;
|
|
@@ -1357,32 +1378,25 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1357
1378
|
schoolDevelopementProgramId: string | null;
|
|
1358
1379
|
}[];
|
|
1359
1380
|
eventAttached: {
|
|
1381
|
+
name: string | null;
|
|
1360
1382
|
id: string;
|
|
1361
1383
|
userId: string | null;
|
|
1362
|
-
location: string | null;
|
|
1363
|
-
classId: string | null;
|
|
1364
|
-
name: string | null;
|
|
1365
1384
|
color: string | null;
|
|
1385
|
+
classId: string | null;
|
|
1366
1386
|
startTime: Date;
|
|
1367
1387
|
endTime: Date;
|
|
1388
|
+
location: string | null;
|
|
1368
1389
|
remarks: string | null;
|
|
1369
1390
|
} | null;
|
|
1370
|
-
gradingBoundary: {
|
|
1371
|
-
id: string;
|
|
1372
|
-
classId: string;
|
|
1373
|
-
structured: string;
|
|
1374
|
-
} | null;
|
|
1375
1391
|
} & {
|
|
1376
1392
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1377
1393
|
id: string;
|
|
1378
1394
|
createdAt: Date | null;
|
|
1395
|
+
modifiedAt: Date | null;
|
|
1379
1396
|
classId: string;
|
|
1380
1397
|
title: string;
|
|
1381
|
-
dueDate: Date;
|
|
1382
|
-
maxGrade: number | null;
|
|
1383
|
-
eventId: string | null;
|
|
1384
1398
|
instructions: string;
|
|
1385
|
-
|
|
1399
|
+
dueDate: Date;
|
|
1386
1400
|
teacherId: string;
|
|
1387
1401
|
acceptFiles: boolean;
|
|
1388
1402
|
acceptExtendedResponse: boolean;
|
|
@@ -1391,9 +1405,11 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1391
1405
|
aiPolicyLevel: number;
|
|
1392
1406
|
sectionId: string | null;
|
|
1393
1407
|
graded: boolean;
|
|
1408
|
+
maxGrade: number | null;
|
|
1394
1409
|
weight: number;
|
|
1395
1410
|
inProgress: boolean;
|
|
1396
1411
|
template: boolean;
|
|
1412
|
+
eventId: string | null;
|
|
1397
1413
|
markSchemeId: string | null;
|
|
1398
1414
|
order: number | null;
|
|
1399
1415
|
gradingBoundaryId: string | null;
|
|
@@ -1407,13 +1423,11 @@ export declare function reorderAssignmentRecord(teacherId: string, input: {
|
|
|
1407
1423
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1408
1424
|
id: string;
|
|
1409
1425
|
createdAt: Date | null;
|
|
1426
|
+
modifiedAt: Date | null;
|
|
1410
1427
|
classId: string;
|
|
1411
1428
|
title: string;
|
|
1412
|
-
dueDate: Date;
|
|
1413
|
-
maxGrade: number | null;
|
|
1414
|
-
eventId: string | null;
|
|
1415
1429
|
instructions: string;
|
|
1416
|
-
|
|
1430
|
+
dueDate: Date;
|
|
1417
1431
|
teacherId: string;
|
|
1418
1432
|
acceptFiles: boolean;
|
|
1419
1433
|
acceptExtendedResponse: boolean;
|
|
@@ -1422,9 +1436,11 @@ export declare function reorderAssignmentRecord(teacherId: string, input: {
|
|
|
1422
1436
|
aiPolicyLevel: number;
|
|
1423
1437
|
sectionId: string | null;
|
|
1424
1438
|
graded: boolean;
|
|
1439
|
+
maxGrade: number | null;
|
|
1425
1440
|
weight: number;
|
|
1426
1441
|
inProgress: boolean;
|
|
1427
1442
|
template: boolean;
|
|
1443
|
+
eventId: string | null;
|
|
1428
1444
|
markSchemeId: string | null;
|
|
1429
1445
|
order: number | null;
|
|
1430
1446
|
gradingBoundaryId: string | null;
|
|
@@ -1437,13 +1453,11 @@ export declare function moveAssignmentRecord(teacherId: string, input: {
|
|
|
1437
1453
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1438
1454
|
id: string;
|
|
1439
1455
|
createdAt: Date | null;
|
|
1456
|
+
modifiedAt: Date | null;
|
|
1440
1457
|
classId: string;
|
|
1441
1458
|
title: string;
|
|
1442
|
-
dueDate: Date;
|
|
1443
|
-
maxGrade: number | null;
|
|
1444
|
-
eventId: string | null;
|
|
1445
1459
|
instructions: string;
|
|
1446
|
-
|
|
1460
|
+
dueDate: Date;
|
|
1447
1461
|
teacherId: string;
|
|
1448
1462
|
acceptFiles: boolean;
|
|
1449
1463
|
acceptExtendedResponse: boolean;
|
|
@@ -1452,9 +1466,11 @@ export declare function moveAssignmentRecord(teacherId: string, input: {
|
|
|
1452
1466
|
aiPolicyLevel: number;
|
|
1453
1467
|
sectionId: string | null;
|
|
1454
1468
|
graded: boolean;
|
|
1469
|
+
maxGrade: number | null;
|
|
1455
1470
|
weight: number;
|
|
1456
1471
|
inProgress: boolean;
|
|
1457
1472
|
template: boolean;
|
|
1473
|
+
eventId: string | null;
|
|
1458
1474
|
markSchemeId: string | null;
|
|
1459
1475
|
order: number | null;
|
|
1460
1476
|
gradingBoundaryId: string | null;
|