@studious-lms/server 1.14.0 → 1.16.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.
Files changed (129) hide show
  1. package/dist/lib/inferDocumentFormat.d.ts +10 -0
  2. package/dist/lib/inferDocumentFormat.d.ts.map +1 -0
  3. package/dist/lib/inferDocumentFormat.js +48 -0
  4. package/dist/lib/inferDocumentFormat.js.map +1 -0
  5. package/dist/models/announcement.d.ts +45 -45
  6. package/dist/models/assignment.d.ts +75 -75
  7. package/dist/models/class.d.ts +13 -13
  8. package/dist/models/comment.d.ts +6 -6
  9. package/dist/models/conversation.d.ts +23 -23
  10. package/dist/models/event.d.ts +18 -18
  11. package/dist/models/file.d.ts +9 -9
  12. package/dist/models/labChat.d.ts +4 -4
  13. package/dist/models/message.d.ts +13 -13
  14. package/dist/models/newtonChat.d.ts +3 -3
  15. package/dist/models/notification.d.ts +4 -4
  16. package/dist/models/worksheet.d.ts +121 -121
  17. package/dist/pipelines/aiLabChat.d.ts +7 -1
  18. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  19. package/dist/pipelines/aiLabChat.js +145 -67
  20. package/dist/pipelines/aiLabChat.js.map +1 -1
  21. package/dist/pipelines/aiLabChatContract.d.ts +34 -195
  22. package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
  23. package/dist/pipelines/aiLabChatContract.js +9 -19
  24. package/dist/pipelines/aiLabChatContract.js.map +1 -1
  25. package/dist/pipelines/gradeWorksheet.d.ts +6 -6
  26. package/dist/pipelines/gradeWorksheet.d.ts.map +1 -1
  27. package/dist/pipelines/gradeWorksheet.js +75 -36
  28. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  29. package/dist/pipelines/labChatPrompt.d.ts +8 -3
  30. package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
  31. package/dist/pipelines/labChatPrompt.js +49 -14
  32. package/dist/pipelines/labChatPrompt.js.map +1 -1
  33. package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
  34. package/dist/routers/_app.d.ts +524 -516
  35. package/dist/routers/_app.d.ts.map +1 -1
  36. package/dist/routers/announcement.d.ts +40 -40
  37. package/dist/routers/assignment.d.ts +121 -121
  38. package/dist/routers/class.d.ts +8 -8
  39. package/dist/routers/comment.d.ts +5 -5
  40. package/dist/routers/conversation.d.ts +6 -6
  41. package/dist/routers/discussion.d.ts +3 -3
  42. package/dist/routers/embedding.d.ts +6 -2
  43. package/dist/routers/embedding.d.ts.map +1 -1
  44. package/dist/routers/embedding.js +44 -36
  45. package/dist/routers/embedding.js.map +1 -1
  46. package/dist/routers/event.d.ts +18 -18
  47. package/dist/routers/file.d.ts +2 -2
  48. package/dist/routers/labChat.d.ts +3 -3
  49. package/dist/routers/notifications.d.ts +4 -4
  50. package/dist/routers/search.d.ts +2 -2
  51. package/dist/routers/worksheet.d.ts +44 -44
  52. package/dist/routes/aiStream.d.ts.map +1 -1
  53. package/dist/routes/aiStream.js +41 -11
  54. package/dist/routes/aiStream.js.map +1 -1
  55. package/dist/seedDatabase.d.ts +1 -1
  56. package/dist/services/aiChatStream.d.ts +18 -0
  57. package/dist/services/aiChatStream.d.ts.map +1 -1
  58. package/dist/services/aiChatStream.js +81 -11
  59. package/dist/services/aiChatStream.js.map +1 -1
  60. package/dist/services/aiModifierTools.d.ts +0 -16
  61. package/dist/services/aiModifierTools.d.ts.map +1 -1
  62. package/dist/services/aiModifierTools.js +112 -3
  63. package/dist/services/aiModifierTools.js.map +1 -1
  64. package/dist/services/aiProposalTools.d.ts.map +1 -1
  65. package/dist/services/aiProposalTools.js +25 -25
  66. package/dist/services/aiProposalTools.js.map +1 -1
  67. package/dist/services/announcement.d.ts +34 -34
  68. package/dist/services/assignment.d.ts +111 -111
  69. package/dist/services/assignment.d.ts.map +1 -1
  70. package/dist/services/assignment.js +4 -2
  71. package/dist/services/assignment.js.map +1 -1
  72. package/dist/services/class.d.ts +6 -6
  73. package/dist/services/class.d.ts.map +1 -1
  74. package/dist/services/class.js +7 -3
  75. package/dist/services/class.js.map +1 -1
  76. package/dist/services/comment.d.ts +5 -5
  77. package/dist/services/conversation.d.ts +6 -6
  78. package/dist/services/discussion.d.ts.map +1 -1
  79. package/dist/services/discussion.js +9 -2
  80. package/dist/services/discussion.js.map +1 -1
  81. package/dist/services/embedding.d.ts +19 -1
  82. package/dist/services/embedding.d.ts.map +1 -1
  83. package/dist/services/embedding.js +154 -8
  84. package/dist/services/embedding.js.map +1 -1
  85. package/dist/services/event.d.ts +18 -18
  86. package/dist/services/file.d.ts +4 -4
  87. package/dist/services/folder.d.ts.map +1 -1
  88. package/dist/services/folder.js +32 -2
  89. package/dist/services/folder.js.map +1 -1
  90. package/dist/services/labChat.d.ts +3 -3
  91. package/dist/services/notification.d.ts +4 -4
  92. package/dist/services/openaiDocumentGen.d.ts +25 -0
  93. package/dist/services/openaiDocumentGen.d.ts.map +1 -0
  94. package/dist/services/openaiDocumentGen.js +195 -0
  95. package/dist/services/openaiDocumentGen.js.map +1 -0
  96. package/dist/services/search.d.ts +1 -1
  97. package/dist/services/search.d.ts.map +1 -1
  98. package/dist/services/search.js +27 -2
  99. package/dist/services/search.js.map +1 -1
  100. package/dist/services/worksheet.d.ts +66 -49
  101. package/dist/services/worksheet.d.ts.map +1 -1
  102. package/dist/services/worksheet.js +48 -3
  103. package/dist/services/worksheet.js.map +1 -1
  104. package/dist/workers/processors/embedContent.d.ts.map +1 -1
  105. package/dist/workers/processors/embedContent.js +16 -25
  106. package/dist/workers/processors/embedContent.js.map +1 -1
  107. package/package.json +1 -1
  108. package/prisma/migrations/20260610140000_expand_embedding_source_types/migration.sql +4 -0
  109. package/prisma/schema.prisma +3 -0
  110. package/src/lib/inferDocumentFormat.ts +58 -0
  111. package/src/pipelines/aiLabChat.ts +185 -74
  112. package/src/pipelines/aiLabChatContract.ts +7 -17
  113. package/src/pipelines/gradeWorksheet.ts +95 -38
  114. package/src/pipelines/labChatPrompt.ts +61 -14
  115. package/src/routers/embedding.ts +44 -39
  116. package/src/routes/aiStream.ts +47 -9
  117. package/src/services/aiChatStream.ts +103 -8
  118. package/src/services/aiModifierTools.ts +154 -1
  119. package/src/services/aiProposalTools.ts +26 -25
  120. package/src/services/assignment.ts +3 -0
  121. package/src/services/class.ts +7 -1
  122. package/src/services/discussion.ts +13 -0
  123. package/src/services/embedding.ts +167 -6
  124. package/src/services/folder.ts +31 -0
  125. package/src/services/openaiDocumentGen.ts +237 -0
  126. package/src/services/search.ts +25 -1
  127. package/src/services/worksheet.ts +68 -1
  128. package/src/workers/processors/embedContent.ts +18 -22
  129. package/tests/unit/lib/inferDocumentFormat.test.ts +33 -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,18 @@ 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
+ schoolId: string | null;
702
+ };
703
703
  }>;
704
704
  export declare function deleteAssignmentRecord(userId: string, id: string, _classId: string): Promise<{
705
705
  id: string;
@@ -778,6 +778,7 @@ export declare function updateSubmissionRecord(userId: string, input: {
778
778
  submissionId: string | null;
779
779
  thumbnailId: string | null;
780
780
  annotationId: string | null;
781
+ conversationId: string | null;
781
782
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
782
783
  uploadUrl: string | null;
783
784
  uploadExpiresAt: Date | null;
@@ -789,7 +790,6 @@ export declare function updateSubmissionRecord(userId: string, input: {
789
790
  cleanupAt: Date | null;
790
791
  classDraftId: string | null;
791
792
  folderId: string | null;
792
- conversationId: string | null;
793
793
  messageId: string | null;
794
794
  announcementId: string | null;
795
795
  discussionId: string | null;
@@ -804,8 +804,8 @@ export declare function updateSubmissionRecord(userId: string, input: {
804
804
  id: string;
805
805
  createdAt: Date;
806
806
  assignmentId: string;
807
- modifiedAt: Date;
808
807
  studentId: string;
808
+ modifiedAt: Date;
809
809
  extendedResponse: string | null;
810
810
  gradeReceived: number | null;
811
811
  recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
@@ -899,6 +899,7 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
899
899
  submissionId: string | null;
900
900
  thumbnailId: string | null;
901
901
  annotationId: string | null;
902
+ conversationId: string | null;
902
903
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
903
904
  uploadUrl: string | null;
904
905
  uploadExpiresAt: Date | null;
@@ -910,7 +911,6 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
910
911
  cleanupAt: Date | null;
911
912
  classDraftId: string | null;
912
913
  folderId: string | null;
913
- conversationId: string | null;
914
914
  messageId: string | null;
915
915
  announcementId: string | null;
916
916
  discussionId: string | null;
@@ -929,6 +929,7 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
929
929
  submissionId: string | null;
930
930
  thumbnailId: string | null;
931
931
  annotationId: string | null;
932
+ conversationId: string | null;
932
933
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
933
934
  uploadUrl: string | null;
934
935
  uploadExpiresAt: Date | null;
@@ -940,22 +941,12 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
940
941
  cleanupAt: Date | null;
941
942
  classDraftId: string | null;
942
943
  folderId: string | null;
943
- conversationId: string | null;
944
944
  messageId: string | null;
945
945
  announcementId: string | null;
946
946
  discussionId: string | null;
947
947
  discussionReplyId: string | null;
948
948
  schoolDevelopementProgramId: string | null;
949
949
  })[];
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
950
  annotations: ({
960
951
  thumbnail: {
961
952
  path: string;
@@ -969,6 +960,7 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
969
960
  submissionId: string | null;
970
961
  thumbnailId: string | null;
971
962
  annotationId: string | null;
963
+ conversationId: string | null;
972
964
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
973
965
  uploadUrl: string | null;
974
966
  uploadExpiresAt: Date | null;
@@ -980,7 +972,6 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
980
972
  cleanupAt: Date | null;
981
973
  classDraftId: string | null;
982
974
  folderId: string | null;
983
- conversationId: string | null;
984
975
  messageId: string | null;
985
976
  announcementId: string | null;
986
977
  discussionId: string | null;
@@ -999,6 +990,7 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
999
990
  submissionId: string | null;
1000
991
  thumbnailId: string | null;
1001
992
  annotationId: string | null;
993
+ conversationId: string | null;
1002
994
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1003
995
  uploadUrl: string | null;
1004
996
  uploadExpiresAt: Date | null;
@@ -1010,19 +1002,27 @@ export declare function updateSubmissionAsTeacherRecord(teacherId: string, input
1010
1002
  cleanupAt: Date | null;
1011
1003
  classDraftId: string | null;
1012
1004
  folderId: string | null;
1013
- conversationId: string | null;
1014
1005
  messageId: string | null;
1015
1006
  announcementId: string | null;
1016
1007
  discussionId: string | null;
1017
1008
  discussionReplyId: string | null;
1018
1009
  schoolDevelopementProgramId: string | null;
1019
1010
  })[];
1011
+ student: {
1012
+ id: string;
1013
+ username: string;
1014
+ profile: {
1015
+ profilePicture: string | null;
1016
+ displayName: string | null;
1017
+ profilePictureThumbnail: string | null;
1018
+ } | null;
1019
+ };
1020
1020
  } & {
1021
1021
  id: string;
1022
1022
  createdAt: Date;
1023
1023
  assignmentId: string;
1024
- modifiedAt: Date;
1025
1024
  studentId: string;
1025
+ modifiedAt: Date;
1026
1026
  extendedResponse: string | null;
1027
1027
  gradeReceived: number | null;
1028
1028
  recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
@@ -1040,15 +1040,15 @@ export declare function attachAssignmentToEventRecord(teacherId: string, assignm
1040
1040
  id: string;
1041
1041
  name: string;
1042
1042
  } | null;
1043
- teacher: {
1044
- id: string;
1045
- username: string;
1046
- };
1047
1043
  attachments: {
1048
1044
  type: string;
1049
1045
  id: string;
1050
1046
  name: string;
1051
1047
  }[];
1048
+ teacher: {
1049
+ id: string;
1050
+ username: string;
1051
+ };
1052
1052
  eventAttached: {
1053
1053
  id: string;
1054
1054
  name: string | null;
@@ -1089,15 +1089,15 @@ export declare function detachAssignmentFromEventRecord(teacherId: string, assig
1089
1089
  id: string;
1090
1090
  name: string;
1091
1091
  } | null;
1092
- teacher: {
1093
- id: string;
1094
- username: string;
1095
- };
1096
1092
  attachments: {
1097
1093
  type: string;
1098
1094
  id: string;
1099
1095
  name: string;
1100
1096
  }[];
1097
+ teacher: {
1098
+ id: string;
1099
+ username: string;
1100
+ };
1101
1101
  eventAttached: {
1102
1102
  id: string;
1103
1103
  name: string | null;
@@ -1158,14 +1158,6 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
1158
1158
  classId: string;
1159
1159
  order: number | null;
1160
1160
  } | null;
1161
- teacher: {
1162
- id: string;
1163
- username: string;
1164
- email: string;
1165
- password: string;
1166
- verified: boolean;
1167
- schoolId: string | null;
1168
- };
1169
1161
  attachments: {
1170
1162
  path: string;
1171
1163
  type: string;
@@ -1178,6 +1170,7 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
1178
1170
  submissionId: string | null;
1179
1171
  thumbnailId: string | null;
1180
1172
  annotationId: string | null;
1173
+ conversationId: string | null;
1181
1174
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1182
1175
  uploadUrl: string | null;
1183
1176
  uploadExpiresAt: Date | null;
@@ -1189,13 +1182,20 @@ export declare function attachMarkSchemeRecord(teacherId: string, assignmentId:
1189
1182
  cleanupAt: Date | null;
1190
1183
  classDraftId: string | null;
1191
1184
  folderId: string | null;
1192
- conversationId: string | null;
1193
1185
  messageId: string | null;
1194
1186
  announcementId: string | null;
1195
1187
  discussionId: string | null;
1196
1188
  discussionReplyId: string | null;
1197
1189
  schoolDevelopementProgramId: string | null;
1198
1190
  }[];
1191
+ teacher: {
1192
+ id: string;
1193
+ username: string;
1194
+ email: string;
1195
+ password: string;
1196
+ verified: boolean;
1197
+ schoolId: string | null;
1198
+ };
1199
1199
  eventAttached: {
1200
1200
  id: string;
1201
1201
  userId: string | null;
@@ -1248,14 +1248,6 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
1248
1248
  classId: string;
1249
1249
  order: number | null;
1250
1250
  } | null;
1251
- teacher: {
1252
- id: string;
1253
- username: string;
1254
- email: string;
1255
- password: string;
1256
- verified: boolean;
1257
- schoolId: string | null;
1258
- };
1259
1251
  attachments: {
1260
1252
  path: string;
1261
1253
  type: string;
@@ -1268,6 +1260,7 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
1268
1260
  submissionId: string | null;
1269
1261
  thumbnailId: string | null;
1270
1262
  annotationId: string | null;
1263
+ conversationId: string | null;
1271
1264
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1272
1265
  uploadUrl: string | null;
1273
1266
  uploadExpiresAt: Date | null;
@@ -1279,13 +1272,20 @@ export declare function detachMarkSchemeRecord(teacherId: string, assignmentId:
1279
1272
  cleanupAt: Date | null;
1280
1273
  classDraftId: string | null;
1281
1274
  folderId: string | null;
1282
- conversationId: string | null;
1283
1275
  messageId: string | null;
1284
1276
  announcementId: string | null;
1285
1277
  discussionId: string | null;
1286
1278
  discussionReplyId: string | null;
1287
1279
  schoolDevelopementProgramId: string | null;
1288
1280
  }[];
1281
+ teacher: {
1282
+ id: string;
1283
+ username: string;
1284
+ email: string;
1285
+ password: string;
1286
+ verified: boolean;
1287
+ schoolId: string | null;
1288
+ };
1289
1289
  eventAttached: {
1290
1290
  id: string;
1291
1291
  userId: string | null;
@@ -1338,14 +1338,6 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
1338
1338
  classId: string;
1339
1339
  order: number | null;
1340
1340
  } | null;
1341
- teacher: {
1342
- id: string;
1343
- username: string;
1344
- email: string;
1345
- password: string;
1346
- verified: boolean;
1347
- schoolId: string | null;
1348
- };
1349
1341
  attachments: {
1350
1342
  path: string;
1351
1343
  type: string;
@@ -1358,6 +1350,7 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
1358
1350
  submissionId: string | null;
1359
1351
  thumbnailId: string | null;
1360
1352
  annotationId: string | null;
1353
+ conversationId: string | null;
1361
1354
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1362
1355
  uploadUrl: string | null;
1363
1356
  uploadExpiresAt: Date | null;
@@ -1369,13 +1362,20 @@ export declare function attachGradingBoundaryRecord(teacherId: string, assignmen
1369
1362
  cleanupAt: Date | null;
1370
1363
  classDraftId: string | null;
1371
1364
  folderId: string | null;
1372
- conversationId: string | null;
1373
1365
  messageId: string | null;
1374
1366
  announcementId: string | null;
1375
1367
  discussionId: string | null;
1376
1368
  discussionReplyId: string | null;
1377
1369
  schoolDevelopementProgramId: string | null;
1378
1370
  }[];
1371
+ teacher: {
1372
+ id: string;
1373
+ username: string;
1374
+ email: string;
1375
+ password: string;
1376
+ verified: boolean;
1377
+ schoolId: string | null;
1378
+ };
1379
1379
  eventAttached: {
1380
1380
  id: string;
1381
1381
  userId: string | null;
@@ -1428,14 +1428,6 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
1428
1428
  classId: string;
1429
1429
  order: number | null;
1430
1430
  } | null;
1431
- teacher: {
1432
- id: string;
1433
- username: string;
1434
- email: string;
1435
- password: string;
1436
- verified: boolean;
1437
- schoolId: string | null;
1438
- };
1439
1431
  attachments: {
1440
1432
  path: string;
1441
1433
  type: string;
@@ -1448,6 +1440,7 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
1448
1440
  submissionId: string | null;
1449
1441
  thumbnailId: string | null;
1450
1442
  annotationId: string | null;
1443
+ conversationId: string | null;
1451
1444
  uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1452
1445
  uploadUrl: string | null;
1453
1446
  uploadExpiresAt: Date | null;
@@ -1459,13 +1452,20 @@ export declare function detachGradingBoundaryRecord(teacherId: string, assignmen
1459
1452
  cleanupAt: Date | null;
1460
1453
  classDraftId: string | null;
1461
1454
  folderId: string | null;
1462
- conversationId: string | null;
1463
1455
  messageId: string | null;
1464
1456
  announcementId: string | null;
1465
1457
  discussionId: string | null;
1466
1458
  discussionReplyId: string | null;
1467
1459
  schoolDevelopementProgramId: string | null;
1468
1460
  }[];
1461
+ teacher: {
1462
+ id: string;
1463
+ username: string;
1464
+ email: string;
1465
+ password: string;
1466
+ verified: boolean;
1467
+ schoolId: string | null;
1468
+ };
1469
1469
  eventAttached: {
1470
1470
  id: string;
1471
1471
  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;;;;;;;;;;;;;;;;;;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;;;;;;;;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]="64598a3f-fe62-59ba-bc83-90fde1b9cdf2")}catch(e){}}();
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=64598a3f-fe62-59ba-bc83-90fde1b9cdf2
989
+ //# debugId=02e76777-93a9-5060-9977-afbaa0c3e77e