@studious-lms/server 1.2.46 → 1.2.48

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 (75) hide show
  1. package/dist/index.js +22 -18
  2. package/dist/index.js.map +1 -1
  3. package/dist/middleware/auth.d.ts.map +1 -1
  4. package/dist/middleware/auth.js +3 -2
  5. package/dist/middleware/auth.js.map +1 -1
  6. package/dist/middleware/security.d.ts.map +1 -1
  7. package/dist/middleware/security.js +4 -4
  8. package/dist/middleware/security.js.map +1 -1
  9. package/dist/routers/_app.d.ts +126 -26
  10. package/dist/routers/_app.d.ts.map +1 -1
  11. package/dist/routers/assignment.d.ts +10 -0
  12. package/dist/routers/assignment.d.ts.map +1 -1
  13. package/dist/routers/assignment.js +18 -3
  14. package/dist/routers/assignment.js.map +1 -1
  15. package/dist/routers/class.d.ts +18 -0
  16. package/dist/routers/class.d.ts.map +1 -1
  17. package/dist/routers/class.js +56 -2
  18. package/dist/routers/class.js.map +1 -1
  19. package/dist/routers/conversation.d.ts +1 -0
  20. package/dist/routers/conversation.d.ts.map +1 -1
  21. package/dist/routers/labChat.d.ts +1 -0
  22. package/dist/routers/labChat.d.ts.map +1 -1
  23. package/dist/routers/labChat.js +5 -321
  24. package/dist/routers/labChat.js.map +1 -1
  25. package/dist/routers/message.d.ts +1 -0
  26. package/dist/routers/message.d.ts.map +1 -1
  27. package/dist/routers/message.js +3 -2
  28. package/dist/routers/message.js.map +1 -1
  29. package/dist/routers/newtonChat.d.ts.map +1 -1
  30. package/dist/routers/newtonChat.js +6 -183
  31. package/dist/routers/newtonChat.js.map +1 -1
  32. package/dist/routers/section.d.ts +10 -0
  33. package/dist/routers/section.d.ts.map +1 -1
  34. package/dist/routers/section.js +21 -3
  35. package/dist/routers/section.js.map +1 -1
  36. package/dist/routers/worksheet.d.ts +22 -13
  37. package/dist/routers/worksheet.d.ts.map +1 -1
  38. package/dist/routers/worksheet.js +16 -3
  39. package/dist/routers/worksheet.js.map +1 -1
  40. package/dist/seedDatabase.d.ts.map +1 -1
  41. package/dist/seedDatabase.js +34 -8
  42. package/dist/seedDatabase.js.map +1 -1
  43. package/dist/server/pipelines/aiLabChat.d.ts +12 -1
  44. package/dist/server/pipelines/aiLabChat.d.ts.map +1 -1
  45. package/dist/server/pipelines/aiLabChat.js +388 -15
  46. package/dist/server/pipelines/aiLabChat.js.map +1 -1
  47. package/dist/server/pipelines/aiNewtonChat.d.ts +30 -0
  48. package/dist/server/pipelines/aiNewtonChat.d.ts.map +1 -0
  49. package/dist/server/pipelines/aiNewtonChat.js +280 -0
  50. package/dist/server/pipelines/aiNewtonChat.js.map +1 -0
  51. package/dist/server/pipelines/gradeWorksheet.d.ts +14 -1
  52. package/dist/server/pipelines/gradeWorksheet.d.ts.map +1 -1
  53. package/dist/server/pipelines/gradeWorksheet.js +6 -5
  54. package/dist/server/pipelines/gradeWorksheet.js.map +1 -1
  55. package/dist/utils/inference.d.ts +3 -1
  56. package/dist/utils/inference.d.ts.map +1 -1
  57. package/dist/utils/inference.js +34 -4
  58. package/dist/utils/inference.js.map +1 -1
  59. package/package.json +1 -1
  60. package/prisma/schema.prisma +2 -0
  61. package/src/index.ts +24 -22
  62. package/src/middleware/auth.ts +1 -0
  63. package/src/middleware/security.ts +2 -2
  64. package/src/routers/assignment.ts +17 -2
  65. package/src/routers/class.ts +55 -0
  66. package/src/routers/labChat.ts +3 -366
  67. package/src/routers/message.ts +1 -1
  68. package/src/routers/newtonChat.ts +8 -231
  69. package/src/routers/section.ts +21 -1
  70. package/src/routers/worksheet.ts +17 -1
  71. package/src/seedDatabase.ts +38 -6
  72. package/src/server/pipelines/aiLabChat.ts +434 -19
  73. package/src/server/pipelines/aiNewtonChat.ts +338 -0
  74. package/src/server/pipelines/gradeWorksheet.ts +3 -4
  75. package/src/utils/inference.ts +40 -5
@@ -53,6 +53,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
53
53
  title: string;
54
54
  dueDate: Date;
55
55
  }[];
56
+ members: {
57
+ id: string;
58
+ username: string;
59
+ profile: {
60
+ displayName: string | null;
61
+ profilePicture: string | null;
62
+ profilePictureThumbnail: string | null;
63
+ } | null;
64
+ }[];
56
65
  color: string | null;
57
66
  }[];
58
67
  studentInClass: {
@@ -72,6 +81,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
72
81
  title: string;
73
82
  dueDate: Date;
74
83
  }[];
84
+ members: {
85
+ id: string;
86
+ username: string;
87
+ profile: {
88
+ displayName: string | null;
89
+ profilePicture: string | null;
90
+ profilePictureThumbnail: string | null;
91
+ } | null;
92
+ }[];
75
93
  color: string | null;
76
94
  }[];
77
95
  };
@@ -1278,6 +1296,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1278
1296
  } | null;
1279
1297
  meta: object;
1280
1298
  }>;
1299
+ exists: import("@trpc/server").TRPCQueryProcedure<{
1300
+ input: {
1301
+ [x: string]: unknown;
1302
+ classId: string;
1303
+ id: string;
1304
+ };
1305
+ output: boolean;
1306
+ meta: object;
1307
+ }>;
1281
1308
  move: import("@trpc/server").TRPCMutationProcedure<{
1282
1309
  input: {
1283
1310
  [x: string]: unknown;
@@ -1321,6 +1348,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1321
1348
  dueDate: string;
1322
1349
  instructions: string;
1323
1350
  type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
1351
+ id?: string | undefined;
1324
1352
  files?: {
1325
1353
  type: string;
1326
1354
  name: string;
@@ -3073,11 +3101,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3073
3101
  };
3074
3102
  transformer: false;
3075
3103
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3104
+ exists: import("@trpc/server").TRPCQueryProcedure<{
3105
+ input: {
3106
+ [x: string]: unknown;
3107
+ classId: string;
3108
+ id: string;
3109
+ };
3110
+ output: boolean;
3111
+ meta: object;
3112
+ }>;
3076
3113
  create: import("@trpc/server").TRPCMutationProcedure<{
3077
3114
  input: {
3078
3115
  [x: string]: unknown;
3079
3116
  classId: string;
3080
3117
  name: string;
3118
+ id?: string | undefined;
3081
3119
  color?: string | undefined;
3082
3120
  };
3083
3121
  output: {
@@ -4351,6 +4389,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4351
4389
  };
4352
4390
  } & {
4353
4391
  status: import(".prisma/client").$Enums.GenerationStatus | null;
4392
+ meta: import("@prisma/client/runtime/library.js").JsonValue | null;
4354
4393
  id: string;
4355
4394
  content: string;
4356
4395
  createdAt: Date;
@@ -4474,6 +4513,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4474
4513
  name: string;
4475
4514
  type: string;
4476
4515
  }[];
4516
+ meta: Record<string, any>;
4477
4517
  mentions: {
4478
4518
  user: {
4479
4519
  id: string;
@@ -4737,6 +4777,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4737
4777
  };
4738
4778
  } & {
4739
4779
  status: import(".prisma/client").$Enums.GenerationStatus | null;
4780
+ meta: import("@prisma/client/runtime/library.js").JsonValue | null;
4740
4781
  id: string;
4741
4782
  content: string;
4742
4783
  createdAt: Date;
@@ -4952,9 +4993,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4952
4993
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4953
4994
  updatedAt: Date;
4954
4995
  question: string;
4996
+ points: number;
4955
4997
  worksheetId: string;
4956
4998
  answer: string;
4957
- points: number;
4958
4999
  }[];
4959
5000
  } & {
4960
5001
  id: string;
@@ -4965,6 +5006,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4965
5006
  };
4966
5007
  meta: object;
4967
5008
  }>;
5009
+ exists: import("@trpc/server").TRPCQueryProcedure<{
5010
+ input: {
5011
+ [x: string]: unknown;
5012
+ classId: string;
5013
+ id: string;
5014
+ };
5015
+ output: boolean;
5016
+ meta: object;
5017
+ }>;
4968
5018
  listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
4969
5019
  input: {
4970
5020
  classId: string;
@@ -5042,9 +5092,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5042
5092
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5043
5093
  updatedAt: Date;
5044
5094
  question: string;
5095
+ points: number;
5045
5096
  worksheetId: string;
5046
5097
  answer: string;
5047
- points: number;
5048
5098
  };
5049
5099
  meta: object;
5050
5100
  }>;
@@ -5062,14 +5112,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5062
5112
  }>;
5063
5113
  updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
5064
5114
  input: {
5065
- worksheetId: string;
5066
5115
  questionId: string;
5116
+ worksheetId: string;
5067
5117
  options?: any;
5068
5118
  type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
5069
5119
  markScheme?: any;
5070
5120
  question?: string | undefined;
5071
- answer?: string | undefined;
5072
5121
  points?: number | undefined;
5122
+ answer?: string | undefined;
5073
5123
  };
5074
5124
  output: {
5075
5125
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
@@ -5080,16 +5130,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5080
5130
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5081
5131
  updatedAt: Date;
5082
5132
  question: string;
5133
+ points: number;
5083
5134
  worksheetId: string;
5084
5135
  answer: string;
5085
- points: number;
5086
5136
  };
5087
5137
  meta: object;
5088
5138
  }>;
5089
5139
  deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
5090
5140
  input: {
5091
- worksheetId: string;
5092
5141
  questionId: string;
5142
+ worksheetId: string;
5093
5143
  };
5094
5144
  output: {
5095
5145
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
@@ -5100,9 +5150,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5100
5150
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5101
5151
  updatedAt: Date;
5102
5152
  question: string;
5153
+ points: number;
5103
5154
  worksheetId: string;
5104
5155
  answer: string;
5105
- points: number;
5106
5156
  };
5107
5157
  meta: object;
5108
5158
  }>;
@@ -5123,11 +5173,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5123
5173
  studentId: string;
5124
5174
  createdAt: Date;
5125
5175
  updatedAt: Date | null;
5126
- points: number;
5127
5176
  questionId: string;
5128
5177
  response: string;
5129
5178
  isCorrect: boolean;
5130
5179
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5180
+ points: number;
5131
5181
  studentWorksheetResponseId: string | null;
5132
5182
  })[];
5133
5183
  } & {
@@ -5144,9 +5194,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5144
5194
  }>;
5145
5195
  answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
5146
5196
  input: {
5147
- worksheetResponseId: string;
5148
5197
  questionId: string;
5149
5198
  response: string;
5199
+ worksheetResponseId: string;
5150
5200
  };
5151
5201
  output: ({
5152
5202
  responses: {
@@ -5156,11 +5206,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5156
5206
  studentId: string;
5157
5207
  createdAt: Date;
5158
5208
  updatedAt: Date | null;
5159
- points: number;
5160
5209
  questionId: string;
5161
5210
  response: string;
5162
5211
  isCorrect: boolean;
5163
5212
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5213
+ points: number;
5164
5214
  studentWorksheetResponseId: string | null;
5165
5215
  }[];
5166
5216
  } & {
@@ -5177,8 +5227,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5177
5227
  }>;
5178
5228
  cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
5179
5229
  input: {
5180
- worksheetResponseId: string;
5181
5230
  questionId: string;
5231
+ worksheetResponseId: string;
5182
5232
  };
5183
5233
  output: {
5184
5234
  status: import(".prisma/client").$Enums.GenerationStatus | null;
@@ -5187,11 +5237,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5187
5237
  studentId: string;
5188
5238
  createdAt: Date;
5189
5239
  updatedAt: Date | null;
5190
- points: number;
5191
5240
  questionId: string;
5192
5241
  response: string;
5193
5242
  isCorrect: boolean;
5194
5243
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5244
+ points: number;
5195
5245
  studentWorksheetResponseId: string | null;
5196
5246
  };
5197
5247
  meta: object;
@@ -5202,9 +5252,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5202
5252
  isCorrect: boolean;
5203
5253
  studentWorksheetResponseId: string;
5204
5254
  feedback?: string | undefined;
5205
- points?: number | undefined;
5206
5255
  response?: string | undefined;
5207
5256
  markschemeState?: any;
5257
+ points?: number | undefined;
5208
5258
  responseId?: string | undefined;
5209
5259
  };
5210
5260
  output: any;
@@ -5437,6 +5487,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5437
5487
  title: string;
5438
5488
  dueDate: Date;
5439
5489
  }[];
5490
+ members: {
5491
+ id: string;
5492
+ username: string;
5493
+ profile: {
5494
+ displayName: string | null;
5495
+ profilePicture: string | null;
5496
+ profilePictureThumbnail: string | null;
5497
+ } | null;
5498
+ }[];
5440
5499
  color: string | null;
5441
5500
  }[];
5442
5501
  studentInClass: {
@@ -5456,6 +5515,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5456
5515
  title: string;
5457
5516
  dueDate: Date;
5458
5517
  }[];
5518
+ members: {
5519
+ id: string;
5520
+ username: string;
5521
+ profile: {
5522
+ displayName: string | null;
5523
+ profilePicture: string | null;
5524
+ profilePictureThumbnail: string | null;
5525
+ } | null;
5526
+ }[];
5459
5527
  color: string | null;
5460
5528
  }[];
5461
5529
  };
@@ -6662,6 +6730,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6662
6730
  } | null;
6663
6731
  meta: object;
6664
6732
  }>;
6733
+ exists: import("@trpc/server").TRPCQueryProcedure<{
6734
+ input: {
6735
+ [x: string]: unknown;
6736
+ classId: string;
6737
+ id: string;
6738
+ };
6739
+ output: boolean;
6740
+ meta: object;
6741
+ }>;
6665
6742
  move: import("@trpc/server").TRPCMutationProcedure<{
6666
6743
  input: {
6667
6744
  [x: string]: unknown;
@@ -6705,6 +6782,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6705
6782
  dueDate: string;
6706
6783
  instructions: string;
6707
6784
  type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
6785
+ id?: string | undefined;
6708
6786
  files?: {
6709
6787
  type: string;
6710
6788
  name: string;
@@ -8457,11 +8535,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8457
8535
  };
8458
8536
  transformer: false;
8459
8537
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
8538
+ exists: import("@trpc/server").TRPCQueryProcedure<{
8539
+ input: {
8540
+ [x: string]: unknown;
8541
+ classId: string;
8542
+ id: string;
8543
+ };
8544
+ output: boolean;
8545
+ meta: object;
8546
+ }>;
8460
8547
  create: import("@trpc/server").TRPCMutationProcedure<{
8461
8548
  input: {
8462
8549
  [x: string]: unknown;
8463
8550
  classId: string;
8464
8551
  name: string;
8552
+ id?: string | undefined;
8465
8553
  color?: string | undefined;
8466
8554
  };
8467
8555
  output: {
@@ -9735,6 +9823,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9735
9823
  };
9736
9824
  } & {
9737
9825
  status: import(".prisma/client").$Enums.GenerationStatus | null;
9826
+ meta: import("@prisma/client/runtime/library.js").JsonValue | null;
9738
9827
  id: string;
9739
9828
  content: string;
9740
9829
  createdAt: Date;
@@ -9858,6 +9947,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9858
9947
  name: string;
9859
9948
  type: string;
9860
9949
  }[];
9950
+ meta: Record<string, any>;
9861
9951
  mentions: {
9862
9952
  user: {
9863
9953
  id: string;
@@ -10121,6 +10211,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10121
10211
  };
10122
10212
  } & {
10123
10213
  status: import(".prisma/client").$Enums.GenerationStatus | null;
10214
+ meta: import("@prisma/client/runtime/library.js").JsonValue | null;
10124
10215
  id: string;
10125
10216
  content: string;
10126
10217
  createdAt: Date;
@@ -10336,9 +10427,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10336
10427
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10337
10428
  updatedAt: Date;
10338
10429
  question: string;
10430
+ points: number;
10339
10431
  worksheetId: string;
10340
10432
  answer: string;
10341
- points: number;
10342
10433
  }[];
10343
10434
  } & {
10344
10435
  id: string;
@@ -10349,6 +10440,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10349
10440
  };
10350
10441
  meta: object;
10351
10442
  }>;
10443
+ exists: import("@trpc/server").TRPCQueryProcedure<{
10444
+ input: {
10445
+ [x: string]: unknown;
10446
+ classId: string;
10447
+ id: string;
10448
+ };
10449
+ output: boolean;
10450
+ meta: object;
10451
+ }>;
10352
10452
  listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
10353
10453
  input: {
10354
10454
  classId: string;
@@ -10426,9 +10526,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10426
10526
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10427
10527
  updatedAt: Date;
10428
10528
  question: string;
10529
+ points: number;
10429
10530
  worksheetId: string;
10430
10531
  answer: string;
10431
- points: number;
10432
10532
  };
10433
10533
  meta: object;
10434
10534
  }>;
@@ -10446,14 +10546,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10446
10546
  }>;
10447
10547
  updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
10448
10548
  input: {
10449
- worksheetId: string;
10450
10549
  questionId: string;
10550
+ worksheetId: string;
10451
10551
  options?: any;
10452
10552
  type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
10453
10553
  markScheme?: any;
10454
10554
  question?: string | undefined;
10455
- answer?: string | undefined;
10456
10555
  points?: number | undefined;
10556
+ answer?: string | undefined;
10457
10557
  };
10458
10558
  output: {
10459
10559
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
@@ -10464,16 +10564,16 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10464
10564
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10465
10565
  updatedAt: Date;
10466
10566
  question: string;
10567
+ points: number;
10467
10568
  worksheetId: string;
10468
10569
  answer: string;
10469
- points: number;
10470
10570
  };
10471
10571
  meta: object;
10472
10572
  }>;
10473
10573
  deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
10474
10574
  input: {
10475
- worksheetId: string;
10476
10575
  questionId: string;
10576
+ worksheetId: string;
10477
10577
  };
10478
10578
  output: {
10479
10579
  options: import("@prisma/client/runtime/library.js").JsonValue | null;
@@ -10484,9 +10584,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10484
10584
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10485
10585
  updatedAt: Date;
10486
10586
  question: string;
10587
+ points: number;
10487
10588
  worksheetId: string;
10488
10589
  answer: string;
10489
- points: number;
10490
10590
  };
10491
10591
  meta: object;
10492
10592
  }>;
@@ -10507,11 +10607,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10507
10607
  studentId: string;
10508
10608
  createdAt: Date;
10509
10609
  updatedAt: Date | null;
10510
- points: number;
10511
10610
  questionId: string;
10512
10611
  response: string;
10513
10612
  isCorrect: boolean;
10514
10613
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10614
+ points: number;
10515
10615
  studentWorksheetResponseId: string | null;
10516
10616
  })[];
10517
10617
  } & {
@@ -10528,9 +10628,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10528
10628
  }>;
10529
10629
  answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
10530
10630
  input: {
10531
- worksheetResponseId: string;
10532
10631
  questionId: string;
10533
10632
  response: string;
10633
+ worksheetResponseId: string;
10534
10634
  };
10535
10635
  output: ({
10536
10636
  responses: {
@@ -10540,11 +10640,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10540
10640
  studentId: string;
10541
10641
  createdAt: Date;
10542
10642
  updatedAt: Date | null;
10543
- points: number;
10544
10643
  questionId: string;
10545
10644
  response: string;
10546
10645
  isCorrect: boolean;
10547
10646
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10647
+ points: number;
10548
10648
  studentWorksheetResponseId: string | null;
10549
10649
  }[];
10550
10650
  } & {
@@ -10561,8 +10661,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10561
10661
  }>;
10562
10662
  cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
10563
10663
  input: {
10564
- worksheetResponseId: string;
10565
10664
  questionId: string;
10665
+ worksheetResponseId: string;
10566
10666
  };
10567
10667
  output: {
10568
10668
  status: import(".prisma/client").$Enums.GenerationStatus | null;
@@ -10571,11 +10671,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10571
10671
  studentId: string;
10572
10672
  createdAt: Date;
10573
10673
  updatedAt: Date | null;
10574
- points: number;
10575
10674
  questionId: string;
10576
10675
  response: string;
10577
10676
  isCorrect: boolean;
10578
10677
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10678
+ points: number;
10579
10679
  studentWorksheetResponseId: string | null;
10580
10680
  };
10581
10681
  meta: object;
@@ -10586,9 +10686,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10586
10686
  isCorrect: boolean;
10587
10687
  studentWorksheetResponseId: string;
10588
10688
  feedback?: string | undefined;
10589
- points?: number | undefined;
10590
10689
  response?: string | undefined;
10591
10690
  markschemeState?: any;
10691
+ points?: number | undefined;
10592
10692
  responseId?: string | undefined;
10593
10693
  };
10594
10694
  output: any;
@@ -1 +1 @@
1
- {"version":3,"file":"_app.d.ts","sourceRoot":"/","sources":["routers/_app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAiB1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
  }>;
91
+ exists: import("@trpc/server").TRPCQueryProcedure<{
92
+ input: {
93
+ [x: string]: unknown;
94
+ classId: string;
95
+ id: string;
96
+ };
97
+ output: boolean;
98
+ meta: object;
99
+ }>;
91
100
  move: import("@trpc/server").TRPCMutationProcedure<{
92
101
  input: {
93
102
  [x: string]: unknown;
@@ -131,6 +140,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
131
140
  dueDate: string;
132
141
  instructions: string;
133
142
  type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
143
+ id?: string | undefined;
134
144
  files?: {
135
145
  type: string;
136
146
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"assignment.d.ts","sourceRoot":"/","sources":["routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;AA+MpJ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiyE3B,CAAC"}
@@ -1,5 +1,5 @@
1
1
 
2
- !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]="792a96ef-80cc-559e-b831-8e2399987b13")}catch(e){}}();
2
+ !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]="ab676c82-5988-55c9-a90b-a62a2cee20ba")}catch(e){}}();
3
3
  import { z } from "zod";
4
4
  import { createTRPCRouter, protectedProcedure, protectedClassMemberProcedure, protectedTeacherProcedure } from "../trpc.js";
5
5
  import { TRPCError } from "@trpc/server";
@@ -20,6 +20,7 @@ const directFileSchema = z.object({
20
20
  });
21
21
  const createAssignmentSchema = z.object({
22
22
  classId: z.string(),
23
+ id: z.string().optional(),
23
24
  title: z.string(),
24
25
  instructions: z.string(),
25
26
  dueDate: z.string(),
@@ -282,6 +283,19 @@ export const assignmentRouter = createTRPCRouter({
282
283
  });
283
284
  return updated;
284
285
  }),
286
+ exists: protectedClassMemberProcedure
287
+ .input(z.object({
288
+ id: z.string(),
289
+ }))
290
+ .query(async ({ ctx, input }) => {
291
+ if (!ctx.user) {
292
+ throw new TRPCError({ code: 'UNAUTHORIZED', message: 'User must be authenticated' });
293
+ }
294
+ const assignment = await prisma.assignment.findUnique({
295
+ where: { id: input.id },
296
+ });
297
+ return assignment ? true : false;
298
+ }),
285
299
  move: protectedTeacherProcedure
286
300
  .input(z.object({
287
301
  id: z.string(),
@@ -314,7 +328,7 @@ export const assignmentRouter = createTRPCRouter({
314
328
  create: protectedTeacherProcedure
315
329
  .input(createAssignmentSchema)
316
330
  .mutation(async ({ ctx, input }) => {
317
- const { classId, title, instructions, dueDate, files, existingFileIds, aiPolicyLevel, acceptFiles, acceptExtendedResponse, acceptWorksheet, worksheetIds, gradeWithAI, studentIds, maxGrade, graded, weight, sectionId, type, markSchemeId, gradingBoundaryId, inProgress } = input;
331
+ const { classId, id, title, instructions, dueDate, files, existingFileIds, aiPolicyLevel, acceptFiles, acceptExtendedResponse, acceptWorksheet, worksheetIds, gradeWithAI, studentIds, maxGrade, graded, weight, sectionId, type, markSchemeId, gradingBoundaryId, inProgress } = input;
318
332
  if (!ctx.user) {
319
333
  throw new TRPCError({
320
334
  code: "UNAUTHORIZED",
@@ -367,6 +381,7 @@ export const assignmentRouter = createTRPCRouter({
367
381
  // Create assignment with order 0 (will be at top)
368
382
  const created = await tx.assignment.create({
369
383
  data: {
384
+ ...(id && { id }),
370
385
  title,
371
386
  instructions,
372
387
  dueDate: new Date(dueDate),
@@ -2290,4 +2305,4 @@ export const assignmentRouter = createTRPCRouter({
2290
2305
  }),
2291
2306
  });
2292
2307
  //# sourceMappingURL=assignment.js.map
2293
- //# debugId=792a96ef-80cc-559e-b831-8e2399987b13
2308
+ //# debugId=ab676c82-5988-55c9-a90b-a62a2cee20ba