@studious-lms/server 1.2.35 → 1.2.36

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.
@@ -5010,7 +5010,35 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5010
5010
  worksheetId: string;
5011
5011
  };
5012
5012
  output: {
5013
- responses: {
5013
+ responses: ({
5014
+ comments: {
5015
+ reactions: {
5016
+ type: import(".prisma/client").$Enums.ReactionType;
5017
+ user: {
5018
+ id: string;
5019
+ username: string;
5020
+ profile: {
5021
+ displayName: string | null;
5022
+ profilePicture: string | null;
5023
+ profilePictureThumbnail: string | null;
5024
+ } | null;
5025
+ };
5026
+ }[];
5027
+ replies: {
5028
+ id: string;
5029
+ content: string;
5030
+ author: {
5031
+ id: string;
5032
+ username: string;
5033
+ profile: {
5034
+ displayName: string | null;
5035
+ profilePicture: string | null;
5036
+ profilePictureThumbnail: string | null;
5037
+ } | null;
5038
+ };
5039
+ }[];
5040
+ }[];
5041
+ } & {
5014
5042
  id: string;
5015
5043
  feedback: string | null;
5016
5044
  studentId: string;
@@ -5022,7 +5050,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5022
5050
  studentWorksheetResponseId: string | null;
5023
5051
  isCorrect: boolean;
5024
5052
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5025
- }[];
5053
+ })[];
5026
5054
  } & {
5027
5055
  id: string;
5028
5056
  submissionId: string | null;
@@ -5176,7 +5204,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5176
5204
  } | null;
5177
5205
  };
5178
5206
  }[];
5179
- } | null;
5207
+ };
5180
5208
  meta: object;
5181
5209
  }>;
5182
5210
  replyToComment: import("@trpc/server").TRPCMutationProcedure<{
@@ -10266,7 +10294,35 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10266
10294
  worksheetId: string;
10267
10295
  };
10268
10296
  output: {
10269
- responses: {
10297
+ responses: ({
10298
+ comments: {
10299
+ reactions: {
10300
+ type: import(".prisma/client").$Enums.ReactionType;
10301
+ user: {
10302
+ id: string;
10303
+ username: string;
10304
+ profile: {
10305
+ displayName: string | null;
10306
+ profilePicture: string | null;
10307
+ profilePictureThumbnail: string | null;
10308
+ } | null;
10309
+ };
10310
+ }[];
10311
+ replies: {
10312
+ id: string;
10313
+ content: string;
10314
+ author: {
10315
+ id: string;
10316
+ username: string;
10317
+ profile: {
10318
+ displayName: string | null;
10319
+ profilePicture: string | null;
10320
+ profilePictureThumbnail: string | null;
10321
+ } | null;
10322
+ };
10323
+ }[];
10324
+ }[];
10325
+ } & {
10270
10326
  id: string;
10271
10327
  feedback: string | null;
10272
10328
  studentId: string;
@@ -10278,7 +10334,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10278
10334
  studentWorksheetResponseId: string | null;
10279
10335
  isCorrect: boolean;
10280
10336
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10281
- }[];
10337
+ })[];
10282
10338
  } & {
10283
10339
  id: string;
10284
10340
  submissionId: string | null;
@@ -10432,7 +10488,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10432
10488
  } | null;
10433
10489
  };
10434
10490
  }[];
10435
- } | null;
10491
+ };
10436
10492
  meta: object;
10437
10493
  }>;
10438
10494
  replyToComment: import("@trpc/server").TRPCMutationProcedure<{
@@ -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;AAgB1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;
7
+ author: {
8
+ select: {
9
+ id: boolean;
10
+ username: boolean;
11
+ profile: {
12
+ select: {
13
+ displayName: boolean;
14
+ profilePicture: boolean;
15
+ profilePictureThumbnail: boolean;
16
+ };
17
+ };
18
+ };
19
+ };
20
+ };
21
+ };
22
+ reactions: {
23
+ select: {
24
+ type: boolean;
25
+ user: {
26
+ select: {
27
+ id: boolean;
28
+ username: boolean;
29
+ profile: {
30
+ select: {
31
+ displayName: boolean;
32
+ profilePicture: boolean;
33
+ profilePictureThumbnail: boolean;
34
+ };
35
+ };
36
+ };
37
+ };
38
+ };
39
+ };
40
+ };
2
41
  export declare const commentRouter: import("@trpc/server").TRPCBuiltRouter<{
3
42
  ctx: import("../trpc.js").Context;
4
43
  meta: object;
@@ -46,7 +85,7 @@ export declare const commentRouter: import("@trpc/server").TRPCBuiltRouter<{
46
85
  } | null;
47
86
  };
48
87
  }[];
49
- } | null;
88
+ };
50
89
  meta: object;
51
90
  }>;
52
91
  replyToComment: import("@trpc/server").TRPCMutationProcedure<{
@@ -1 +1 @@
1
- {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/routers/comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsQxB,CAAC"}
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../src/routers/comment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4QxB,CAAC"}
@@ -2,6 +2,45 @@ import { createTRPCRouter, protectedProcedure } from "../trpc.js";
2
2
  import { z } from "zod";
3
3
  import { prisma } from "../lib/prisma.js";
4
4
  import { TRPCError } from "@trpc/server";
5
+ export const commentSelect = {
6
+ replies: {
7
+ select: {
8
+ id: true,
9
+ content: true,
10
+ author: {
11
+ select: {
12
+ id: true,
13
+ username: true,
14
+ profile: {
15
+ select: {
16
+ displayName: true,
17
+ profilePicture: true,
18
+ profilePictureThumbnail: true,
19
+ },
20
+ },
21
+ },
22
+ },
23
+ },
24
+ },
25
+ reactions: {
26
+ select: {
27
+ type: true,
28
+ user: {
29
+ select: {
30
+ id: true,
31
+ username: true,
32
+ profile: {
33
+ select: {
34
+ displayName: true,
35
+ profilePicture: true,
36
+ profilePictureThumbnail: true,
37
+ },
38
+ },
39
+ },
40
+ },
41
+ },
42
+ },
43
+ };
5
44
  export const commentRouter = createTRPCRouter({
6
45
  get: protectedProcedure
7
46
  .input(z.object({
@@ -50,6 +89,12 @@ export const commentRouter = createTRPCRouter({
50
89
  },
51
90
  }
52
91
  });
92
+ if (!comment) {
93
+ throw new TRPCError({
94
+ code: "NOT_FOUND",
95
+ message: "Comment not found",
96
+ });
97
+ }
53
98
  return comment;
54
99
  }),
55
100
  replyToComment: protectedProcedure
@@ -199,7 +199,35 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
199
199
  worksheetId: string;
200
200
  };
201
201
  output: {
202
- responses: {
202
+ responses: ({
203
+ comments: {
204
+ reactions: {
205
+ type: import(".prisma/client").$Enums.ReactionType;
206
+ user: {
207
+ id: string;
208
+ username: string;
209
+ profile: {
210
+ displayName: string | null;
211
+ profilePicture: string | null;
212
+ profilePictureThumbnail: string | null;
213
+ } | null;
214
+ };
215
+ }[];
216
+ replies: {
217
+ id: string;
218
+ content: string;
219
+ author: {
220
+ id: string;
221
+ username: string;
222
+ profile: {
223
+ displayName: string | null;
224
+ profilePicture: string | null;
225
+ profilePictureThumbnail: string | null;
226
+ } | null;
227
+ };
228
+ }[];
229
+ }[];
230
+ } & {
203
231
  id: string;
204
232
  feedback: string | null;
205
233
  studentId: string;
@@ -211,7 +239,7 @@ export declare const worksheetRouter: import("@trpc/server").TRPCBuiltRouter<{
211
239
  studentWorksheetResponseId: string | null;
212
240
  isCorrect: boolean;
213
241
  markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
214
- }[];
242
+ })[];
215
243
  } & {
216
244
  id: string;
217
245
  submissionId: string | null;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA8KA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4UhC,CAAC"}
1
+ {"version":3,"file":"worksheet.d.ts","sourceRoot":"","sources":["../../src/routers/worksheet.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA8KA,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwVhC,CAAC"}
@@ -2,6 +2,7 @@ import { TRPCError } from "@trpc/server";
2
2
  import { createTRPCRouter, protectedProcedure } from "../trpc.js";
3
3
  import { z } from "zod";
4
4
  import { prisma } from "../lib/prisma.js";
5
+ import { commentSelect } from "./comment.js";
5
6
  export const worksheetRouter = createTRPCRouter({
6
7
  // Get a single worksheet with all questions
7
8
  getWorksheet: protectedProcedure
@@ -236,7 +237,13 @@ export const worksheetRouter = createTRPCRouter({
236
237
  worksheetId
237
238
  },
238
239
  include: {
239
- responses: true,
240
+ responses: {
241
+ include: {
242
+ comments: {
243
+ select: commentSelect,
244
+ },
245
+ },
246
+ },
240
247
  },
241
248
  });
242
249
  if (existing) {
@@ -250,7 +257,13 @@ export const worksheetRouter = createTRPCRouter({
250
257
  studentId: submission.studentId,
251
258
  },
252
259
  include: {
253
- responses: true,
260
+ responses: {
261
+ include: {
262
+ comments: {
263
+ select: commentSelect,
264
+ },
265
+ },
266
+ },
254
267
  },
255
268
  });
256
269
  return created;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studious-lms/server",
3
- "version": "1.2.35",
3
+ "version": "1.2.36",
4
4
  "description": "Backend server for Studious application",
5
5
  "main": "dist/exportType.js",
6
6
  "types": "dist/exportType.d.ts",
@@ -3,6 +3,46 @@ import { z } from "zod";
3
3
  import { prisma } from "../lib/prisma.js";
4
4
  import { TRPCError } from "@trpc/server";
5
5
 
6
+ export const commentSelect = {
7
+ replies: {
8
+ select: {
9
+ id: true,
10
+ content: true,
11
+ author: {
12
+ select: {
13
+ id: true,
14
+ username: true,
15
+ profile: {
16
+ select: {
17
+ displayName: true,
18
+ profilePicture: true,
19
+ profilePictureThumbnail: true,
20
+ },
21
+ },
22
+ },
23
+ },
24
+ },
25
+ },
26
+ reactions: {
27
+ select: {
28
+ type: true,
29
+ user: {
30
+ select: {
31
+ id: true,
32
+ username: true,
33
+ profile: {
34
+ select: {
35
+ displayName: true,
36
+ profilePicture: true,
37
+ profilePictureThumbnail: true,
38
+ },
39
+ },
40
+ },
41
+ },
42
+ },
43
+ },
44
+ };
45
+
6
46
  export const commentRouter = createTRPCRouter({
7
47
  get: protectedProcedure
8
48
  .input(z.object({
@@ -51,6 +91,12 @@ export const commentRouter = createTRPCRouter({
51
91
  },
52
92
  }
53
93
  });
94
+ if (!comment) {
95
+ throw new TRPCError({
96
+ code: "NOT_FOUND",
97
+ message: "Comment not found",
98
+ });
99
+ }
54
100
  return comment;
55
101
  }),
56
102
  replyToComment: protectedProcedure
@@ -3,6 +3,7 @@ import { createTRPCRouter, protectedProcedure } from "../trpc.js";
3
3
  import { z } from "zod";
4
4
  import { prisma } from "../lib/prisma.js";
5
5
  import { WorksheetQuestionType } from "@prisma/client";
6
+ import { commentSelect } from "./comment.js";
6
7
 
7
8
  export const worksheetRouter = createTRPCRouter({
8
9
  // Get a single worksheet with all questions
@@ -282,7 +283,13 @@ export const worksheetRouter = createTRPCRouter({
282
283
  worksheetId
283
284
  },
284
285
  include: {
285
- responses: true,
286
+ responses: {
287
+ include: {
288
+ comments: {
289
+ select: commentSelect,
290
+ },
291
+ },
292
+ },
286
293
  },
287
294
  });
288
295
 
@@ -298,7 +305,13 @@ export const worksheetRouter = createTRPCRouter({
298
305
  studentId: submission.studentId,
299
306
  },
300
307
  include: {
301
- responses: true,
308
+ responses: {
309
+ include: {
310
+ comments: {
311
+ select: commentSelect,
312
+ },
313
+ },
314
+ },
302
315
  },
303
316
  });
304
317