@studious-lms/server 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deploy.yml +1 -1
- package/dist/instrument.js +3 -3
- package/dist/instrument.js.map +1 -1
- package/dist/lib/inferDocumentFormat.d.ts +10 -0
- package/dist/lib/inferDocumentFormat.d.ts.map +1 -0
- package/dist/lib/inferDocumentFormat.js +48 -0
- package/dist/lib/inferDocumentFormat.js.map +1 -0
- package/dist/lib/legal.d.ts +3 -0
- package/dist/lib/legal.d.ts.map +1 -0
- package/dist/lib/legal.js +6 -0
- package/dist/lib/legal.js.map +1 -0
- package/dist/models/announcement.d.ts +47 -45
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +75 -75
- package/dist/models/auth.d.ts +8 -0
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/auth.js +4 -2
- package/dist/models/auth.js.map +1 -1
- package/dist/models/class.d.ts +13 -13
- package/dist/models/comment.d.ts +6 -6
- package/dist/models/conversation.d.ts +23 -23
- package/dist/models/event.d.ts +20 -18
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +33 -9
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/labChat.d.ts +4 -4
- package/dist/models/marketing.d.ts +2 -15
- package/dist/models/marketing.d.ts.map +1 -1
- package/dist/models/marketing.js +12 -4
- package/dist/models/marketing.js.map +1 -1
- package/dist/models/message.d.ts +13 -13
- package/dist/models/newtonChat.d.ts +3 -3
- package/dist/models/notification.d.ts +4 -4
- package/dist/models/worksheet.d.ts +121 -121
- package/dist/pipelines/aiLabChat.d.ts +7 -1
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +153 -67
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +34 -195
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
- package/dist/pipelines/aiLabChatContract.js +9 -19
- package/dist/pipelines/aiLabChatContract.js.map +1 -1
- package/dist/pipelines/gradeWorksheet.d.ts +6 -6
- package/dist/pipelines/labChatPrompt.d.ts +8 -3
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +52 -14
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
- package/dist/routers/_app.d.ts +750 -546
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/announcement.d.ts +40 -40
- package/dist/routers/assignment.d.ts +131 -121
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/auth.d.ts +2 -0
- package/dist/routers/auth.d.ts.map +1 -1
- package/dist/routers/auth.js +15 -2
- package/dist/routers/auth.js.map +1 -1
- package/dist/routers/class.d.ts +12 -8
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +5 -5
- package/dist/routers/conversation.d.ts +6 -6
- package/dist/routers/discussion.d.ts +3 -3
- package/dist/routers/embedding.d.ts +6 -2
- package/dist/routers/embedding.d.ts.map +1 -1
- package/dist/routers/embedding.js +44 -36
- package/dist/routers/embedding.js.map +1 -1
- package/dist/routers/event.d.ts +20 -18
- package/dist/routers/event.d.ts.map +1 -1
- package/dist/routers/file.d.ts +2 -2
- package/dist/routers/labChat.d.ts +3 -3
- package/dist/routers/marketing.d.ts +0 -13
- package/dist/routers/marketing.d.ts.map +1 -1
- package/dist/routers/notifications.d.ts +4 -4
- package/dist/routers/school.d.ts +4 -0
- package/dist/routers/school.d.ts.map +1 -1
- package/dist/routers/search.d.ts +2 -2
- package/dist/routers/user.d.ts +89 -0
- package/dist/routers/user.d.ts.map +1 -1
- package/dist/routers/user.js +19 -2
- package/dist/routers/user.js.map +1 -1
- package/dist/routers/worksheet.d.ts +44 -44
- package/dist/routes/aiStream.d.ts.map +1 -1
- package/dist/routes/aiStream.js +41 -11
- package/dist/routes/aiStream.js.map +1 -1
- package/dist/seedDatabase.d.ts +3 -1
- package/dist/seedDatabase.d.ts.map +1 -1
- package/dist/services/aiChatStream.d.ts +20 -0
- package/dist/services/aiChatStream.d.ts.map +1 -1
- package/dist/services/aiChatStream.js +110 -13
- package/dist/services/aiChatStream.js.map +1 -1
- package/dist/services/aiModifierTools.d.ts +0 -16
- package/dist/services/aiModifierTools.d.ts.map +1 -1
- package/dist/services/aiModifierTools.js +112 -3
- package/dist/services/aiModifierTools.js.map +1 -1
- package/dist/services/aiProposalTools.d.ts.map +1 -1
- package/dist/services/aiProposalTools.js +25 -25
- package/dist/services/aiProposalTools.js.map +1 -1
- package/dist/services/aiTools.js +3 -3
- package/dist/services/aiTools.js.map +1 -1
- package/dist/services/announcement.d.ts +34 -34
- package/dist/services/assignment.d.ts +121 -111
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +4 -2
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/auth.d.ts +2 -0
- package/dist/services/auth.d.ts.map +1 -1
- package/dist/services/auth.js +13 -4
- package/dist/services/auth.js.map +1 -1
- package/dist/services/class.d.ts +10 -6
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +7 -3
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +5 -5
- package/dist/services/conversation.d.ts +6 -6
- package/dist/services/discussion.d.ts.map +1 -1
- package/dist/services/discussion.js +9 -2
- package/dist/services/discussion.js.map +1 -1
- package/dist/services/embedding.d.ts +19 -1
- package/dist/services/embedding.d.ts.map +1 -1
- package/dist/services/embedding.js +154 -8
- package/dist/services/embedding.js.map +1 -1
- package/dist/services/event.d.ts +20 -18
- package/dist/services/event.d.ts.map +1 -1
- package/dist/services/file.d.ts +4 -4
- package/dist/services/folder.d.ts.map +1 -1
- package/dist/services/folder.js +32 -2
- package/dist/services/folder.js.map +1 -1
- package/dist/services/labChat.d.ts +3 -3
- package/dist/services/marketing.d.ts +1 -14
- package/dist/services/marketing.d.ts.map +1 -1
- package/dist/services/marketing.js +5 -5
- package/dist/services/marketing.js.map +1 -1
- package/dist/services/notification.d.ts +4 -4
- package/dist/services/openaiDocumentGen.d.ts +37 -0
- package/dist/services/openaiDocumentGen.d.ts.map +1 -0
- package/dist/services/openaiDocumentGen.js +262 -0
- package/dist/services/openaiDocumentGen.js.map +1 -0
- package/dist/services/school.d.ts +4 -0
- package/dist/services/school.d.ts.map +1 -1
- package/dist/services/search.d.ts +1 -1
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +27 -2
- package/dist/services/search.js.map +1 -1
- package/dist/services/userPrivacy.d.ts +86 -0
- package/dist/services/userPrivacy.d.ts.map +1 -0
- package/dist/services/userPrivacy.js +184 -0
- package/dist/services/userPrivacy.js.map +1 -0
- package/dist/services/worksheet.d.ts +66 -49
- package/dist/services/worksheet.d.ts.map +1 -1
- package/dist/services/worksheet.js +48 -3
- package/dist/services/worksheet.js.map +1 -1
- package/dist/utils/email.d.ts.map +1 -1
- package/dist/utils/email.js +7 -3
- package/dist/utils/email.js.map +1 -1
- package/dist/workers/processors/embedContent.d.ts.map +1 -1
- package/dist/workers/processors/embedContent.js +16 -25
- package/dist/workers/processors/embedContent.js.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260610140000_expand_embedding_source_types/migration.sql +4 -0
- package/prisma/migrations/20260611120000_add_user_terms_acceptance/migration.sql +3 -0
- package/prisma/schema.prisma +6 -0
- package/src/instrument.ts +1 -1
- package/src/lib/inferDocumentFormat.ts +58 -0
- package/src/lib/legal.ts +2 -0
- package/src/models/auth.ts +4 -0
- package/src/models/marketing.ts +10 -2
- package/src/pipelines/aiLabChat.ts +198 -74
- package/src/pipelines/aiLabChatContract.ts +7 -17
- package/src/pipelines/labChatPrompt.ts +64 -14
- package/src/routers/auth.ts +13 -0
- package/src/routers/embedding.ts +44 -39
- package/src/routers/user.ts +26 -0
- package/src/routes/aiStream.ts +47 -9
- package/src/services/aiChatStream.ts +133 -11
- package/src/services/aiModifierTools.ts +154 -1
- package/src/services/aiProposalTools.ts +27 -25
- package/src/services/aiTools.ts +1 -1
- package/src/services/assignment.ts +3 -0
- package/src/services/auth.ts +14 -2
- package/src/services/class.ts +7 -1
- package/src/services/discussion.ts +13 -0
- package/src/services/embedding.ts +167 -6
- package/src/services/folder.ts +31 -0
- package/src/services/marketing.ts +3 -3
- package/src/services/openaiDocumentGen.ts +319 -0
- package/src/services/search.ts +25 -1
- package/src/services/userPrivacy.ts +196 -0
- package/src/services/worksheet.ts +68 -1
- package/src/utils/email.ts +5 -1
- package/src/workers/processors/embedContent.ts +18 -22
- package/tests/helpers/registerInput.ts +20 -0
- package/tests/integration/globalSetup.ts +10 -18
- package/tests/integration/routers/auth.test.ts +13 -18
- package/tests/unit/lib/inferDocumentFormat.test.ts +33 -0
- package/tests/unit/services/aiChatStream.test.ts +92 -0
- package/tests/unit/services/openaiDocumentGen.test.ts +65 -0
|
@@ -42,10 +42,6 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
44
|
}[];
|
|
45
|
-
teacher: {
|
|
46
|
-
id: string;
|
|
47
|
-
username: string;
|
|
48
|
-
};
|
|
49
45
|
attachments: {
|
|
50
46
|
path: string;
|
|
51
47
|
type: string;
|
|
@@ -55,6 +51,10 @@ export declare function getAssignment(id: string, _classId: string): Promise<{
|
|
|
55
51
|
uploadedAt: Date | null;
|
|
56
52
|
thumbnailId: string | null;
|
|
57
53
|
}[];
|
|
54
|
+
teacher: {
|
|
55
|
+
id: string;
|
|
56
|
+
username: string;
|
|
57
|
+
};
|
|
58
58
|
eventAttached: {
|
|
59
59
|
id: string;
|
|
60
60
|
location: string | null;
|
|
@@ -155,6 +155,7 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
155
155
|
submissionId: string | null;
|
|
156
156
|
thumbnailId: string | null;
|
|
157
157
|
annotationId: string | null;
|
|
158
|
+
conversationId: string | null;
|
|
158
159
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
159
160
|
uploadUrl: string | null;
|
|
160
161
|
uploadExpiresAt: Date | null;
|
|
@@ -166,17 +167,12 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
166
167
|
cleanupAt: Date | null;
|
|
167
168
|
classDraftId: string | null;
|
|
168
169
|
folderId: string | null;
|
|
169
|
-
conversationId: string | null;
|
|
170
170
|
messageId: string | null;
|
|
171
171
|
announcementId: string | null;
|
|
172
172
|
discussionId: string | null;
|
|
173
173
|
discussionReplyId: string | null;
|
|
174
174
|
schoolDevelopementProgramId: string | null;
|
|
175
175
|
}[];
|
|
176
|
-
student: {
|
|
177
|
-
id: string;
|
|
178
|
-
username: string;
|
|
179
|
-
};
|
|
180
176
|
annotations: {
|
|
181
177
|
path: string;
|
|
182
178
|
type: string;
|
|
@@ -189,6 +185,7 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
189
185
|
submissionId: string | null;
|
|
190
186
|
thumbnailId: string | null;
|
|
191
187
|
annotationId: string | null;
|
|
188
|
+
conversationId: string | null;
|
|
192
189
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
193
190
|
uploadUrl: string | null;
|
|
194
191
|
uploadExpiresAt: Date | null;
|
|
@@ -200,18 +197,21 @@ export declare function getSubmission(assignmentId: string, studentId: string):
|
|
|
200
197
|
cleanupAt: Date | null;
|
|
201
198
|
classDraftId: string | null;
|
|
202
199
|
folderId: string | null;
|
|
203
|
-
conversationId: string | null;
|
|
204
200
|
messageId: string | null;
|
|
205
201
|
announcementId: string | null;
|
|
206
202
|
discussionId: string | null;
|
|
207
203
|
discussionReplyId: string | null;
|
|
208
204
|
schoolDevelopementProgramId: string | null;
|
|
209
205
|
}[];
|
|
206
|
+
student: {
|
|
207
|
+
id: string;
|
|
208
|
+
username: string;
|
|
209
|
+
};
|
|
210
210
|
id: string;
|
|
211
211
|
createdAt: Date;
|
|
212
212
|
assignmentId: string;
|
|
213
|
-
modifiedAt: Date;
|
|
214
213
|
studentId: string;
|
|
214
|
+
modifiedAt: Date;
|
|
215
215
|
extendedResponse: string | null;
|
|
216
216
|
gradeReceived: number | null;
|
|
217
217
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -289,6 +289,7 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
289
289
|
submissionId: string | null;
|
|
290
290
|
thumbnailId: string | null;
|
|
291
291
|
annotationId: string | null;
|
|
292
|
+
conversationId: string | null;
|
|
292
293
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
293
294
|
uploadUrl: string | null;
|
|
294
295
|
uploadExpiresAt: Date | null;
|
|
@@ -300,29 +301,12 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
300
301
|
cleanupAt: Date | null;
|
|
301
302
|
classDraftId: string | null;
|
|
302
303
|
folderId: string | null;
|
|
303
|
-
conversationId: string | null;
|
|
304
304
|
messageId: string | null;
|
|
305
305
|
announcementId: string | null;
|
|
306
306
|
discussionId: string | null;
|
|
307
307
|
discussionReplyId: string | null;
|
|
308
308
|
schoolDevelopementProgramId: string | null;
|
|
309
309
|
}[];
|
|
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
310
|
annotations: {
|
|
327
311
|
path: string;
|
|
328
312
|
type: string;
|
|
@@ -335,6 +319,7 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
335
319
|
submissionId: string | null;
|
|
336
320
|
thumbnailId: string | null;
|
|
337
321
|
annotationId: string | null;
|
|
322
|
+
conversationId: string | null;
|
|
338
323
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
339
324
|
uploadUrl: string | null;
|
|
340
325
|
uploadExpiresAt: Date | null;
|
|
@@ -346,18 +331,33 @@ export declare function getSubmissionById(submissionId: string, classId: string,
|
|
|
346
331
|
cleanupAt: Date | null;
|
|
347
332
|
classDraftId: string | null;
|
|
348
333
|
folderId: string | null;
|
|
349
|
-
conversationId: string | null;
|
|
350
334
|
messageId: string | null;
|
|
351
335
|
announcementId: string | null;
|
|
352
336
|
discussionId: string | null;
|
|
353
337
|
discussionReplyId: string | null;
|
|
354
338
|
schoolDevelopementProgramId: string | null;
|
|
355
339
|
}[];
|
|
340
|
+
student: {
|
|
341
|
+
id: string;
|
|
342
|
+
username: string;
|
|
343
|
+
profile: {
|
|
344
|
+
id: string;
|
|
345
|
+
userId: string;
|
|
346
|
+
displayName: string | null;
|
|
347
|
+
bio: string | null;
|
|
348
|
+
location: string | null;
|
|
349
|
+
website: string | null;
|
|
350
|
+
createdAt: Date;
|
|
351
|
+
updatedAt: Date;
|
|
352
|
+
profilePicture: string | null;
|
|
353
|
+
profilePictureThumbnail: string | null;
|
|
354
|
+
} | null;
|
|
355
|
+
};
|
|
356
356
|
id: string;
|
|
357
357
|
createdAt: Date;
|
|
358
358
|
assignmentId: string;
|
|
359
|
-
modifiedAt: Date;
|
|
360
359
|
studentId: string;
|
|
360
|
+
modifiedAt: Date;
|
|
361
361
|
extendedResponse: string | null;
|
|
362
362
|
gradeReceived: number | null;
|
|
363
363
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -432,6 +432,7 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
432
432
|
submissionId: string | null;
|
|
433
433
|
thumbnailId: string | null;
|
|
434
434
|
annotationId: string | null;
|
|
435
|
+
conversationId: string | null;
|
|
435
436
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
436
437
|
uploadUrl: string | null;
|
|
437
438
|
uploadExpiresAt: Date | null;
|
|
@@ -443,7 +444,6 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
443
444
|
cleanupAt: Date | null;
|
|
444
445
|
classDraftId: string | null;
|
|
445
446
|
folderId: string | null;
|
|
446
|
-
conversationId: string | null;
|
|
447
447
|
messageId: string | null;
|
|
448
448
|
announcementId: string | null;
|
|
449
449
|
discussionId: string | null;
|
|
@@ -462,6 +462,7 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
462
462
|
submissionId: string | null;
|
|
463
463
|
thumbnailId: string | null;
|
|
464
464
|
annotationId: string | null;
|
|
465
|
+
conversationId: string | null;
|
|
465
466
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
466
467
|
uploadUrl: string | null;
|
|
467
468
|
uploadExpiresAt: Date | null;
|
|
@@ -473,7 +474,6 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
473
474
|
cleanupAt: Date | null;
|
|
474
475
|
classDraftId: string | null;
|
|
475
476
|
folderId: string | null;
|
|
476
|
-
conversationId: string | null;
|
|
477
477
|
messageId: string | null;
|
|
478
478
|
announcementId: string | null;
|
|
479
479
|
discussionId: string | null;
|
|
@@ -492,8 +492,8 @@ export declare function getSubmissions(assignmentId: string, teacherId: string):
|
|
|
492
492
|
id: string;
|
|
493
493
|
createdAt: Date;
|
|
494
494
|
assignmentId: string;
|
|
495
|
-
modifiedAt: Date;
|
|
496
495
|
studentId: string;
|
|
496
|
+
modifiedAt: Date;
|
|
497
497
|
extendedResponse: string | null;
|
|
498
498
|
gradeReceived: number | null;
|
|
499
499
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -547,6 +547,11 @@ export declare function createAssignmentRecord(userId: string, input: {
|
|
|
547
547
|
title: string;
|
|
548
548
|
dueDate: Date;
|
|
549
549
|
maxGrade: number | null;
|
|
550
|
+
attachments: {
|
|
551
|
+
type: string;
|
|
552
|
+
id: string;
|
|
553
|
+
name: string;
|
|
554
|
+
}[];
|
|
550
555
|
instructions: string;
|
|
551
556
|
graded: boolean;
|
|
552
557
|
weight: number;
|
|
@@ -554,11 +559,6 @@ export declare function createAssignmentRecord(userId: string, input: {
|
|
|
554
559
|
id: string;
|
|
555
560
|
username: string;
|
|
556
561
|
};
|
|
557
|
-
attachments: {
|
|
558
|
-
type: string;
|
|
559
|
-
id: string;
|
|
560
|
-
name: string;
|
|
561
|
-
}[];
|
|
562
562
|
}>;
|
|
563
563
|
/**
|
|
564
564
|
* Duplicate an assignment into another class. Caller must teach both the source assignment’s
|
|
@@ -649,18 +649,6 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
649
649
|
title: string;
|
|
650
650
|
dueDate: Date;
|
|
651
651
|
maxGrade: number | null;
|
|
652
|
-
instructions: string;
|
|
653
|
-
graded: boolean;
|
|
654
|
-
weight: number;
|
|
655
|
-
markSchemeId: string | null;
|
|
656
|
-
teacher: {
|
|
657
|
-
id: string;
|
|
658
|
-
username: string;
|
|
659
|
-
email: string;
|
|
660
|
-
password: string;
|
|
661
|
-
verified: boolean;
|
|
662
|
-
schoolId: string | null;
|
|
663
|
-
};
|
|
664
652
|
attachments: {
|
|
665
653
|
path: string;
|
|
666
654
|
type: string;
|
|
@@ -680,6 +668,7 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
680
668
|
submissionId: string | null;
|
|
681
669
|
thumbnailId: string | null;
|
|
682
670
|
annotationId: string | null;
|
|
671
|
+
conversationId: string | null;
|
|
683
672
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
684
673
|
uploadUrl: string | null;
|
|
685
674
|
uploadExpiresAt: Date | null;
|
|
@@ -691,7 +680,6 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
691
680
|
cleanupAt: Date | null;
|
|
692
681
|
classDraftId: string | null;
|
|
693
682
|
folderId: string | null;
|
|
694
|
-
conversationId: string | null;
|
|
695
683
|
messageId: string | null;
|
|
696
684
|
announcementId: string | null;
|
|
697
685
|
discussionId: string | null;
|
|
@@ -700,6 +688,20 @@ export declare function updateAssignmentRecord(userId: string, input: {
|
|
|
700
688
|
} | null;
|
|
701
689
|
thumbnailId: string | null;
|
|
702
690
|
}[];
|
|
691
|
+
instructions: string;
|
|
692
|
+
graded: boolean;
|
|
693
|
+
weight: number;
|
|
694
|
+
markSchemeId: string | null;
|
|
695
|
+
teacher: {
|
|
696
|
+
id: string;
|
|
697
|
+
username: string;
|
|
698
|
+
email: string;
|
|
699
|
+
password: string;
|
|
700
|
+
verified: boolean;
|
|
701
|
+
termsAcceptedAt: Date | null;
|
|
702
|
+
termsVersion: string | null;
|
|
703
|
+
schoolId: string | null;
|
|
704
|
+
};
|
|
703
705
|
}>;
|
|
704
706
|
export declare function deleteAssignmentRecord(userId: string, id: string, _classId: string): Promise<{
|
|
705
707
|
id: string;
|
|
@@ -778,6 +780,7 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
778
780
|
submissionId: string | null;
|
|
779
781
|
thumbnailId: string | null;
|
|
780
782
|
annotationId: string | null;
|
|
783
|
+
conversationId: string | null;
|
|
781
784
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
782
785
|
uploadUrl: string | null;
|
|
783
786
|
uploadExpiresAt: Date | null;
|
|
@@ -789,7 +792,6 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
789
792
|
cleanupAt: Date | null;
|
|
790
793
|
classDraftId: string | null;
|
|
791
794
|
folderId: string | null;
|
|
792
|
-
conversationId: string | null;
|
|
793
795
|
messageId: string | null;
|
|
794
796
|
announcementId: string | null;
|
|
795
797
|
discussionId: string | null;
|
|
@@ -804,8 +806,8 @@ export declare function updateSubmissionRecord(userId: string, input: {
|
|
|
804
806
|
id: string;
|
|
805
807
|
createdAt: Date;
|
|
806
808
|
assignmentId: string;
|
|
807
|
-
modifiedAt: Date;
|
|
808
809
|
studentId: string;
|
|
810
|
+
modifiedAt: Date;
|
|
809
811
|
extendedResponse: string | null;
|
|
810
812
|
gradeReceived: number | null;
|
|
811
813
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -899,6 +901,7 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
899
901
|
submissionId: string | null;
|
|
900
902
|
thumbnailId: string | null;
|
|
901
903
|
annotationId: string | null;
|
|
904
|
+
conversationId: string | null;
|
|
902
905
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
903
906
|
uploadUrl: string | null;
|
|
904
907
|
uploadExpiresAt: Date | null;
|
|
@@ -910,7 +913,6 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
910
913
|
cleanupAt: Date | null;
|
|
911
914
|
classDraftId: string | null;
|
|
912
915
|
folderId: string | null;
|
|
913
|
-
conversationId: string | null;
|
|
914
916
|
messageId: string | null;
|
|
915
917
|
announcementId: string | null;
|
|
916
918
|
discussionId: string | null;
|
|
@@ -929,6 +931,7 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
929
931
|
submissionId: string | null;
|
|
930
932
|
thumbnailId: string | null;
|
|
931
933
|
annotationId: string | null;
|
|
934
|
+
conversationId: string | null;
|
|
932
935
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
933
936
|
uploadUrl: string | null;
|
|
934
937
|
uploadExpiresAt: Date | null;
|
|
@@ -940,22 +943,12 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
940
943
|
cleanupAt: Date | null;
|
|
941
944
|
classDraftId: string | null;
|
|
942
945
|
folderId: string | null;
|
|
943
|
-
conversationId: string | null;
|
|
944
946
|
messageId: string | null;
|
|
945
947
|
announcementId: string | null;
|
|
946
948
|
discussionId: string | null;
|
|
947
949
|
discussionReplyId: string | null;
|
|
948
950
|
schoolDevelopementProgramId: string | null;
|
|
949
951
|
})[];
|
|
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
952
|
annotations: ({
|
|
960
953
|
thumbnail: {
|
|
961
954
|
path: string;
|
|
@@ -969,6 +962,7 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
969
962
|
submissionId: string | null;
|
|
970
963
|
thumbnailId: string | null;
|
|
971
964
|
annotationId: string | null;
|
|
965
|
+
conversationId: string | null;
|
|
972
966
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
973
967
|
uploadUrl: string | null;
|
|
974
968
|
uploadExpiresAt: Date | null;
|
|
@@ -980,7 +974,6 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
980
974
|
cleanupAt: Date | null;
|
|
981
975
|
classDraftId: string | null;
|
|
982
976
|
folderId: string | null;
|
|
983
|
-
conversationId: string | null;
|
|
984
977
|
messageId: string | null;
|
|
985
978
|
announcementId: string | null;
|
|
986
979
|
discussionId: string | null;
|
|
@@ -999,6 +992,7 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
999
992
|
submissionId: string | null;
|
|
1000
993
|
thumbnailId: string | null;
|
|
1001
994
|
annotationId: string | null;
|
|
995
|
+
conversationId: string | null;
|
|
1002
996
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1003
997
|
uploadUrl: string | null;
|
|
1004
998
|
uploadExpiresAt: Date | null;
|
|
@@ -1010,19 +1004,27 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
|
|
|
1010
1004
|
cleanupAt: Date | null;
|
|
1011
1005
|
classDraftId: string | null;
|
|
1012
1006
|
folderId: string | null;
|
|
1013
|
-
conversationId: string | null;
|
|
1014
1007
|
messageId: string | null;
|
|
1015
1008
|
announcementId: string | null;
|
|
1016
1009
|
discussionId: string | null;
|
|
1017
1010
|
discussionReplyId: string | null;
|
|
1018
1011
|
schoolDevelopementProgramId: string | null;
|
|
1019
1012
|
})[];
|
|
1013
|
+
student: {
|
|
1014
|
+
id: string;
|
|
1015
|
+
username: string;
|
|
1016
|
+
profile: {
|
|
1017
|
+
profilePicture: string | null;
|
|
1018
|
+
displayName: string | null;
|
|
1019
|
+
profilePictureThumbnail: string | null;
|
|
1020
|
+
} | null;
|
|
1021
|
+
};
|
|
1020
1022
|
} & {
|
|
1021
1023
|
id: string;
|
|
1022
1024
|
createdAt: Date;
|
|
1023
1025
|
assignmentId: string;
|
|
1024
|
-
modifiedAt: Date;
|
|
1025
1026
|
studentId: string;
|
|
1027
|
+
modifiedAt: Date;
|
|
1026
1028
|
extendedResponse: string | null;
|
|
1027
1029
|
gradeReceived: number | null;
|
|
1028
1030
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -1040,15 +1042,15 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
|
|
|
1040
1042
|
id: string;
|
|
1041
1043
|
name: string;
|
|
1042
1044
|
} | null;
|
|
1043
|
-
teacher: {
|
|
1044
|
-
id: string;
|
|
1045
|
-
username: string;
|
|
1046
|
-
};
|
|
1047
1045
|
attachments: {
|
|
1048
1046
|
type: string;
|
|
1049
1047
|
id: string;
|
|
1050
1048
|
name: string;
|
|
1051
1049
|
}[];
|
|
1050
|
+
teacher: {
|
|
1051
|
+
id: string;
|
|
1052
|
+
username: string;
|
|
1053
|
+
};
|
|
1052
1054
|
eventAttached: {
|
|
1053
1055
|
id: string;
|
|
1054
1056
|
name: string | null;
|
|
@@ -1089,15 +1091,15 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
|
|
|
1089
1091
|
id: string;
|
|
1090
1092
|
name: string;
|
|
1091
1093
|
} | null;
|
|
1092
|
-
teacher: {
|
|
1093
|
-
id: string;
|
|
1094
|
-
username: string;
|
|
1095
|
-
};
|
|
1096
1094
|
attachments: {
|
|
1097
1095
|
type: string;
|
|
1098
1096
|
id: string;
|
|
1099
1097
|
name: string;
|
|
1100
1098
|
}[];
|
|
1099
|
+
teacher: {
|
|
1100
|
+
id: string;
|
|
1101
|
+
username: string;
|
|
1102
|
+
};
|
|
1101
1103
|
eventAttached: {
|
|
1102
1104
|
id: string;
|
|
1103
1105
|
name: string | null;
|
|
@@ -1158,14 +1160,6 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1158
1160
|
classId: string;
|
|
1159
1161
|
order: number | null;
|
|
1160
1162
|
} | null;
|
|
1161
|
-
teacher: {
|
|
1162
|
-
id: string;
|
|
1163
|
-
username: string;
|
|
1164
|
-
email: string;
|
|
1165
|
-
password: string;
|
|
1166
|
-
verified: boolean;
|
|
1167
|
-
schoolId: string | null;
|
|
1168
|
-
};
|
|
1169
1163
|
attachments: {
|
|
1170
1164
|
path: string;
|
|
1171
1165
|
type: string;
|
|
@@ -1178,6 +1172,7 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1178
1172
|
submissionId: string | null;
|
|
1179
1173
|
thumbnailId: string | null;
|
|
1180
1174
|
annotationId: string | null;
|
|
1175
|
+
conversationId: string | null;
|
|
1181
1176
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1182
1177
|
uploadUrl: string | null;
|
|
1183
1178
|
uploadExpiresAt: Date | null;
|
|
@@ -1189,13 +1184,22 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1189
1184
|
cleanupAt: Date | null;
|
|
1190
1185
|
classDraftId: string | null;
|
|
1191
1186
|
folderId: string | null;
|
|
1192
|
-
conversationId: string | null;
|
|
1193
1187
|
messageId: string | null;
|
|
1194
1188
|
announcementId: string | null;
|
|
1195
1189
|
discussionId: string | null;
|
|
1196
1190
|
discussionReplyId: string | null;
|
|
1197
1191
|
schoolDevelopementProgramId: string | null;
|
|
1198
1192
|
}[];
|
|
1193
|
+
teacher: {
|
|
1194
|
+
id: string;
|
|
1195
|
+
username: string;
|
|
1196
|
+
email: string;
|
|
1197
|
+
password: string;
|
|
1198
|
+
verified: boolean;
|
|
1199
|
+
termsAcceptedAt: Date | null;
|
|
1200
|
+
termsVersion: string | null;
|
|
1201
|
+
schoolId: string | null;
|
|
1202
|
+
};
|
|
1199
1203
|
eventAttached: {
|
|
1200
1204
|
id: string;
|
|
1201
1205
|
userId: string | null;
|
|
@@ -1248,14 +1252,6 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1248
1252
|
classId: string;
|
|
1249
1253
|
order: number | null;
|
|
1250
1254
|
} | null;
|
|
1251
|
-
teacher: {
|
|
1252
|
-
id: string;
|
|
1253
|
-
username: string;
|
|
1254
|
-
email: string;
|
|
1255
|
-
password: string;
|
|
1256
|
-
verified: boolean;
|
|
1257
|
-
schoolId: string | null;
|
|
1258
|
-
};
|
|
1259
1255
|
attachments: {
|
|
1260
1256
|
path: string;
|
|
1261
1257
|
type: string;
|
|
@@ -1268,6 +1264,7 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1268
1264
|
submissionId: string | null;
|
|
1269
1265
|
thumbnailId: string | null;
|
|
1270
1266
|
annotationId: string | null;
|
|
1267
|
+
conversationId: string | null;
|
|
1271
1268
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1272
1269
|
uploadUrl: string | null;
|
|
1273
1270
|
uploadExpiresAt: Date | null;
|
|
@@ -1279,13 +1276,22 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
|
|
|
1279
1276
|
cleanupAt: Date | null;
|
|
1280
1277
|
classDraftId: string | null;
|
|
1281
1278
|
folderId: string | null;
|
|
1282
|
-
conversationId: string | null;
|
|
1283
1279
|
messageId: string | null;
|
|
1284
1280
|
announcementId: string | null;
|
|
1285
1281
|
discussionId: string | null;
|
|
1286
1282
|
discussionReplyId: string | null;
|
|
1287
1283
|
schoolDevelopementProgramId: string | null;
|
|
1288
1284
|
}[];
|
|
1285
|
+
teacher: {
|
|
1286
|
+
id: string;
|
|
1287
|
+
username: string;
|
|
1288
|
+
email: string;
|
|
1289
|
+
password: string;
|
|
1290
|
+
verified: boolean;
|
|
1291
|
+
termsAcceptedAt: Date | null;
|
|
1292
|
+
termsVersion: string | null;
|
|
1293
|
+
schoolId: string | null;
|
|
1294
|
+
};
|
|
1289
1295
|
eventAttached: {
|
|
1290
1296
|
id: string;
|
|
1291
1297
|
userId: string | null;
|
|
@@ -1338,14 +1344,6 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1338
1344
|
classId: string;
|
|
1339
1345
|
order: number | null;
|
|
1340
1346
|
} | null;
|
|
1341
|
-
teacher: {
|
|
1342
|
-
id: string;
|
|
1343
|
-
username: string;
|
|
1344
|
-
email: string;
|
|
1345
|
-
password: string;
|
|
1346
|
-
verified: boolean;
|
|
1347
|
-
schoolId: string | null;
|
|
1348
|
-
};
|
|
1349
1347
|
attachments: {
|
|
1350
1348
|
path: string;
|
|
1351
1349
|
type: string;
|
|
@@ -1358,6 +1356,7 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1358
1356
|
submissionId: string | null;
|
|
1359
1357
|
thumbnailId: string | null;
|
|
1360
1358
|
annotationId: string | null;
|
|
1359
|
+
conversationId: string | null;
|
|
1361
1360
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1362
1361
|
uploadUrl: string | null;
|
|
1363
1362
|
uploadExpiresAt: Date | null;
|
|
@@ -1369,13 +1368,22 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1369
1368
|
cleanupAt: Date | null;
|
|
1370
1369
|
classDraftId: string | null;
|
|
1371
1370
|
folderId: string | null;
|
|
1372
|
-
conversationId: string | null;
|
|
1373
1371
|
messageId: string | null;
|
|
1374
1372
|
announcementId: string | null;
|
|
1375
1373
|
discussionId: string | null;
|
|
1376
1374
|
discussionReplyId: string | null;
|
|
1377
1375
|
schoolDevelopementProgramId: string | null;
|
|
1378
1376
|
}[];
|
|
1377
|
+
teacher: {
|
|
1378
|
+
id: string;
|
|
1379
|
+
username: string;
|
|
1380
|
+
email: string;
|
|
1381
|
+
password: string;
|
|
1382
|
+
verified: boolean;
|
|
1383
|
+
termsAcceptedAt: Date | null;
|
|
1384
|
+
termsVersion: string | null;
|
|
1385
|
+
schoolId: string | null;
|
|
1386
|
+
};
|
|
1379
1387
|
eventAttached: {
|
|
1380
1388
|
id: string;
|
|
1381
1389
|
userId: string | null;
|
|
@@ -1428,14 +1436,6 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1428
1436
|
classId: string;
|
|
1429
1437
|
order: number | null;
|
|
1430
1438
|
} | null;
|
|
1431
|
-
teacher: {
|
|
1432
|
-
id: string;
|
|
1433
|
-
username: string;
|
|
1434
|
-
email: string;
|
|
1435
|
-
password: string;
|
|
1436
|
-
verified: boolean;
|
|
1437
|
-
schoolId: string | null;
|
|
1438
|
-
};
|
|
1439
1439
|
attachments: {
|
|
1440
1440
|
path: string;
|
|
1441
1441
|
type: string;
|
|
@@ -1448,6 +1448,7 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1448
1448
|
submissionId: string | null;
|
|
1449
1449
|
thumbnailId: string | null;
|
|
1450
1450
|
annotationId: string | null;
|
|
1451
|
+
conversationId: string | null;
|
|
1451
1452
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1452
1453
|
uploadUrl: string | null;
|
|
1453
1454
|
uploadExpiresAt: Date | null;
|
|
@@ -1459,13 +1460,22 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
|
|
|
1459
1460
|
cleanupAt: Date | null;
|
|
1460
1461
|
classDraftId: string | null;
|
|
1461
1462
|
folderId: string | null;
|
|
1462
|
-
conversationId: string | null;
|
|
1463
1463
|
messageId: string | null;
|
|
1464
1464
|
announcementId: string | null;
|
|
1465
1465
|
discussionId: string | null;
|
|
1466
1466
|
discussionReplyId: string | null;
|
|
1467
1467
|
schoolDevelopementProgramId: string | null;
|
|
1468
1468
|
}[];
|
|
1469
|
+
teacher: {
|
|
1470
|
+
id: string;
|
|
1471
|
+
username: string;
|
|
1472
|
+
email: string;
|
|
1473
|
+
password: string;
|
|
1474
|
+
verified: boolean;
|
|
1475
|
+
termsAcceptedAt: Date | null;
|
|
1476
|
+
termsVersion: string | null;
|
|
1477
|
+
schoolId: string | null;
|
|
1478
|
+
};
|
|
1469
1479
|
eventAttached: {
|
|
1470
1480
|
id: string;
|
|
1471
1481
|
userId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"/","sources":["services/assignment.ts"],"names":[],"mappings":"AA+BA,wBAAsB,gBAAgB,CAAC,EAAE,EAAE,MAAM,oBAGhD;AAED,wBAAsB,WAAW;;;;;;;;;;;KAMhC;AAED,wBAAsB,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU/D;AAED,wBAAsB,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAa1E;AAED,wBAAsB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAY5F;AAED,wBAAsB,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,SAAS,E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EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;;;;;;;;;;;;;;;;;;;;;;;;UA4EF;AAED,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE;IACL,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;;;;;;;;;;;;;;;;;;;;;;;;;UAmCF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Assignment service – create, read, update, delete assignments and submissions.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
5
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="02e76777-93a9-5060-9977-afbaa0c3e77e")}catch(e){}}();
|
|
6
6
|
import { TRPCError } from "@trpc/server";
|
|
7
7
|
import { prisma } from "../lib/prisma.js";
|
|
8
8
|
import { findAssignmentById, findAssignmentWithDetails, findAssignmentWithClassForTeacher, findAssignmentForDelete, findAssignmentsDueToday, findSubmissionByAssignmentAndStudent, findSubmissionByIdForClassMember, findSubmissionForUpdate, findSubmissionForTeacherUpdate, findSubmissionsByAssignmentForTeacher, createSubmission, findSectionsByClassId, findAvailableEventsForAssignment, attachAssignmentToEvent, detachAssignmentFromEvent, duplicateAssignment, } from "../models/assignment.js";
|
|
@@ -690,6 +690,8 @@ export async function updateSubmissionAsTeacherRecord(teacherId, input) {
|
|
|
690
690
|
if (gradeReceived !== undefined) {
|
|
691
691
|
invalidateStudentProgressInferenceCache(submission.assignment.classId, submission.studentId);
|
|
692
692
|
}
|
|
693
|
+
// Index submission for RAG search after teacher grades/feedback
|
|
694
|
+
enqueueEmbedding(input.classId, 'SUBMISSION', submissionId);
|
|
693
695
|
return updated;
|
|
694
696
|
}
|
|
695
697
|
export async function attachAssignmentToEventRecord(teacherId, assignmentId, eventId) {
|
|
@@ -984,4 +986,4 @@ export async function moveAssignmentRecord(teacherId, input) {
|
|
|
984
986
|
}, { maxWait: 5000, timeout: 10000 });
|
|
985
987
|
}
|
|
986
988
|
//# sourceMappingURL=assignment.js.map
|
|
987
|
-
//# debugId=
|
|
989
|
+
//# debugId=02e76777-93a9-5060-9977-afbaa0c3e77e
|