@studious-lms/server 1.4.9 → 1.5.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 (160) hide show
  1. package/dist/lib/config/cors.d.ts.map +1 -1
  2. package/dist/lib/config/cors.js +2 -4
  3. package/dist/lib/config/cors.js.map +1 -1
  4. package/dist/lib/fileUpload.d.ts.map +1 -1
  5. package/dist/lib/fileUpload.js +4 -5
  6. package/dist/lib/fileUpload.js.map +1 -1
  7. package/dist/models/auth.d.ts +1 -0
  8. package/dist/models/auth.d.ts.map +1 -1
  9. package/dist/models/auth.js +3 -2
  10. package/dist/models/auth.js.map +1 -1
  11. package/dist/models/comment.d.ts +0 -5
  12. package/dist/models/comment.d.ts.map +1 -1
  13. package/dist/models/conversation.d.ts +2 -1
  14. package/dist/models/conversation.d.ts.map +1 -1
  15. package/dist/models/labChat.d.ts +2 -1
  16. package/dist/models/labChat.d.ts.map +1 -1
  17. package/dist/models/message.d.ts +6 -3
  18. package/dist/models/message.d.ts.map +1 -1
  19. package/dist/models/school.d.ts +0 -22
  20. package/dist/models/school.d.ts.map +1 -1
  21. package/dist/models/school.js +2 -14
  22. package/dist/models/school.js.map +1 -1
  23. package/dist/models/worksheet.d.ts +76 -19
  24. package/dist/models/worksheet.d.ts.map +1 -1
  25. package/dist/models/worksheet.js +2 -2
  26. package/dist/models/worksheet.js.map +1 -1
  27. package/dist/pipelines/aiLabChat.js +6 -6
  28. package/dist/pipelines/aiLabChat.js.map +1 -1
  29. package/dist/pipelines/gradeWorksheet.d.ts +5 -3
  30. package/dist/pipelines/gradeWorksheet.d.ts.map +1 -1
  31. package/dist/pipelines/gradeWorksheet.js +60 -24
  32. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  33. package/dist/pipelines/pdfToWorksheet.d.ts +3 -0
  34. package/dist/pipelines/pdfToWorksheet.d.ts.map +1 -1
  35. package/dist/pipelines/pdfToWorksheet.js +65 -24
  36. package/dist/pipelines/pdfToWorksheet.js.map +1 -1
  37. package/dist/routers/_app.d.ts +92 -48
  38. package/dist/routers/_app.d.ts.map +1 -1
  39. package/dist/routers/announcement.d.ts +0 -4
  40. package/dist/routers/announcement.d.ts.map +1 -1
  41. package/dist/routers/assignment.d.ts +0 -8
  42. package/dist/routers/assignment.d.ts.map +1 -1
  43. package/dist/routers/auth.d.ts +1 -0
  44. package/dist/routers/auth.d.ts.map +1 -1
  45. package/dist/routers/comment.d.ts +0 -3
  46. package/dist/routers/comment.d.ts.map +1 -1
  47. package/dist/routers/conversation.d.ts +2 -1
  48. package/dist/routers/conversation.d.ts.map +1 -1
  49. package/dist/routers/labChat.d.ts +2 -1
  50. package/dist/routers/labChat.d.ts.map +1 -1
  51. package/dist/routers/school.d.ts +6 -0
  52. package/dist/routers/school.d.ts.map +1 -1
  53. package/dist/routers/school.js +7 -2
  54. package/dist/routers/school.js.map +1 -1
  55. package/dist/routers/worksheet.d.ts +35 -7
  56. package/dist/routers/worksheet.d.ts.map +1 -1
  57. package/dist/services/auth.d.ts +1 -0
  58. package/dist/services/auth.d.ts.map +1 -1
  59. package/dist/services/comment.d.ts +0 -3
  60. package/dist/services/comment.d.ts.map +1 -1
  61. package/dist/services/conversation.d.ts +2 -1
  62. package/dist/services/conversation.d.ts.map +1 -1
  63. package/dist/services/labChat.d.ts +2 -1
  64. package/dist/services/labChat.d.ts.map +1 -1
  65. package/dist/services/labChat.js +6 -6
  66. package/dist/services/labChat.js.map +1 -1
  67. package/dist/services/message.d.ts.map +1 -1
  68. package/dist/services/message.js +14 -2
  69. package/dist/services/message.js.map +1 -1
  70. package/dist/services/school.d.ts +6 -0
  71. package/dist/services/school.d.ts.map +1 -1
  72. package/dist/services/school.js +71 -6
  73. package/dist/services/school.js.map +1 -1
  74. package/dist/services/worksheet.d.ts +35 -7
  75. package/dist/services/worksheet.d.ts.map +1 -1
  76. package/dist/services/worksheet.js +17 -19
  77. package/dist/services/worksheet.js.map +1 -1
  78. package/dist/utils/generateUsername.d.ts +8 -0
  79. package/dist/utils/generateUsername.d.ts.map +1 -0
  80. package/dist/utils/generateUsername.js +103 -0
  81. package/dist/utils/generateUsername.js.map +1 -0
  82. package/dist/workers/connection.d.ts +3 -0
  83. package/dist/workers/connection.d.ts.map +1 -0
  84. package/dist/workers/connection.js +33 -0
  85. package/dist/workers/connection.js.map +1 -0
  86. package/dist/workers/index.d.ts +10 -0
  87. package/dist/workers/index.d.ts.map +1 -0
  88. package/dist/workers/index.js +53 -0
  89. package/dist/workers/index.js.map +1 -0
  90. package/dist/workers/processors/pdfToWorksheet.d.ts +9 -0
  91. package/dist/workers/processors/pdfToWorksheet.d.ts.map +1 -0
  92. package/dist/workers/processors/pdfToWorksheet.js +100 -0
  93. package/dist/workers/processors/pdfToWorksheet.js.map +1 -0
  94. package/dist/workers/queues.d.ts +69 -0
  95. package/dist/workers/queues.d.ts.map +1 -0
  96. package/dist/workers/queues.js +119 -0
  97. package/dist/workers/queues.js.map +1 -0
  98. package/package.json +4 -1
  99. package/prisma/migrations/20260506162500_consolidate_run_job_and_unify_job_status/migration.sql +166 -0
  100. package/prisma/schema.prisma +465 -387
  101. package/src/lib/config/cors.ts +0 -2
  102. package/src/lib/fileUpload.ts +2 -4
  103. package/src/models/auth.ts +1 -0
  104. package/src/models/school.ts +0 -14
  105. package/src/models/worksheet.ts +2 -2
  106. package/src/pipelines/aiLabChat.ts +4 -4
  107. package/src/pipelines/gradeWorksheet.ts +63 -25
  108. package/src/pipelines/pdfToWorksheet.ts +68 -22
  109. package/src/routers/school.ts +5 -0
  110. package/src/services/labChat.ts +4 -4
  111. package/src/services/message.ts +13 -0
  112. package/src/services/school.ts +89 -6
  113. package/src/services/worksheet.ts +16 -18
  114. package/src/utils/generateUsername.ts +108 -0
  115. package/src/workers/connection.ts +37 -0
  116. package/src/workers/index.ts +61 -0
  117. package/src/workers/processors/pdfToWorksheet.ts +119 -0
  118. package/src/workers/queues.ts +159 -0
  119. package/tests/{globalSetup.ts → integration/globalSetup.ts} +4 -4
  120. package/tests/{helpers.ts → integration/helpers.ts} +2 -2
  121. package/tests/{pipelines → integration/pipelines}/pdfToWorksheet.test.ts +55 -43
  122. package/tests/{routers → integration/routers}/attendance.test.ts +1 -1
  123. package/tests/{routers → integration/routers}/auth.test.ts +3 -3
  124. package/tests/{routers → integration/routers}/class.test.ts +3 -17
  125. package/tests/{routers → integration/routers}/conversation.test.ts +1 -1
  126. package/tests/{routers → integration/routers}/event.test.ts +1 -1
  127. package/tests/{routers → integration/routers}/message.test.ts +1 -1
  128. package/tests/{routers → integration/routers}/newtonChat.test.ts +1 -1
  129. package/tests/{routers → integration/routers}/studentProgress.test.ts +1 -1
  130. package/tests/{user.test.ts → integration/routers/user.test.ts} +2 -2
  131. package/tests/integration/routers/worksheet.test.ts +448 -0
  132. package/tests/{setup.ts → integration/setup.ts} +4 -4
  133. package/tests/{lib → unit/lib}/cors.test.ts +1 -1
  134. package/tests/{middleware → unit/middleware}/security.test.ts +1 -1
  135. package/tests/{pipelines → unit/pipelines}/aiLabChat.test.ts +1 -1
  136. package/tests/{lib → unit/pipelines}/aiLabChatContract.test.ts +1 -1
  137. package/tests/{utils/aiLabChatPrompt.test.ts → unit/pipelines/labChatPrompt.test.ts} +2 -2
  138. package/tests/{utils → unit/services}/studentProgress.test.ts +5 -5
  139. package/tests/{utils → unit/utils}/aiUser.test.ts +1 -1
  140. package/tests/{utils → unit/utils}/generateInviteCode.test.ts +1 -1
  141. package/tests/{utils → unit/utils}/inference.test.ts +6 -6
  142. package/tests/{utils → unit/utils}/logger.test.ts +1 -1
  143. package/tests/{utils → unit/utils}/prismaErrorHandler.test.ts +1 -1
  144. package/tests/{utils → unit/utils}/prismaWrapper.test.ts +1 -1
  145. package/vitest.config.ts +11 -3
  146. package/vitest.unit.config.ts +10 -10
  147. package/tests/routers/worksheet.test.ts +0 -194
  148. package/tests/startup.test.ts +0 -5
  149. package/tests/worksheet.test.ts +0 -181
  150. /package/tests/{routers → integration/routers}/agenda.test.ts +0 -0
  151. /package/tests/{routers → integration/routers}/announcement.test.ts +0 -0
  152. /package/tests/{routers → integration/routers}/assignment.test.ts +0 -0
  153. /package/tests/{routers → integration/routers}/comment.test.ts +0 -0
  154. /package/tests/{routers → integration/routers}/folder.test.ts +0 -0
  155. /package/tests/{routers → integration/routers}/labChat.test.ts +0 -0
  156. /package/tests/{routers → integration/routers}/marketing.test.ts +0 -0
  157. /package/tests/{routers → integration/routers}/notification.test.ts +0 -0
  158. /package/tests/{routers → integration/routers}/search.test.ts +0 -0
  159. /package/tests/{routers → integration/routers}/section.test.ts +0 -0
  160. /package/tests/{server → unit/middleware}/rateLimit.test.ts +0 -0
@@ -1182,7 +1182,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1182
1182
  } | null;
1183
1183
  };
1184
1184
  } & {
1185
- status: import(".prisma/client").$Enums.GenerationStatus | null;
1186
1185
  id: string;
1187
1186
  createdAt: Date;
1188
1187
  assignmentId: string | null;
@@ -1214,7 +1213,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1214
1213
  } | null;
1215
1214
  };
1216
1215
  } & {
1217
- status: import(".prisma/client").$Enums.GenerationStatus | null;
1218
1216
  id: string;
1219
1217
  createdAt: Date;
1220
1218
  assignmentId: string | null;
@@ -1266,7 +1264,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1266
1264
  } | null;
1267
1265
  };
1268
1266
  } & {
1269
- status: import(".prisma/client").$Enums.GenerationStatus | null;
1270
1267
  id: string;
1271
1268
  createdAt: Date;
1272
1269
  assignmentId: string | null;
@@ -1279,7 +1276,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1279
1276
  studentQuestionProgressId: string | null;
1280
1277
  })[];
1281
1278
  } & {
1282
- status: import(".prisma/client").$Enums.GenerationStatus | null;
1283
1279
  id: string;
1284
1280
  createdAt: Date;
1285
1281
  assignmentId: string | null;
@@ -2311,7 +2307,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2311
2307
  } | null;
2312
2308
  };
2313
2309
  } & {
2314
- status: import(".prisma/client").$Enums.GenerationStatus | null;
2315
2310
  id: string;
2316
2311
  createdAt: Date;
2317
2312
  assignmentId: string | null;
@@ -2324,7 +2319,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2324
2319
  studentQuestionProgressId: string | null;
2325
2320
  })[];
2326
2321
  } & {
2327
- status: import(".prisma/client").$Enums.GenerationStatus | null;
2328
2322
  id: string;
2329
2323
  createdAt: Date;
2330
2324
  assignmentId: string | null;
@@ -2369,7 +2363,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2369
2363
  } | null;
2370
2364
  };
2371
2365
  } & {
2372
- status: import(".prisma/client").$Enums.GenerationStatus | null;
2373
2366
  id: string;
2374
2367
  createdAt: Date;
2375
2368
  assignmentId: string | null;
@@ -2382,7 +2375,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2382
2375
  studentQuestionProgressId: string | null;
2383
2376
  })[];
2384
2377
  } & {
2385
- status: import(".prisma/client").$Enums.GenerationStatus | null;
2386
2378
  id: string;
2387
2379
  createdAt: Date;
2388
2380
  assignmentId: string | null;
@@ -2426,7 +2418,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2426
2418
  } | null;
2427
2419
  };
2428
2420
  } & {
2429
- status: import(".prisma/client").$Enums.GenerationStatus | null;
2430
2421
  id: string;
2431
2422
  createdAt: Date;
2432
2423
  assignmentId: string | null;
@@ -2439,7 +2430,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2439
2430
  studentQuestionProgressId: string | null;
2440
2431
  })[];
2441
2432
  } & {
2442
- status: import(".prisma/client").$Enums.GenerationStatus | null;
2443
2433
  id: string;
2444
2434
  createdAt: Date;
2445
2435
  assignmentId: string | null;
@@ -2485,7 +2475,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2485
2475
  } | null;
2486
2476
  };
2487
2477
  } & {
2488
- status: import(".prisma/client").$Enums.GenerationStatus | null;
2489
2478
  id: string;
2490
2479
  createdAt: Date;
2491
2480
  assignmentId: string | null;
@@ -2498,7 +2487,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2498
2487
  studentQuestionProgressId: string | null;
2499
2488
  })[];
2500
2489
  } & {
2501
- status: import(".prisma/client").$Enums.GenerationStatus | null;
2502
2490
  id: string;
2503
2491
  createdAt: Date;
2504
2492
  assignmentId: string | null;
@@ -4027,6 +4015,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4027
4015
  user: {
4028
4016
  id: string;
4029
4017
  username: string;
4018
+ email: string;
4030
4019
  profile: {
4031
4020
  location: string | null;
4032
4021
  displayName: string | null;
@@ -4839,13 +4828,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4839
4828
  } | null;
4840
4829
  };
4841
4830
  } & {
4842
- status: import(".prisma/client").$Enums.GenerationStatus | null;
4831
+ status: import(".prisma/client").$Enums.JobStatus | null;
4843
4832
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
4844
4833
  id: string;
4845
4834
  createdAt: Date;
4846
4835
  conversationId: string;
4847
4836
  content: string;
4848
4837
  senderId: string;
4838
+ runJobId: string | null;
4849
4839
  };
4850
4840
  unreadCount: number;
4851
4841
  unreadMentionCount: number;
@@ -5353,13 +5343,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5353
5343
  } | null;
5354
5344
  };
5355
5345
  } & {
5356
- status: import(".prisma/client").$Enums.GenerationStatus | null;
5346
+ status: import(".prisma/client").$Enums.JobStatus | null;
5357
5347
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
5358
5348
  id: string;
5359
5349
  createdAt: Date;
5360
5350
  conversationId: string;
5361
5351
  content: string;
5362
5352
  senderId: string;
5353
+ runJobId: string | null;
5363
5354
  };
5364
5355
  messageCount: number;
5365
5356
  }[];
@@ -5596,11 +5587,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5596
5587
  answer: string;
5597
5588
  }[];
5598
5589
  } & {
5590
+ status: import(".prisma/client").$Enums.JobStatus | null;
5599
5591
  name: string;
5600
5592
  id: string;
5601
5593
  createdAt: Date;
5602
5594
  updatedAt: Date;
5603
5595
  classId: string;
5596
+ runJobId: string | null;
5597
+ sourceUrl: string | null;
5604
5598
  };
5605
5599
  meta: object;
5606
5600
  }>;
@@ -5623,11 +5617,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5623
5617
  questions: {
5624
5618
  id: string;
5625
5619
  }[];
5620
+ status: import(".prisma/client").$Enums.JobStatus | null;
5626
5621
  name: string;
5627
5622
  id: string;
5628
5623
  createdAt: Date;
5629
5624
  updatedAt: Date;
5630
5625
  classId: string;
5626
+ runJobId: string | null;
5627
+ sourceUrl: string | null;
5631
5628
  }[];
5632
5629
  meta: object;
5633
5630
  }>;
@@ -5637,11 +5634,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5637
5634
  name?: string | undefined;
5638
5635
  };
5639
5636
  output: {
5637
+ status: import(".prisma/client").$Enums.JobStatus | null;
5640
5638
  name: string;
5641
5639
  id: string;
5642
5640
  createdAt: Date;
5643
5641
  updatedAt: Date;
5644
5642
  classId: string;
5643
+ runJobId: string | null;
5644
+ sourceUrl: string | null;
5645
5645
  };
5646
5646
  meta: object;
5647
5647
  }>;
@@ -5650,11 +5650,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5650
5650
  worksheetId: string;
5651
5651
  };
5652
5652
  output: {
5653
+ status: import(".prisma/client").$Enums.JobStatus | null;
5653
5654
  name: string;
5654
5655
  id: string;
5655
5656
  createdAt: Date;
5656
5657
  updatedAt: Date;
5657
5658
  classId: string;
5659
+ runJobId: string | null;
5660
+ sourceUrl: string | null;
5658
5661
  };
5659
5662
  meta: object;
5660
5663
  }>;
@@ -5665,11 +5668,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5665
5668
  name: string;
5666
5669
  };
5667
5670
  output: {
5671
+ status: import(".prisma/client").$Enums.JobStatus | null;
5668
5672
  name: string;
5669
5673
  id: string;
5670
5674
  createdAt: Date;
5671
5675
  updatedAt: Date;
5672
5676
  classId: string;
5677
+ runJobId: string | null;
5678
+ sourceUrl: string | null;
5673
5679
  };
5674
5680
  meta: object;
5675
5681
  }>;
@@ -5681,11 +5687,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5681
5687
  worksheetId: string;
5682
5688
  };
5683
5689
  output: {
5690
+ status: import(".prisma/client").$Enums.JobStatus | null;
5684
5691
  name: string;
5685
5692
  id: string;
5686
5693
  createdAt: Date;
5687
5694
  updatedAt: Date;
5688
5695
  classId: string;
5696
+ runJobId: string | null;
5697
+ sourceUrl: string | null;
5689
5698
  };
5690
5699
  meta: object;
5691
5700
  }>;
@@ -5696,11 +5705,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5696
5705
  url: string;
5697
5706
  };
5698
5707
  output: {
5708
+ status: import(".prisma/client").$Enums.JobStatus | null;
5699
5709
  name: string;
5700
5710
  id: string;
5701
5711
  createdAt: Date;
5702
5712
  updatedAt: Date;
5703
5713
  classId: string;
5714
+ runJobId: string | null;
5715
+ sourceUrl: string | null;
5704
5716
  };
5705
5717
  meta: object;
5706
5718
  }>;
@@ -5741,11 +5753,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5741
5753
  fileId: string;
5742
5754
  };
5743
5755
  output: {
5756
+ status: import(".prisma/client").$Enums.JobStatus | null;
5744
5757
  name: string;
5745
5758
  id: string;
5746
5759
  createdAt: Date;
5747
5760
  updatedAt: Date;
5748
5761
  classId: string;
5762
+ runJobId: string | null;
5763
+ sourceUrl: string | null;
5749
5764
  };
5750
5765
  meta: object;
5751
5766
  }>;
@@ -5843,7 +5858,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5843
5858
  id: string;
5844
5859
  }[];
5845
5860
  } & {
5846
- status: import(".prisma/client").$Enums.GenerationStatus | null;
5861
+ status: import(".prisma/client").$Enums.JobStatus | null;
5847
5862
  id: string;
5848
5863
  createdAt: Date;
5849
5864
  updatedAt: Date | null;
@@ -5855,6 +5870,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5855
5870
  points: number;
5856
5871
  feedback: string | null;
5857
5872
  studentWorksheetResponseId: string | null;
5873
+ runJobId: string | null;
5858
5874
  })[];
5859
5875
  } & {
5860
5876
  id: string;
@@ -5876,7 +5892,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5876
5892
  };
5877
5893
  output: {
5878
5894
  responses: {
5879
- status: import(".prisma/client").$Enums.GenerationStatus | null;
5895
+ status: import(".prisma/client").$Enums.JobStatus | null;
5880
5896
  id: string;
5881
5897
  createdAt: Date;
5882
5898
  updatedAt: Date | null;
@@ -5888,6 +5904,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5888
5904
  points: number;
5889
5905
  feedback: string | null;
5890
5906
  studentWorksheetResponseId: string | null;
5907
+ runJobId: string | null;
5891
5908
  }[];
5892
5909
  } & {
5893
5910
  id: string;
@@ -5907,7 +5924,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5907
5924
  progressId: string;
5908
5925
  };
5909
5926
  output: {
5910
- status: import(".prisma/client").$Enums.GenerationStatus | null;
5927
+ status: import(".prisma/client").$Enums.JobStatus | null;
5911
5928
  id: string;
5912
5929
  createdAt: Date;
5913
5930
  updatedAt: Date | null;
@@ -5919,6 +5936,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5919
5936
  points: number;
5920
5937
  feedback: string | null;
5921
5938
  studentWorksheetResponseId: string | null;
5939
+ runJobId: string | null;
5922
5940
  };
5923
5941
  meta: object;
5924
5942
  }>;
@@ -5928,7 +5946,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5928
5946
  progressId: string;
5929
5947
  };
5930
5948
  output: {
5931
- status: import(".prisma/client").$Enums.GenerationStatus | null;
5949
+ status: import(".prisma/client").$Enums.JobStatus | null;
5932
5950
  id: string;
5933
5951
  createdAt: Date;
5934
5952
  updatedAt: Date | null;
@@ -5940,7 +5958,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5940
5958
  points: number;
5941
5959
  feedback: string | null;
5942
5960
  studentWorksheetResponseId: string | null;
5943
- };
5961
+ runJobId: string | null;
5962
+ } | null;
5944
5963
  meta: object;
5945
5964
  }>;
5946
5965
  gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
@@ -5955,7 +5974,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5955
5974
  responseId?: string | undefined;
5956
5975
  };
5957
5976
  output: {
5958
- status: import(".prisma/client").$Enums.GenerationStatus | null;
5977
+ status: import(".prisma/client").$Enums.JobStatus | null;
5959
5978
  id: string;
5960
5979
  createdAt: Date;
5961
5980
  updatedAt: Date | null;
@@ -5967,6 +5986,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5967
5986
  points: number;
5968
5987
  feedback: string | null;
5969
5988
  studentWorksheetResponseId: string | null;
5989
+ runJobId: string | null;
5970
5990
  };
5971
5991
  meta: object;
5972
5992
  }>;
@@ -5976,7 +5996,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5976
5996
  responseId: string;
5977
5997
  };
5978
5998
  output: {
5979
- status: import(".prisma/client").$Enums.GenerationStatus | null;
5980
5999
  id: string;
5981
6000
  createdAt: Date;
5982
6001
  assignmentId: string | null;
@@ -6071,7 +6090,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6071
6090
  } | null;
6072
6091
  };
6073
6092
  } & {
6074
- status: import(".prisma/client").$Enums.GenerationStatus | null;
6075
6093
  id: string;
6076
6094
  createdAt: Date;
6077
6095
  assignmentId: string | null;
@@ -6091,7 +6109,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6091
6109
  parentCommentId: string;
6092
6110
  };
6093
6111
  output: {
6094
- status: import(".prisma/client").$Enums.GenerationStatus | null;
6095
6112
  id: string;
6096
6113
  createdAt: Date;
6097
6114
  assignmentId: string | null;
@@ -6111,7 +6128,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6111
6128
  content: string;
6112
6129
  };
6113
6130
  output: {
6114
- status: import(".prisma/client").$Enums.GenerationStatus | null;
6115
6131
  id: string;
6116
6132
  createdAt: Date;
6117
6133
  assignmentId: string | null;
@@ -6686,6 +6702,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6686
6702
  email: string;
6687
6703
  role: "STUDENT" | "TEACHER" | "ADMIN";
6688
6704
  schoolId: string;
6705
+ username?: string | undefined;
6706
+ displayName?: string | undefined;
6689
6707
  };
6690
6708
  output: {
6691
6709
  invite: {
@@ -6707,6 +6725,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6707
6725
  revokedAt: Date | null;
6708
6726
  invitedById: string;
6709
6727
  };
6728
+ createdUser: {
6729
+ id: string;
6730
+ username: string;
6731
+ } | null;
6710
6732
  };
6711
6733
  meta: object;
6712
6734
  }>;
@@ -7956,7 +7978,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7956
7978
  } | null;
7957
7979
  };
7958
7980
  } & {
7959
- status: import(".prisma/client").$Enums.GenerationStatus | null;
7960
7981
  id: string;
7961
7982
  createdAt: Date;
7962
7983
  assignmentId: string | null;
@@ -7988,7 +8009,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7988
8009
  } | null;
7989
8010
  };
7990
8011
  } & {
7991
- status: import(".prisma/client").$Enums.GenerationStatus | null;
7992
8012
  id: string;
7993
8013
  createdAt: Date;
7994
8014
  assignmentId: string | null;
@@ -8040,7 +8060,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8040
8060
  } | null;
8041
8061
  };
8042
8062
  } & {
8043
- status: import(".prisma/client").$Enums.GenerationStatus | null;
8044
8063
  id: string;
8045
8064
  createdAt: Date;
8046
8065
  assignmentId: string | null;
@@ -8053,7 +8072,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8053
8072
  studentQuestionProgressId: string | null;
8054
8073
  })[];
8055
8074
  } & {
8056
- status: import(".prisma/client").$Enums.GenerationStatus | null;
8057
8075
  id: string;
8058
8076
  createdAt: Date;
8059
8077
  assignmentId: string | null;
@@ -9085,7 +9103,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9085
9103
  } | null;
9086
9104
  };
9087
9105
  } & {
9088
- status: import(".prisma/client").$Enums.GenerationStatus | null;
9089
9106
  id: string;
9090
9107
  createdAt: Date;
9091
9108
  assignmentId: string | null;
@@ -9098,7 +9115,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9098
9115
  studentQuestionProgressId: string | null;
9099
9116
  })[];
9100
9117
  } & {
9101
- status: import(".prisma/client").$Enums.GenerationStatus | null;
9102
9118
  id: string;
9103
9119
  createdAt: Date;
9104
9120
  assignmentId: string | null;
@@ -9143,7 +9159,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9143
9159
  } | null;
9144
9160
  };
9145
9161
  } & {
9146
- status: import(".prisma/client").$Enums.GenerationStatus | null;
9147
9162
  id: string;
9148
9163
  createdAt: Date;
9149
9164
  assignmentId: string | null;
@@ -9156,7 +9171,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9156
9171
  studentQuestionProgressId: string | null;
9157
9172
  })[];
9158
9173
  } & {
9159
- status: import(".prisma/client").$Enums.GenerationStatus | null;
9160
9174
  id: string;
9161
9175
  createdAt: Date;
9162
9176
  assignmentId: string | null;
@@ -9200,7 +9214,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9200
9214
  } | null;
9201
9215
  };
9202
9216
  } & {
9203
- status: import(".prisma/client").$Enums.GenerationStatus | null;
9204
9217
  id: string;
9205
9218
  createdAt: Date;
9206
9219
  assignmentId: string | null;
@@ -9213,7 +9226,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9213
9226
  studentQuestionProgressId: string | null;
9214
9227
  })[];
9215
9228
  } & {
9216
- status: import(".prisma/client").$Enums.GenerationStatus | null;
9217
9229
  id: string;
9218
9230
  createdAt: Date;
9219
9231
  assignmentId: string | null;
@@ -9259,7 +9271,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9259
9271
  } | null;
9260
9272
  };
9261
9273
  } & {
9262
- status: import(".prisma/client").$Enums.GenerationStatus | null;
9263
9274
  id: string;
9264
9275
  createdAt: Date;
9265
9276
  assignmentId: string | null;
@@ -9272,7 +9283,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9272
9283
  studentQuestionProgressId: string | null;
9273
9284
  })[];
9274
9285
  } & {
9275
- status: import(".prisma/client").$Enums.GenerationStatus | null;
9276
9286
  id: string;
9277
9287
  createdAt: Date;
9278
9288
  assignmentId: string | null;
@@ -10801,6 +10811,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10801
10811
  user: {
10802
10812
  id: string;
10803
10813
  username: string;
10814
+ email: string;
10804
10815
  profile: {
10805
10816
  location: string | null;
10806
10817
  displayName: string | null;
@@ -11613,13 +11624,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11613
11624
  } | null;
11614
11625
  };
11615
11626
  } & {
11616
- status: import(".prisma/client").$Enums.GenerationStatus | null;
11627
+ status: import(".prisma/client").$Enums.JobStatus | null;
11617
11628
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
11618
11629
  id: string;
11619
11630
  createdAt: Date;
11620
11631
  conversationId: string;
11621
11632
  content: string;
11622
11633
  senderId: string;
11634
+ runJobId: string | null;
11623
11635
  };
11624
11636
  unreadCount: number;
11625
11637
  unreadMentionCount: number;
@@ -12127,13 +12139,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12127
12139
  } | null;
12128
12140
  };
12129
12141
  } & {
12130
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12142
+ status: import(".prisma/client").$Enums.JobStatus | null;
12131
12143
  meta: import("@prisma/client/runtime/library.js").JsonValue | null;
12132
12144
  id: string;
12133
12145
  createdAt: Date;
12134
12146
  conversationId: string;
12135
12147
  content: string;
12136
12148
  senderId: string;
12149
+ runJobId: string | null;
12137
12150
  };
12138
12151
  messageCount: number;
12139
12152
  }[];
@@ -12370,11 +12383,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12370
12383
  answer: string;
12371
12384
  }[];
12372
12385
  } & {
12386
+ status: import(".prisma/client").$Enums.JobStatus | null;
12373
12387
  name: string;
12374
12388
  id: string;
12375
12389
  createdAt: Date;
12376
12390
  updatedAt: Date;
12377
12391
  classId: string;
12392
+ runJobId: string | null;
12393
+ sourceUrl: string | null;
12378
12394
  };
12379
12395
  meta: object;
12380
12396
  }>;
@@ -12397,11 +12413,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12397
12413
  questions: {
12398
12414
  id: string;
12399
12415
  }[];
12416
+ status: import(".prisma/client").$Enums.JobStatus | null;
12400
12417
  name: string;
12401
12418
  id: string;
12402
12419
  createdAt: Date;
12403
12420
  updatedAt: Date;
12404
12421
  classId: string;
12422
+ runJobId: string | null;
12423
+ sourceUrl: string | null;
12405
12424
  }[];
12406
12425
  meta: object;
12407
12426
  }>;
@@ -12411,11 +12430,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12411
12430
  name?: string | undefined;
12412
12431
  };
12413
12432
  output: {
12433
+ status: import(".prisma/client").$Enums.JobStatus | null;
12414
12434
  name: string;
12415
12435
  id: string;
12416
12436
  createdAt: Date;
12417
12437
  updatedAt: Date;
12418
12438
  classId: string;
12439
+ runJobId: string | null;
12440
+ sourceUrl: string | null;
12419
12441
  };
12420
12442
  meta: object;
12421
12443
  }>;
@@ -12424,11 +12446,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12424
12446
  worksheetId: string;
12425
12447
  };
12426
12448
  output: {
12449
+ status: import(".prisma/client").$Enums.JobStatus | null;
12427
12450
  name: string;
12428
12451
  id: string;
12429
12452
  createdAt: Date;
12430
12453
  updatedAt: Date;
12431
12454
  classId: string;
12455
+ runJobId: string | null;
12456
+ sourceUrl: string | null;
12432
12457
  };
12433
12458
  meta: object;
12434
12459
  }>;
@@ -12439,11 +12464,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12439
12464
  name: string;
12440
12465
  };
12441
12466
  output: {
12467
+ status: import(".prisma/client").$Enums.JobStatus | null;
12442
12468
  name: string;
12443
12469
  id: string;
12444
12470
  createdAt: Date;
12445
12471
  updatedAt: Date;
12446
12472
  classId: string;
12473
+ runJobId: string | null;
12474
+ sourceUrl: string | null;
12447
12475
  };
12448
12476
  meta: object;
12449
12477
  }>;
@@ -12455,11 +12483,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12455
12483
  worksheetId: string;
12456
12484
  };
12457
12485
  output: {
12486
+ status: import(".prisma/client").$Enums.JobStatus | null;
12458
12487
  name: string;
12459
12488
  id: string;
12460
12489
  createdAt: Date;
12461
12490
  updatedAt: Date;
12462
12491
  classId: string;
12492
+ runJobId: string | null;
12493
+ sourceUrl: string | null;
12463
12494
  };
12464
12495
  meta: object;
12465
12496
  }>;
@@ -12470,11 +12501,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12470
12501
  url: string;
12471
12502
  };
12472
12503
  output: {
12504
+ status: import(".prisma/client").$Enums.JobStatus | null;
12473
12505
  name: string;
12474
12506
  id: string;
12475
12507
  createdAt: Date;
12476
12508
  updatedAt: Date;
12477
12509
  classId: string;
12510
+ runJobId: string | null;
12511
+ sourceUrl: string | null;
12478
12512
  };
12479
12513
  meta: object;
12480
12514
  }>;
@@ -12515,11 +12549,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12515
12549
  fileId: string;
12516
12550
  };
12517
12551
  output: {
12552
+ status: import(".prisma/client").$Enums.JobStatus | null;
12518
12553
  name: string;
12519
12554
  id: string;
12520
12555
  createdAt: Date;
12521
12556
  updatedAt: Date;
12522
12557
  classId: string;
12558
+ runJobId: string | null;
12559
+ sourceUrl: string | null;
12523
12560
  };
12524
12561
  meta: object;
12525
12562
  }>;
@@ -12617,7 +12654,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12617
12654
  id: string;
12618
12655
  }[];
12619
12656
  } & {
12620
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12657
+ status: import(".prisma/client").$Enums.JobStatus | null;
12621
12658
  id: string;
12622
12659
  createdAt: Date;
12623
12660
  updatedAt: Date | null;
@@ -12629,6 +12666,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12629
12666
  points: number;
12630
12667
  feedback: string | null;
12631
12668
  studentWorksheetResponseId: string | null;
12669
+ runJobId: string | null;
12632
12670
  })[];
12633
12671
  } & {
12634
12672
  id: string;
@@ -12650,7 +12688,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12650
12688
  };
12651
12689
  output: {
12652
12690
  responses: {
12653
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12691
+ status: import(".prisma/client").$Enums.JobStatus | null;
12654
12692
  id: string;
12655
12693
  createdAt: Date;
12656
12694
  updatedAt: Date | null;
@@ -12662,6 +12700,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12662
12700
  points: number;
12663
12701
  feedback: string | null;
12664
12702
  studentWorksheetResponseId: string | null;
12703
+ runJobId: string | null;
12665
12704
  }[];
12666
12705
  } & {
12667
12706
  id: string;
@@ -12681,7 +12720,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12681
12720
  progressId: string;
12682
12721
  };
12683
12722
  output: {
12684
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12723
+ status: import(".prisma/client").$Enums.JobStatus | null;
12685
12724
  id: string;
12686
12725
  createdAt: Date;
12687
12726
  updatedAt: Date | null;
@@ -12693,6 +12732,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12693
12732
  points: number;
12694
12733
  feedback: string | null;
12695
12734
  studentWorksheetResponseId: string | null;
12735
+ runJobId: string | null;
12696
12736
  };
12697
12737
  meta: object;
12698
12738
  }>;
@@ -12702,7 +12742,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12702
12742
  progressId: string;
12703
12743
  };
12704
12744
  output: {
12705
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12745
+ status: import(".prisma/client").$Enums.JobStatus | null;
12706
12746
  id: string;
12707
12747
  createdAt: Date;
12708
12748
  updatedAt: Date | null;
@@ -12714,7 +12754,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12714
12754
  points: number;
12715
12755
  feedback: string | null;
12716
12756
  studentWorksheetResponseId: string | null;
12717
- };
12757
+ runJobId: string | null;
12758
+ } | null;
12718
12759
  meta: object;
12719
12760
  }>;
12720
12761
  gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
@@ -12729,7 +12770,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12729
12770
  responseId?: string | undefined;
12730
12771
  };
12731
12772
  output: {
12732
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12773
+ status: import(".prisma/client").$Enums.JobStatus | null;
12733
12774
  id: string;
12734
12775
  createdAt: Date;
12735
12776
  updatedAt: Date | null;
@@ -12741,6 +12782,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12741
12782
  points: number;
12742
12783
  feedback: string | null;
12743
12784
  studentWorksheetResponseId: string | null;
12785
+ runJobId: string | null;
12744
12786
  };
12745
12787
  meta: object;
12746
12788
  }>;
@@ -12750,7 +12792,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12750
12792
  responseId: string;
12751
12793
  };
12752
12794
  output: {
12753
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12754
12795
  id: string;
12755
12796
  createdAt: Date;
12756
12797
  assignmentId: string | null;
@@ -12845,7 +12886,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12845
12886
  } | null;
12846
12887
  };
12847
12888
  } & {
12848
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12849
12889
  id: string;
12850
12890
  createdAt: Date;
12851
12891
  assignmentId: string | null;
@@ -12865,7 +12905,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12865
12905
  parentCommentId: string;
12866
12906
  };
12867
12907
  output: {
12868
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12869
12908
  id: string;
12870
12909
  createdAt: Date;
12871
12910
  assignmentId: string | null;
@@ -12885,7 +12924,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
12885
12924
  content: string;
12886
12925
  };
12887
12926
  output: {
12888
- status: import(".prisma/client").$Enums.GenerationStatus | null;
12889
12927
  id: string;
12890
12928
  createdAt: Date;
12891
12929
  assignmentId: string | null;
@@ -13460,6 +13498,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
13460
13498
  email: string;
13461
13499
  role: "STUDENT" | "TEACHER" | "ADMIN";
13462
13500
  schoolId: string;
13501
+ username?: string | undefined;
13502
+ displayName?: string | undefined;
13463
13503
  };
13464
13504
  output: {
13465
13505
  invite: {
@@ -13481,6 +13521,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
13481
13521
  revokedAt: Date | null;
13482
13522
  invitedById: string;
13483
13523
  };
13524
+ createdUser: {
13525
+ id: string;
13526
+ username: string;
13527
+ } | null;
13484
13528
  };
13485
13529
  meta: object;
13486
13530
  }>;