@studious-lms/server 1.4.5 → 1.4.6

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 (45) hide show
  1. package/dist/lib/config/cors.d.ts.map +1 -1
  2. package/dist/lib/config/cors.js +8 -3
  3. package/dist/lib/config/cors.js.map +1 -1
  4. package/dist/models/comment.d.ts +163 -0
  5. package/dist/models/comment.d.ts.map +1 -1
  6. package/dist/models/comment.js +145 -3
  7. package/dist/models/comment.js.map +1 -1
  8. package/dist/models/worksheet.d.ts +2 -0
  9. package/dist/models/worksheet.d.ts.map +1 -1
  10. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  11. package/dist/pipelines/aiLabChat.js +4 -3
  12. package/dist/pipelines/aiLabChat.js.map +1 -1
  13. package/dist/routers/_app.d.ts +562 -8
  14. package/dist/routers/_app.d.ts.map +1 -1
  15. package/dist/routers/announcement.d.ts +8 -0
  16. package/dist/routers/announcement.d.ts.map +1 -1
  17. package/dist/routers/assignment.d.ts +230 -0
  18. package/dist/routers/assignment.d.ts.map +1 -1
  19. package/dist/routers/assignment.js +207 -2
  20. package/dist/routers/assignment.js.map +1 -1
  21. package/dist/routers/comment.d.ts +37 -0
  22. package/dist/routers/comment.d.ts.map +1 -1
  23. package/dist/routers/comment.js +14 -5
  24. package/dist/routers/comment.js.map +1 -1
  25. package/dist/routers/worksheet.d.ts +2 -0
  26. package/dist/routers/worksheet.d.ts.map +1 -1
  27. package/dist/services/comment.d.ts +28 -2
  28. package/dist/services/comment.d.ts.map +1 -1
  29. package/dist/services/comment.js +97 -19
  30. package/dist/services/comment.js.map +1 -1
  31. package/dist/services/worksheet.d.ts +2 -0
  32. package/dist/services/worksheet.d.ts.map +1 -1
  33. package/package.json +1 -1
  34. package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +60 -0
  35. package/prisma/schema.prisma +9 -0
  36. package/src/lib/config/cors.ts +8 -1
  37. package/src/models/comment.ts +148 -1
  38. package/src/pipelines/aiLabChat.ts +2 -1
  39. package/src/routers/assignment.ts +224 -1
  40. package/src/routers/comment.ts +19 -2
  41. package/src/services/comment.ts +113 -18
  42. package/tests/lib/cors.test.ts +13 -1
  43. package/tests/routers/assignment.test.ts +68 -2
  44. package/tests/routers/comment.test.ts +42 -1
  45. package/vercel.json +8 -0
@@ -1164,6 +1164,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1164
1164
  } & {
1165
1165
  status: import(".prisma/client").$Enums.GenerationStatus | null;
1166
1166
  id: string;
1167
+ assignmentId: string | null;
1168
+ submissionId: string | null;
1167
1169
  announcementId: string | null;
1168
1170
  createdAt: Date;
1169
1171
  modifiedAt: Date | null;
@@ -1194,6 +1196,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1194
1196
  } & {
1195
1197
  status: import(".prisma/client").$Enums.GenerationStatus | null;
1196
1198
  id: string;
1199
+ assignmentId: string | null;
1200
+ submissionId: string | null;
1197
1201
  announcementId: string | null;
1198
1202
  createdAt: Date;
1199
1203
  modifiedAt: Date | null;
@@ -1244,6 +1248,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1244
1248
  } & {
1245
1249
  status: import(".prisma/client").$Enums.GenerationStatus | null;
1246
1250
  id: string;
1251
+ assignmentId: string | null;
1252
+ submissionId: string | null;
1247
1253
  announcementId: string | null;
1248
1254
  createdAt: Date;
1249
1255
  modifiedAt: Date | null;
@@ -1255,6 +1261,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1255
1261
  } & {
1256
1262
  status: import(".prisma/client").$Enums.GenerationStatus | null;
1257
1263
  id: string;
1264
+ assignmentId: string | null;
1265
+ submissionId: string | null;
1258
1266
  announcementId: string | null;
1259
1267
  createdAt: Date;
1260
1268
  modifiedAt: Date | null;
@@ -2220,6 +2228,236 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2220
2228
  }[];
2221
2229
  meta: object;
2222
2230
  }>;
2231
+ getComments: import("@trpc/server").TRPCQueryProcedure<{
2232
+ input: {
2233
+ [x: string]: unknown;
2234
+ classId: string;
2235
+ assignmentId: string;
2236
+ };
2237
+ output: {
2238
+ comments: ({
2239
+ author: {
2240
+ id: string;
2241
+ username: string;
2242
+ profile: {
2243
+ displayName: string | null;
2244
+ profilePicture: string | null;
2245
+ profilePictureThumbnail: string | null;
2246
+ } | null;
2247
+ };
2248
+ replies: ({
2249
+ author: {
2250
+ id: string;
2251
+ username: string;
2252
+ profile: {
2253
+ displayName: string | null;
2254
+ profilePicture: string | null;
2255
+ profilePictureThumbnail: string | null;
2256
+ } | null;
2257
+ };
2258
+ } & {
2259
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
2260
+ id: string;
2261
+ assignmentId: string | null;
2262
+ submissionId: string | null;
2263
+ announcementId: string | null;
2264
+ createdAt: Date;
2265
+ modifiedAt: Date | null;
2266
+ content: string;
2267
+ authorId: string;
2268
+ parentCommentId: string | null;
2269
+ studentQuestionProgressId: string | null;
2270
+ })[];
2271
+ } & {
2272
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
2273
+ id: string;
2274
+ assignmentId: string | null;
2275
+ submissionId: string | null;
2276
+ announcementId: string | null;
2277
+ createdAt: Date;
2278
+ modifiedAt: Date | null;
2279
+ content: string;
2280
+ authorId: string;
2281
+ parentCommentId: string | null;
2282
+ studentQuestionProgressId: string | null;
2283
+ })[];
2284
+ };
2285
+ meta: object;
2286
+ }>;
2287
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
2288
+ input: {
2289
+ [x: string]: unknown;
2290
+ classId: string;
2291
+ assignmentId: string;
2292
+ content: string;
2293
+ parentCommentId?: string | undefined;
2294
+ };
2295
+ output: {
2296
+ comment: {
2297
+ author: {
2298
+ id: string;
2299
+ username: string;
2300
+ profile: {
2301
+ displayName: string | null;
2302
+ profilePicture: string | null;
2303
+ profilePictureThumbnail: string | null;
2304
+ } | null;
2305
+ };
2306
+ replies: ({
2307
+ author: {
2308
+ id: string;
2309
+ username: string;
2310
+ profile: {
2311
+ displayName: string | null;
2312
+ profilePicture: string | null;
2313
+ profilePictureThumbnail: string | null;
2314
+ } | null;
2315
+ };
2316
+ } & {
2317
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
2318
+ id: string;
2319
+ assignmentId: string | null;
2320
+ submissionId: string | null;
2321
+ announcementId: string | null;
2322
+ createdAt: Date;
2323
+ modifiedAt: Date | null;
2324
+ content: string;
2325
+ authorId: string;
2326
+ parentCommentId: string | null;
2327
+ studentQuestionProgressId: string | null;
2328
+ })[];
2329
+ } & {
2330
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
2331
+ id: string;
2332
+ assignmentId: string | null;
2333
+ submissionId: string | null;
2334
+ announcementId: string | null;
2335
+ createdAt: Date;
2336
+ modifiedAt: Date | null;
2337
+ content: string;
2338
+ authorId: string;
2339
+ parentCommentId: string | null;
2340
+ studentQuestionProgressId: string | null;
2341
+ };
2342
+ };
2343
+ meta: object;
2344
+ }>;
2345
+ getSubmissionComments: import("@trpc/server").TRPCQueryProcedure<{
2346
+ input: {
2347
+ [x: string]: unknown;
2348
+ classId: string;
2349
+ assignmentId: string;
2350
+ submissionId: string;
2351
+ };
2352
+ output: {
2353
+ comments: ({
2354
+ author: {
2355
+ id: string;
2356
+ username: string;
2357
+ profile: {
2358
+ displayName: string | null;
2359
+ profilePicture: string | null;
2360
+ profilePictureThumbnail: string | null;
2361
+ } | null;
2362
+ };
2363
+ replies: ({
2364
+ author: {
2365
+ id: string;
2366
+ username: string;
2367
+ profile: {
2368
+ displayName: string | null;
2369
+ profilePicture: string | null;
2370
+ profilePictureThumbnail: string | null;
2371
+ } | null;
2372
+ };
2373
+ } & {
2374
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
2375
+ id: string;
2376
+ assignmentId: string | null;
2377
+ submissionId: string | null;
2378
+ announcementId: string | null;
2379
+ createdAt: Date;
2380
+ modifiedAt: Date | null;
2381
+ content: string;
2382
+ authorId: string;
2383
+ parentCommentId: string | null;
2384
+ studentQuestionProgressId: string | null;
2385
+ })[];
2386
+ } & {
2387
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
2388
+ id: string;
2389
+ assignmentId: string | null;
2390
+ submissionId: string | null;
2391
+ announcementId: string | null;
2392
+ createdAt: Date;
2393
+ modifiedAt: Date | null;
2394
+ content: string;
2395
+ authorId: string;
2396
+ parentCommentId: string | null;
2397
+ studentQuestionProgressId: string | null;
2398
+ })[];
2399
+ };
2400
+ meta: object;
2401
+ }>;
2402
+ addSubmissionComment: import("@trpc/server").TRPCMutationProcedure<{
2403
+ input: {
2404
+ [x: string]: unknown;
2405
+ classId: string;
2406
+ assignmentId: string;
2407
+ submissionId: string;
2408
+ content: string;
2409
+ parentCommentId?: string | undefined;
2410
+ };
2411
+ output: {
2412
+ comment: {
2413
+ author: {
2414
+ id: string;
2415
+ username: string;
2416
+ profile: {
2417
+ displayName: string | null;
2418
+ profilePicture: string | null;
2419
+ profilePictureThumbnail: string | null;
2420
+ } | null;
2421
+ };
2422
+ replies: ({
2423
+ author: {
2424
+ id: string;
2425
+ username: string;
2426
+ profile: {
2427
+ displayName: string | null;
2428
+ profilePicture: string | null;
2429
+ profilePictureThumbnail: string | null;
2430
+ } | null;
2431
+ };
2432
+ } & {
2433
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
2434
+ id: string;
2435
+ assignmentId: string | null;
2436
+ submissionId: string | null;
2437
+ announcementId: string | null;
2438
+ createdAt: Date;
2439
+ modifiedAt: Date | null;
2440
+ content: string;
2441
+ authorId: string;
2442
+ parentCommentId: string | null;
2443
+ studentQuestionProgressId: string | null;
2444
+ })[];
2445
+ } & {
2446
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
2447
+ id: string;
2448
+ assignmentId: string | null;
2449
+ submissionId: string | null;
2450
+ announcementId: string | null;
2451
+ createdAt: Date;
2452
+ modifiedAt: Date | null;
2453
+ content: string;
2454
+ authorId: string;
2455
+ parentCommentId: string | null;
2456
+ studentQuestionProgressId: string | null;
2457
+ };
2458
+ };
2459
+ meta: object;
2460
+ }>;
2223
2461
  updateSubmissionAsTeacher: import("@trpc/server").TRPCMutationProcedure<{
2224
2462
  input: {
2225
2463
  [x: string]: unknown;
@@ -5650,6 +5888,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5650
5888
  output: {
5651
5889
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5652
5890
  id: string;
5891
+ assignmentId: string | null;
5892
+ submissionId: string | null;
5653
5893
  announcementId: string | null;
5654
5894
  createdAt: Date;
5655
5895
  modifiedAt: Date | null;
@@ -5695,6 +5935,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5695
5935
  };
5696
5936
  output: {
5697
5937
  id: string;
5938
+ assignmentId: string | null;
5939
+ submissionId: string | null;
5940
+ announcementId: string | null;
5698
5941
  reactions: {
5699
5942
  type: import(".prisma/client").$Enums.ReactionType;
5700
5943
  user: {
@@ -5710,6 +5953,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5710
5953
  createdAt: Date;
5711
5954
  modifiedAt: Date | null;
5712
5955
  content: string;
5956
+ parentCommentId: string | null;
5713
5957
  author: {
5714
5958
  id: string;
5715
5959
  username: string;
@@ -5739,6 +5983,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5739
5983
  } & {
5740
5984
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5741
5985
  id: string;
5986
+ assignmentId: string | null;
5987
+ submissionId: string | null;
5742
5988
  announcementId: string | null;
5743
5989
  createdAt: Date;
5744
5990
  modifiedAt: Date | null;
@@ -5757,6 +6003,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5757
6003
  output: {
5758
6004
  status: import(".prisma/client").$Enums.GenerationStatus | null;
5759
6005
  id: string;
6006
+ assignmentId: string | null;
6007
+ submissionId: string | null;
5760
6008
  announcementId: string | null;
5761
6009
  createdAt: Date;
5762
6010
  modifiedAt: Date | null;
@@ -5767,18 +6015,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5767
6015
  };
5768
6016
  meta: object;
5769
6017
  }>;
5770
- addReaction: import("@trpc/server").TRPCMutationProcedure<{
6018
+ update: import("@trpc/server").TRPCMutationProcedure<{
5771
6019
  input: {
5772
- type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
5773
6020
  id: string;
6021
+ content: string;
5774
6022
  };
5775
6023
  output: {
5776
- reaction: {
5777
- user: {
5778
- id: string;
5779
- username: string;
5780
- profile: {
5781
- displayName: string | null;
6024
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
6025
+ id: string;
6026
+ assignmentId: string | null;
6027
+ submissionId: string | null;
6028
+ announcementId: string | null;
6029
+ createdAt: Date;
6030
+ modifiedAt: Date | null;
6031
+ content: string;
6032
+ authorId: string;
6033
+ parentCommentId: string | null;
6034
+ studentQuestionProgressId: string | null;
6035
+ };
6036
+ meta: object;
6037
+ }>;
6038
+ delete: import("@trpc/server").TRPCMutationProcedure<{
6039
+ input: {
6040
+ id: string;
6041
+ };
6042
+ output: {
6043
+ success: boolean;
6044
+ };
6045
+ meta: object;
6046
+ }>;
6047
+ addReaction: import("@trpc/server").TRPCMutationProcedure<{
6048
+ input: {
6049
+ type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
6050
+ id: string;
6051
+ };
6052
+ output: {
6053
+ reaction: {
6054
+ user: {
6055
+ id: string;
6056
+ username: string;
6057
+ profile: {
6058
+ displayName: string | null;
5782
6059
  profilePicture: string | null;
5783
6060
  profilePictureThumbnail: string | null;
5784
6061
  } | null;
@@ -7189,6 +7466,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7189
7466
  } & {
7190
7467
  status: import(".prisma/client").$Enums.GenerationStatus | null;
7191
7468
  id: string;
7469
+ assignmentId: string | null;
7470
+ submissionId: string | null;
7192
7471
  announcementId: string | null;
7193
7472
  createdAt: Date;
7194
7473
  modifiedAt: Date | null;
@@ -7219,6 +7498,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7219
7498
  } & {
7220
7499
  status: import(".prisma/client").$Enums.GenerationStatus | null;
7221
7500
  id: string;
7501
+ assignmentId: string | null;
7502
+ submissionId: string | null;
7222
7503
  announcementId: string | null;
7223
7504
  createdAt: Date;
7224
7505
  modifiedAt: Date | null;
@@ -7269,6 +7550,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7269
7550
  } & {
7270
7551
  status: import(".prisma/client").$Enums.GenerationStatus | null;
7271
7552
  id: string;
7553
+ assignmentId: string | null;
7554
+ submissionId: string | null;
7272
7555
  announcementId: string | null;
7273
7556
  createdAt: Date;
7274
7557
  modifiedAt: Date | null;
@@ -7280,6 +7563,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7280
7563
  } & {
7281
7564
  status: import(".prisma/client").$Enums.GenerationStatus | null;
7282
7565
  id: string;
7566
+ assignmentId: string | null;
7567
+ submissionId: string | null;
7283
7568
  announcementId: string | null;
7284
7569
  createdAt: Date;
7285
7570
  modifiedAt: Date | null;
@@ -8245,6 +8530,236 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
8245
8530
  }[];
8246
8531
  meta: object;
8247
8532
  }>;
8533
+ getComments: import("@trpc/server").TRPCQueryProcedure<{
8534
+ input: {
8535
+ [x: string]: unknown;
8536
+ classId: string;
8537
+ assignmentId: string;
8538
+ };
8539
+ output: {
8540
+ comments: ({
8541
+ author: {
8542
+ id: string;
8543
+ username: string;
8544
+ profile: {
8545
+ displayName: string | null;
8546
+ profilePicture: string | null;
8547
+ profilePictureThumbnail: string | null;
8548
+ } | null;
8549
+ };
8550
+ replies: ({
8551
+ author: {
8552
+ id: string;
8553
+ username: string;
8554
+ profile: {
8555
+ displayName: string | null;
8556
+ profilePicture: string | null;
8557
+ profilePictureThumbnail: string | null;
8558
+ } | null;
8559
+ };
8560
+ } & {
8561
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
8562
+ id: string;
8563
+ assignmentId: string | null;
8564
+ submissionId: string | null;
8565
+ announcementId: string | null;
8566
+ createdAt: Date;
8567
+ modifiedAt: Date | null;
8568
+ content: string;
8569
+ authorId: string;
8570
+ parentCommentId: string | null;
8571
+ studentQuestionProgressId: string | null;
8572
+ })[];
8573
+ } & {
8574
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
8575
+ id: string;
8576
+ assignmentId: string | null;
8577
+ submissionId: string | null;
8578
+ announcementId: string | null;
8579
+ createdAt: Date;
8580
+ modifiedAt: Date | null;
8581
+ content: string;
8582
+ authorId: string;
8583
+ parentCommentId: string | null;
8584
+ studentQuestionProgressId: string | null;
8585
+ })[];
8586
+ };
8587
+ meta: object;
8588
+ }>;
8589
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
8590
+ input: {
8591
+ [x: string]: unknown;
8592
+ classId: string;
8593
+ assignmentId: string;
8594
+ content: string;
8595
+ parentCommentId?: string | undefined;
8596
+ };
8597
+ output: {
8598
+ comment: {
8599
+ author: {
8600
+ id: string;
8601
+ username: string;
8602
+ profile: {
8603
+ displayName: string | null;
8604
+ profilePicture: string | null;
8605
+ profilePictureThumbnail: string | null;
8606
+ } | null;
8607
+ };
8608
+ replies: ({
8609
+ author: {
8610
+ id: string;
8611
+ username: string;
8612
+ profile: {
8613
+ displayName: string | null;
8614
+ profilePicture: string | null;
8615
+ profilePictureThumbnail: string | null;
8616
+ } | null;
8617
+ };
8618
+ } & {
8619
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
8620
+ id: string;
8621
+ assignmentId: string | null;
8622
+ submissionId: string | null;
8623
+ announcementId: string | null;
8624
+ createdAt: Date;
8625
+ modifiedAt: Date | null;
8626
+ content: string;
8627
+ authorId: string;
8628
+ parentCommentId: string | null;
8629
+ studentQuestionProgressId: string | null;
8630
+ })[];
8631
+ } & {
8632
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
8633
+ id: string;
8634
+ assignmentId: string | null;
8635
+ submissionId: string | null;
8636
+ announcementId: string | null;
8637
+ createdAt: Date;
8638
+ modifiedAt: Date | null;
8639
+ content: string;
8640
+ authorId: string;
8641
+ parentCommentId: string | null;
8642
+ studentQuestionProgressId: string | null;
8643
+ };
8644
+ };
8645
+ meta: object;
8646
+ }>;
8647
+ getSubmissionComments: import("@trpc/server").TRPCQueryProcedure<{
8648
+ input: {
8649
+ [x: string]: unknown;
8650
+ classId: string;
8651
+ assignmentId: string;
8652
+ submissionId: string;
8653
+ };
8654
+ output: {
8655
+ comments: ({
8656
+ author: {
8657
+ id: string;
8658
+ username: string;
8659
+ profile: {
8660
+ displayName: string | null;
8661
+ profilePicture: string | null;
8662
+ profilePictureThumbnail: string | null;
8663
+ } | null;
8664
+ };
8665
+ replies: ({
8666
+ author: {
8667
+ id: string;
8668
+ username: string;
8669
+ profile: {
8670
+ displayName: string | null;
8671
+ profilePicture: string | null;
8672
+ profilePictureThumbnail: string | null;
8673
+ } | null;
8674
+ };
8675
+ } & {
8676
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
8677
+ id: string;
8678
+ assignmentId: string | null;
8679
+ submissionId: string | null;
8680
+ announcementId: string | null;
8681
+ createdAt: Date;
8682
+ modifiedAt: Date | null;
8683
+ content: string;
8684
+ authorId: string;
8685
+ parentCommentId: string | null;
8686
+ studentQuestionProgressId: string | null;
8687
+ })[];
8688
+ } & {
8689
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
8690
+ id: string;
8691
+ assignmentId: string | null;
8692
+ submissionId: string | null;
8693
+ announcementId: string | null;
8694
+ createdAt: Date;
8695
+ modifiedAt: Date | null;
8696
+ content: string;
8697
+ authorId: string;
8698
+ parentCommentId: string | null;
8699
+ studentQuestionProgressId: string | null;
8700
+ })[];
8701
+ };
8702
+ meta: object;
8703
+ }>;
8704
+ addSubmissionComment: import("@trpc/server").TRPCMutationProcedure<{
8705
+ input: {
8706
+ [x: string]: unknown;
8707
+ classId: string;
8708
+ assignmentId: string;
8709
+ submissionId: string;
8710
+ content: string;
8711
+ parentCommentId?: string | undefined;
8712
+ };
8713
+ output: {
8714
+ comment: {
8715
+ author: {
8716
+ id: string;
8717
+ username: string;
8718
+ profile: {
8719
+ displayName: string | null;
8720
+ profilePicture: string | null;
8721
+ profilePictureThumbnail: string | null;
8722
+ } | null;
8723
+ };
8724
+ replies: ({
8725
+ author: {
8726
+ id: string;
8727
+ username: string;
8728
+ profile: {
8729
+ displayName: string | null;
8730
+ profilePicture: string | null;
8731
+ profilePictureThumbnail: string | null;
8732
+ } | null;
8733
+ };
8734
+ } & {
8735
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
8736
+ id: string;
8737
+ assignmentId: string | null;
8738
+ submissionId: string | null;
8739
+ announcementId: string | null;
8740
+ createdAt: Date;
8741
+ modifiedAt: Date | null;
8742
+ content: string;
8743
+ authorId: string;
8744
+ parentCommentId: string | null;
8745
+ studentQuestionProgressId: string | null;
8746
+ })[];
8747
+ } & {
8748
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
8749
+ id: string;
8750
+ assignmentId: string | null;
8751
+ submissionId: string | null;
8752
+ announcementId: string | null;
8753
+ createdAt: Date;
8754
+ modifiedAt: Date | null;
8755
+ content: string;
8756
+ authorId: string;
8757
+ parentCommentId: string | null;
8758
+ studentQuestionProgressId: string | null;
8759
+ };
8760
+ };
8761
+ meta: object;
8762
+ }>;
8248
8763
  updateSubmissionAsTeacher: import("@trpc/server").TRPCMutationProcedure<{
8249
8764
  input: {
8250
8765
  [x: string]: unknown;
@@ -11675,6 +12190,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11675
12190
  output: {
11676
12191
  status: import(".prisma/client").$Enums.GenerationStatus | null;
11677
12192
  id: string;
12193
+ assignmentId: string | null;
12194
+ submissionId: string | null;
11678
12195
  announcementId: string | null;
11679
12196
  createdAt: Date;
11680
12197
  modifiedAt: Date | null;
@@ -11720,6 +12237,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11720
12237
  };
11721
12238
  output: {
11722
12239
  id: string;
12240
+ assignmentId: string | null;
12241
+ submissionId: string | null;
12242
+ announcementId: string | null;
11723
12243
  reactions: {
11724
12244
  type: import(".prisma/client").$Enums.ReactionType;
11725
12245
  user: {
@@ -11735,6 +12255,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11735
12255
  createdAt: Date;
11736
12256
  modifiedAt: Date | null;
11737
12257
  content: string;
12258
+ parentCommentId: string | null;
11738
12259
  author: {
11739
12260
  id: string;
11740
12261
  username: string;
@@ -11764,6 +12285,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11764
12285
  } & {
11765
12286
  status: import(".prisma/client").$Enums.GenerationStatus | null;
11766
12287
  id: string;
12288
+ assignmentId: string | null;
12289
+ submissionId: string | null;
11767
12290
  announcementId: string | null;
11768
12291
  createdAt: Date;
11769
12292
  modifiedAt: Date | null;
@@ -11782,6 +12305,28 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11782
12305
  output: {
11783
12306
  status: import(".prisma/client").$Enums.GenerationStatus | null;
11784
12307
  id: string;
12308
+ assignmentId: string | null;
12309
+ submissionId: string | null;
12310
+ announcementId: string | null;
12311
+ createdAt: Date;
12312
+ modifiedAt: Date | null;
12313
+ content: string;
12314
+ authorId: string;
12315
+ parentCommentId: string | null;
12316
+ studentQuestionProgressId: string | null;
12317
+ };
12318
+ meta: object;
12319
+ }>;
12320
+ update: import("@trpc/server").TRPCMutationProcedure<{
12321
+ input: {
12322
+ id: string;
12323
+ content: string;
12324
+ };
12325
+ output: {
12326
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
12327
+ id: string;
12328
+ assignmentId: string | null;
12329
+ submissionId: string | null;
11785
12330
  announcementId: string | null;
11786
12331
  createdAt: Date;
11787
12332
  modifiedAt: Date | null;
@@ -11792,6 +12337,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
11792
12337
  };
11793
12338
  meta: object;
11794
12339
  }>;
12340
+ delete: import("@trpc/server").TRPCMutationProcedure<{
12341
+ input: {
12342
+ id: string;
12343
+ };
12344
+ output: {
12345
+ success: boolean;
12346
+ };
12347
+ meta: object;
12348
+ }>;
11795
12349
  addReaction: import("@trpc/server").TRPCMutationProcedure<{
11796
12350
  input: {
11797
12351
  type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";