@studious-lms/server 1.2.33 → 1.2.34

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.
@@ -4845,6 +4845,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4845
4845
  order: number | null;
4846
4846
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4847
4847
  updatedAt: Date;
4848
+ points: number | null;
4848
4849
  question: string;
4849
4850
  worksheetId: string;
4850
4851
  answer: string;
@@ -4924,6 +4925,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4924
4925
  answer: string;
4925
4926
  options?: any;
4926
4927
  markScheme?: any;
4928
+ points?: number | undefined;
4927
4929
  };
4928
4930
  output: {
4929
4931
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
@@ -4933,6 +4935,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4933
4935
  order: number | null;
4934
4936
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4935
4937
  updatedAt: Date;
4938
+ points: number | null;
4936
4939
  question: string;
4937
4940
  worksheetId: string;
4938
4941
  answer: string;
@@ -4958,6 +4961,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4958
4961
  type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
4959
4962
  options?: any;
4960
4963
  markScheme?: any;
4964
+ points?: number | undefined;
4961
4965
  question?: string | undefined;
4962
4966
  answer?: string | undefined;
4963
4967
  };
@@ -4969,6 +4973,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4969
4973
  order: number | null;
4970
4974
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4971
4975
  updatedAt: Date;
4976
+ points: number | null;
4972
4977
  question: string;
4973
4978
  worksheetId: string;
4974
4979
  answer: string;
@@ -4988,6 +4993,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4988
4993
  order: number | null;
4989
4994
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4990
4995
  updatedAt: Date;
4996
+ points: number | null;
4991
4997
  question: string;
4992
4998
  worksheetId: string;
4993
4999
  answer: string;
@@ -5096,6 +5102,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5096
5102
  order: number | null;
5097
5103
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5098
5104
  updatedAt: Date;
5105
+ points: number | null;
5099
5106
  question: string;
5100
5107
  worksheetId: string;
5101
5108
  answer: string;
@@ -5145,6 +5152,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5145
5152
  order: number | null;
5146
5153
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5147
5154
  updatedAt: Date;
5155
+ points: number | null;
5148
5156
  question: string;
5149
5157
  worksheetId: string;
5150
5158
  answer: string;
@@ -10042,6 +10050,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10042
10050
  order: number | null;
10043
10051
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10044
10052
  updatedAt: Date;
10053
+ points: number | null;
10045
10054
  question: string;
10046
10055
  worksheetId: string;
10047
10056
  answer: string;
@@ -10121,6 +10130,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10121
10130
  answer: string;
10122
10131
  options?: any;
10123
10132
  markScheme?: any;
10133
+ points?: number | undefined;
10124
10134
  };
10125
10135
  output: {
10126
10136
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
@@ -10130,6 +10140,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10130
10140
  order: number | null;
10131
10141
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10132
10142
  updatedAt: Date;
10143
+ points: number | null;
10133
10144
  question: string;
10134
10145
  worksheetId: string;
10135
10146
  answer: string;
@@ -10155,6 +10166,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10155
10166
  type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
10156
10167
  options?: any;
10157
10168
  markScheme?: any;
10169
+ points?: number | undefined;
10158
10170
  question?: string | undefined;
10159
10171
  answer?: string | undefined;
10160
10172
  };
@@ -10166,6 +10178,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10166
10178
  order: number | null;
10167
10179
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10168
10180
  updatedAt: Date;
10181
+ points: number | null;
10169
10182
  question: string;
10170
10183
  worksheetId: string;
10171
10184
  answer: string;
@@ -10185,6 +10198,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10185
10198
  order: number | null;
10186
10199
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10187
10200
  updatedAt: Date;
10201
+ points: number | null;
10188
10202
  question: string;
10189
10203
  worksheetId: string;
10190
10204
  answer: string;
@@ -10293,6 +10307,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10293
10307
  order: number | null;
10294
10308
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10295
10309
  updatedAt: Date;
10310
+ points: number | null;
10296
10311
  question: string;
10297
10312
  worksheetId: string;
10298
10313
  answer: string;
@@ -10342,6 +10357,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10342
10357
  order: number | null;
10343
10358
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10344
10359
  updatedAt: Date;
10360
+ points: number | null;
10345
10361
  question: string;
10346
10362
  worksheetId: string;
10347
10363
  answer: string;
@@ -1 +1 @@
1
- {"version":3,"file":"_app.d.ts","sourceRoot":"","sources":["../../src/routers/_app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAe1E,eAAO,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC"}
@@ -458,7 +458,7 @@ export const announcementRouter = createTRPCRouter({
458
458
  }
459
459
  // If replying to a comment, verify parent comment exists and belongs to the same announcement
460
460
  if (input.parentCommentId) {
461
- const parentComment = await prisma.announcementComment.findFirst({
461
+ const parentComment = await prisma.comment.findFirst({
462
462
  where: {
463
463
  id: input.parentCommentId,
464
464
  announcementId: input.announcementId,
@@ -471,7 +471,7 @@ export const announcementRouter = createTRPCRouter({
471
471
  });
472
472
  }
473
473
  }
474
- const comment = await prisma.announcementComment.create({
474
+ const comment = await prisma.comment.create({
475
475
  data: {
476
476
  content: input.content,
477
477
  author: {
@@ -516,7 +516,7 @@ export const announcementRouter = createTRPCRouter({
516
516
  message: "User must be authenticated",
517
517
  });
518
518
  }
519
- const comment = await prisma.announcementComment.findUnique({
519
+ const comment = await prisma.comment.findUnique({
520
520
  where: { id: input.id },
521
521
  });
522
522
  if (!comment) {
@@ -532,7 +532,7 @@ export const announcementRouter = createTRPCRouter({
532
532
  message: "Only the comment author can update this comment",
533
533
  });
534
534
  }
535
- const updatedComment = await prisma.announcementComment.update({
535
+ const updatedComment = await prisma.comment.update({
536
536
  where: { id: input.id },
537
537
  data: {
538
538
  content: input.content,
@@ -566,7 +566,7 @@ export const announcementRouter = createTRPCRouter({
566
566
  message: "User must be authenticated",
567
567
  });
568
568
  }
569
- const comment = await prisma.announcementComment.findUnique({
569
+ const comment = await prisma.comment.findUnique({
570
570
  where: { id: input.id },
571
571
  include: {
572
572
  announcement: {
@@ -596,7 +596,7 @@ export const announcementRouter = createTRPCRouter({
596
596
  message: "Only the comment author or class teachers can delete comments",
597
597
  });
598
598
  }
599
- await prisma.announcementComment.delete({
599
+ await prisma.comment.delete({
600
600
  where: { id: input.id },
601
601
  });
602
602
  return { success: true };
@@ -621,7 +621,7 @@ export const announcementRouter = createTRPCRouter({
621
621
  });
622
622
  }
623
623
  // Get all top-level comments (no parent)
624
- const comments = await prisma.announcementComment.findMany({
624
+ const comments = await prisma.comment.findMany({
625
625
  where: {
626
626
  announcementId: input.announcementId,
627
627
  parentCommentId: null,
@@ -746,7 +746,7 @@ export const announcementRouter = createTRPCRouter({
746
746
  }
747
747
  else if (input.commentId) {
748
748
  // Verify comment exists and get its announcement to check class
749
- const comment = await prisma.announcementComment.findUnique({
749
+ const comment = await prisma.comment.findUnique({
750
750
  where: { id: input.commentId },
751
751
  include: {
752
752
  announcement: {
@@ -942,7 +942,7 @@ export const announcementRouter = createTRPCRouter({
942
942
  }
943
943
  else if (input.commentId) {
944
944
  // Verify comment exists
945
- const comment = await prisma.announcementComment.findUnique({
945
+ const comment = await prisma.comment.findUnique({
946
946
  where: { id: input.commentId },
947
947
  include: {
948
948
  announcement: {
@@ -1,11 +1,11 @@
1
1
  import { z } from "zod";
2
2
  export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
3
- ctx: import("src/trpc").Context;
3
+ ctx: import("../trpc.js").Context;
4
4
  meta: object;
5
5
  errorShape: {
6
6
  data: {
7
7
  zodError: z.typeToFlattenedError<any, string> | null;
8
- prismaError: import("../utils/prismaErrorHandler").PrismaErrorInfo | null;
8
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
9
9
  code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
10
10
  httpStatus: number;
11
11
  path?: string;
@@ -33,11 +33,12 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
33
33
  questions: {
34
34
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
35
35
  id: string;
36
- options: import("@prisma/client/runtime/library").JsonValue | null;
36
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
37
37
  createdAt: Date;
38
38
  order: number | null;
39
- markScheme: import("@prisma/client/runtime/library").JsonValue | null;
39
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
40
40
  updatedAt: Date;
41
+ points: number | null;
41
42
  question: string;
42
43
  worksheetId: string;
43
44
  answer: string;
@@ -117,15 +118,17 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
117
118
  answer: string;
118
119
  options?: any;
119
120
  markScheme?: any;
121
+ points?: number | undefined;
120
122
  };
121
123
  output: {
122
124
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
123
125
  id: string;
124
- options: import("@prisma/client/runtime/library").JsonValue | null;
126
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
125
127
  createdAt: Date;
126
128
  order: number | null;
127
- markScheme: import("@prisma/client/runtime/library").JsonValue | null;
129
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
128
130
  updatedAt: Date;
131
+ points: number | null;
129
132
  question: string;
130
133
  worksheetId: string;
131
134
  answer: string;
@@ -151,17 +154,19 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
151
154
  type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
152
155
  options?: any;
153
156
  markScheme?: any;
157
+ points?: number | undefined;
154
158
  question?: string | undefined;
155
159
  answer?: string | undefined;
156
160
  };
157
161
  output: {
158
162
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
159
163
  id: string;
160
- options: import("@prisma/client/runtime/library").JsonValue | null;
164
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
161
165
  createdAt: Date;
162
166
  order: number | null;
163
- markScheme: import("@prisma/client/runtime/library").JsonValue | null;
167
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
164
168
  updatedAt: Date;
169
+ points: number | null;
165
170
  question: string;
166
171
  worksheetId: string;
167
172
  answer: string;
@@ -176,11 +181,12 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
176
181
  output: {
177
182
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
178
183
  id: string;
179
- options: import("@prisma/client/runtime/library").JsonValue | null;
184
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
180
185
  createdAt: Date;
181
186
  order: number | null;
182
- markScheme: import("@prisma/client/runtime/library").JsonValue | null;
187
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
183
188
  updatedAt: Date;
189
+ points: number | null;
184
190
  question: string;
185
191
  worksheetId: string;
186
192
  answer: string;
@@ -284,11 +290,12 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
284
290
  question: {
285
291
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
286
292
  id: string;
287
- options: import("@prisma/client/runtime/library").JsonValue | null;
293
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
288
294
  createdAt: Date;
289
295
  order: number | null;
290
- markScheme: import("@prisma/client/runtime/library").JsonValue | null;
296
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
291
297
  updatedAt: Date;
298
+ points: number | null;
292
299
  question: string;
293
300
  worksheetId: string;
294
301
  answer: string;
@@ -333,11 +340,12 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
333
340
  question: {
334
341
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
335
342
  id: string;
336
- options: import("@prisma/client/runtime/library").JsonValue | null;
343
+ options: import("@prisma/client/runtime/library.js").JsonValue | null;
337
344
  createdAt: Date;
338
345
  order: number | null;
339
- markScheme: import("@prisma/client/runtime/library").JsonValue | null;
346
+ markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
340
347
  updatedAt: Date;
348
+ points: number | null;
341
349
  question: string;
342
350
  worksheetId: string;
343
351
  answer: string;
@@ -1 +1 @@
1
- {"version":3,"file":"worksheet.d.ts","sourceRoot":"","sources":["../../src/routers/worksheet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA2KA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsUhC,CAAC"}
1
+ {"version":3,"file":"worksheet.d.ts","sourceRoot":"","sources":["../../src/routers/worksheet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA6KA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0UhC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { TRPCError } from "@trpc/server";
2
- import { createTRPCRouter, protectedProcedure } from "src/trpc";
2
+ import { createTRPCRouter, protectedProcedure } from "../trpc.js";
3
3
  import { z } from "zod";
4
- import { prisma } from "src/lib/prisma";
4
+ import { prisma } from "../lib/prisma.js";
5
5
  export const worksheetRouter = createTRPCRouter({
6
6
  // Get a single worksheet with all questions
7
7
  getWorksheet: protectedProcedure
@@ -95,12 +95,13 @@ export const worksheetRouter = createTRPCRouter({
95
95
  worksheetId: z.string(),
96
96
  question: z.string(),
97
97
  answer: z.string(),
98
+ points: z.number().optional(),
98
99
  options: z.any().optional(), // JSON field
99
100
  markScheme: z.any().optional(), // JSON field
100
101
  type: z.enum(['MULTIPLE_CHOICE', 'TRUE_FALSE', 'SHORT_ANSWER', 'LONG_ANSWER', 'MATH_EXPRESSION', 'ESSAY']),
101
102
  }))
102
103
  .mutation(async ({ ctx, input }) => {
103
- const { worksheetId, question, answer, options, markScheme, type } = input;
104
+ const { worksheetId, question, points, answer, options, markScheme, type } = input;
104
105
  const worksheet = await prisma.worksheet.findUnique({
105
106
  where: { id: worksheetId },
106
107
  });
@@ -111,6 +112,7 @@ export const worksheetRouter = createTRPCRouter({
111
112
  data: {
112
113
  worksheetId,
113
114
  type,
115
+ points,
114
116
  question,
115
117
  answer,
116
118
  options,
@@ -167,12 +169,13 @@ export const worksheetRouter = createTRPCRouter({
167
169
  questionId: z.string(),
168
170
  question: z.string().optional(),
169
171
  answer: z.string().optional(),
172
+ points: z.number().optional(),
170
173
  options: z.any().optional(), // JSON field
171
174
  markScheme: z.any().optional(), // JSON field
172
175
  type: z.enum(['MULTIPLE_CHOICE', 'TRUE_FALSE', 'SHORT_ANSWER', 'LONG_ANSWER', 'MATH_EXPRESSION', 'ESSAY']).optional(),
173
176
  }))
174
177
  .mutation(async ({ ctx, input }) => {
175
- const { worksheetId, questionId, question, answer, options, markScheme, type } = input;
178
+ const { worksheetId, questionId, points, question, answer, options, markScheme, type } = input;
176
179
  const worksheet = await prisma.worksheet.findUnique({
177
180
  where: { id: worksheetId },
178
181
  });
@@ -187,6 +190,7 @@ export const worksheetRouter = createTRPCRouter({
187
190
  ...(markScheme !== undefined && { markScheme }),
188
191
  ...(type !== undefined && { type }),
189
192
  ...(options !== undefined && { options }),
193
+ ...(points !== undefined && { points }),
190
194
  },
191
195
  });
192
196
  return updatedQuestion;
@@ -223,7 +227,7 @@ export const worksheetRouter = createTRPCRouter({
223
227
  throw new TRPCError({ code: 'NOT_FOUND', message: 'Submission not found' });
224
228
  }
225
229
  // Find or create worksheet response for this submission
226
- const worksheetResponses = await prisma.$transaction(async (tx) => {
230
+ const worksheetResponse = await prisma.$transaction(async (tx) => {
227
231
  // First check if a response exists
228
232
  const existing = await tx.studentWorksheetResponse.findFirst({
229
233
  where: {
@@ -250,7 +254,8 @@ export const worksheetRouter = createTRPCRouter({
250
254
  });
251
255
  return created;
252
256
  });
253
- return worksheetResponses;
257
+ console.log(worksheetResponse);
258
+ return worksheetResponse;
254
259
  }),
255
260
  answerQuestion: protectedProcedure
256
261
  .input(z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studious-lms/server",
3
- "version": "1.2.33",
3
+ "version": "1.2.34",
4
4
  "description": "Backend server for Studious application",
5
5
  "main": "dist/exportType.js",
6
6
  "types": "dist/exportType.d.ts",
@@ -108,7 +108,7 @@ model User {
108
108
  sentMessages Message[] @relation("SentMessages")
109
109
  mentions Mention[] @relation("UserMentions")
110
110
  createdLabChats LabChat[] @relation("CreatedLabChats")
111
- announcementComments AnnouncementComment[]
111
+ comments Comment[]
112
112
  reactions Reaction[]
113
113
 
114
114
  }
@@ -292,20 +292,20 @@ model Announcement {
292
292
  class Class @relation(fields: [classId], references: [id], onDelete: Cascade)
293
293
  classId String
294
294
  attachments File[] @relation("AnnouncementAttachments")
295
- comments AnnouncementComment[]
295
+ comments Comment[]
296
296
  reactions Reaction[]
297
297
  }
298
298
 
299
- model AnnouncementComment {
299
+ model Comment {
300
300
  id String @id @default(uuid())
301
301
  content String
302
302
  author User @relation(fields: [authorId], references: [id], onDelete: Cascade)
303
303
  authorId String
304
304
  announcement Announcement @relation(fields: [announcementId], references: [id], onDelete: Cascade)
305
305
  announcementId String
306
- parentComment AnnouncementComment? @relation("CommentReplies", fields: [parentCommentId], references: [id], onDelete: Cascade)
306
+ parentComment Comment? @relation("CommentReplies", fields: [parentCommentId], references: [id], onDelete: Cascade)
307
307
  parentCommentId String?
308
- replies AnnouncementComment[] @relation("CommentReplies")
308
+ replies Comment[] @relation("CommentReplies")
309
309
  reactions Reaction[]
310
310
  createdAt DateTime @default(now())
311
311
  modifiedAt DateTime? @updatedAt
@@ -318,7 +318,7 @@ model Reaction {
318
318
  userId String
319
319
  announcement Announcement? @relation(fields: [announcementId], references: [id], onDelete: Cascade)
320
320
  announcementId String?
321
- comment AnnouncementComment? @relation(fields: [commentId], references: [id], onDelete: Cascade)
321
+ comment Comment? @relation(fields: [commentId], references: [id], onDelete: Cascade)
322
322
  commentId String?
323
323
  createdAt DateTime @default(now())
324
324
 
@@ -517,6 +517,7 @@ model WorksheetQuestion {
517
517
  answer String
518
518
  options Json? @default("{}")
519
519
  markScheme Json? @default("{}")
520
+ points Int? @default(0)
520
521
  order Int? @default(0)
521
522
  createdAt DateTime @default(now())
522
523
  updatedAt DateTime @updatedAt
@@ -523,7 +523,7 @@ export const announcementRouter = createTRPCRouter({
523
523
 
524
524
  // If replying to a comment, verify parent comment exists and belongs to the same announcement
525
525
  if (input.parentCommentId) {
526
- const parentComment = await prisma.announcementComment.findFirst({
526
+ const parentComment = await prisma.comment.findFirst({
527
527
  where: {
528
528
  id: input.parentCommentId,
529
529
  announcementId: input.announcementId,
@@ -538,7 +538,7 @@ export const announcementRouter = createTRPCRouter({
538
538
  }
539
539
  }
540
540
 
541
- const comment = await prisma.announcementComment.create({
541
+ const comment = await prisma.comment.create({
542
542
  data: {
543
543
  content: input.content,
544
544
  author: {
@@ -586,7 +586,7 @@ export const announcementRouter = createTRPCRouter({
586
586
  });
587
587
  }
588
588
 
589
- const comment = await prisma.announcementComment.findUnique({
589
+ const comment = await prisma.comment.findUnique({
590
590
  where: { id: input.id },
591
591
  });
592
592
 
@@ -605,7 +605,7 @@ export const announcementRouter = createTRPCRouter({
605
605
  });
606
606
  }
607
607
 
608
- const updatedComment = await prisma.announcementComment.update({
608
+ const updatedComment = await prisma.comment.update({
609
609
  where: { id: input.id },
610
610
  data: {
611
611
  content: input.content,
@@ -642,7 +642,7 @@ export const announcementRouter = createTRPCRouter({
642
642
  });
643
643
  }
644
644
 
645
- const comment = await prisma.announcementComment.findUnique({
645
+ const comment = await prisma.comment.findUnique({
646
646
  where: { id: input.id },
647
647
  include: {
648
648
  announcement: {
@@ -678,7 +678,7 @@ export const announcementRouter = createTRPCRouter({
678
678
  });
679
679
  }
680
680
 
681
- await prisma.announcementComment.delete({
681
+ await prisma.comment.delete({
682
682
  where: { id: input.id },
683
683
  });
684
684
 
@@ -707,7 +707,7 @@ export const announcementRouter = createTRPCRouter({
707
707
  }
708
708
 
709
709
  // Get all top-level comments (no parent)
710
- const comments = await prisma.announcementComment.findMany({
710
+ const comments = await prisma.comment.findMany({
711
711
  where: {
712
712
  announcementId: input.announcementId,
713
713
  parentCommentId: null,
@@ -840,7 +840,7 @@ export const announcementRouter = createTRPCRouter({
840
840
  return { reaction };
841
841
  } else if (input.commentId) {
842
842
  // Verify comment exists and get its announcement to check class
843
- const comment = await prisma.announcementComment.findUnique({
843
+ const comment = await prisma.comment.findUnique({
844
844
  where: { id: input.commentId },
845
845
  include: {
846
846
  announcement: {
@@ -1060,7 +1060,7 @@ export const announcementRouter = createTRPCRouter({
1060
1060
  };
1061
1061
  } else if (input.commentId) {
1062
1062
  // Verify comment exists
1063
- const comment = await prisma.announcementComment.findUnique({
1063
+ const comment = await prisma.comment.findUnique({
1064
1064
  where: { id: input.commentId },
1065
1065
  include: {
1066
1066
  announcement: {
@@ -1,7 +1,7 @@
1
1
  import { TRPCError } from "@trpc/server";
2
- import { createTRPCRouter, protectedProcedure } from "src/trpc";
2
+ import { createTRPCRouter, protectedProcedure } from "../trpc.js";
3
3
  import { z } from "zod";
4
- import { prisma } from "src/lib/prisma";
4
+ import { prisma } from "../lib/prisma.js";
5
5
  import { WorksheetQuestionType } from "@prisma/client";
6
6
 
7
7
  export const worksheetRouter = createTRPCRouter({
@@ -112,12 +112,13 @@ export const worksheetRouter = createTRPCRouter({
112
112
  worksheetId: z.string(),
113
113
  question: z.string(),
114
114
  answer: z.string(),
115
+ points: z.number().optional(),
115
116
  options: z.any().optional(), // JSON field
116
117
  markScheme: z.any().optional(), // JSON field
117
118
  type: z.enum(['MULTIPLE_CHOICE', 'TRUE_FALSE', 'SHORT_ANSWER', 'LONG_ANSWER', 'MATH_EXPRESSION', 'ESSAY']),
118
119
  }))
119
120
  .mutation(async ({ ctx, input }) => {
120
- const { worksheetId, question, answer, options, markScheme, type } = input;
121
+ const { worksheetId, question, points, answer, options, markScheme, type } = input;
121
122
 
122
123
  const worksheet = await prisma.worksheet.findUnique({
123
124
  where: { id: worksheetId },
@@ -131,6 +132,7 @@ export const worksheetRouter = createTRPCRouter({
131
132
  data: {
132
133
  worksheetId,
133
134
  type,
135
+ points,
134
136
  question,
135
137
  answer,
136
138
  options,
@@ -201,12 +203,13 @@ export const worksheetRouter = createTRPCRouter({
201
203
  questionId: z.string(),
202
204
  question: z.string().optional(),
203
205
  answer: z.string().optional(),
206
+ points: z.number().optional(),
204
207
  options: z.any().optional(), // JSON field
205
208
  markScheme: z.any().optional(), // JSON field
206
209
  type: z.enum(['MULTIPLE_CHOICE', 'TRUE_FALSE', 'SHORT_ANSWER', 'LONG_ANSWER', 'MATH_EXPRESSION', 'ESSAY']).optional(),
207
210
  }))
208
211
  .mutation(async ({ ctx, input }) => {
209
- const { worksheetId, questionId, question, answer, options, markScheme, type } = input;
212
+ const { worksheetId, questionId, points, question, answer, options, markScheme, type } = input;
210
213
 
211
214
  const worksheet = await prisma.worksheet.findUnique({
212
215
  where: { id: worksheetId },
@@ -224,6 +227,7 @@ export const worksheetRouter = createTRPCRouter({
224
227
  ...(markScheme !== undefined && { markScheme }),
225
228
  ...(type !== undefined && { type }),
226
229
  ...(options !== undefined && { options }),
230
+ ...(points !== undefined && { points }),
227
231
  },
228
232
  });
229
233
 
@@ -269,7 +273,7 @@ export const worksheetRouter = createTRPCRouter({
269
273
  }
270
274
 
271
275
  // Find or create worksheet response for this submission
272
- const worksheetResponses = await prisma.$transaction(async (tx) => {
276
+ const worksheetResponse = await prisma.$transaction(async (tx) => {
273
277
  // First check if a response exists
274
278
  const existing = await tx.studentWorksheetResponse.findFirst({
275
279
  where: {
@@ -300,7 +304,9 @@ export const worksheetRouter = createTRPCRouter({
300
304
  return created;
301
305
  });
302
306
 
303
- return worksheetResponses;
307
+
308
+ console.log(worksheetResponse);
309
+ return worksheetResponse;
304
310
  }),
305
311
  answerQuestion: protectedProcedure
306
312
  .input(z.object({