@studious-lms/server 1.4.4 → 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.
- package/dist/index.js +3 -17
- package/dist/index.js.map +1 -1
- package/dist/lib/config/cors.d.ts.map +1 -1
- package/dist/lib/config/cors.js +8 -3
- package/dist/lib/config/cors.js.map +1 -1
- package/dist/models/comment.d.ts +163 -0
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/comment.js +145 -3
- package/dist/models/comment.js.map +1 -1
- package/dist/models/conversation.d.ts +22 -0
- package/dist/models/conversation.d.ts.map +1 -1
- package/dist/models/conversation.js +13 -2
- package/dist/models/conversation.js.map +1 -1
- package/dist/models/labChat.d.ts +3 -0
- package/dist/models/labChat.d.ts.map +1 -1
- package/dist/models/message.d.ts +2 -0
- package/dist/models/message.d.ts.map +1 -1
- package/dist/models/newtonChat.d.ts +1 -0
- package/dist/models/newtonChat.d.ts.map +1 -1
- package/dist/models/worksheet.d.ts +2 -0
- package/dist/models/worksheet.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +4 -3
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/routers/_app.d.ts +665 -1
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/_app.js +4 -2
- package/dist/routers/_app.js.map +1 -1
- package/dist/routers/announcement.d.ts +8 -0
- package/dist/routers/announcement.d.ts.map +1 -1
- package/dist/routers/assignment.d.ts +230 -0
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +207 -2
- package/dist/routers/assignment.js.map +1 -1
- package/dist/routers/comment.d.ts +37 -0
- package/dist/routers/comment.d.ts.map +1 -1
- package/dist/routers/comment.js +14 -5
- package/dist/routers/comment.js.map +1 -1
- package/dist/routers/conversation.d.ts +14 -0
- package/dist/routers/conversation.d.ts.map +1 -1
- package/dist/routers/conversation.js +6 -3
- package/dist/routers/conversation.js.map +1 -1
- package/dist/routers/labChat.d.ts +2 -0
- package/dist/routers/labChat.d.ts.map +1 -1
- package/dist/routers/search.d.ts +41 -0
- package/dist/routers/search.d.ts.map +1 -0
- package/dist/routers/search.js +15 -0
- package/dist/routers/search.js.map +1 -0
- package/dist/routers/worksheet.d.ts +2 -0
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/services/comment.d.ts +28 -2
- package/dist/services/comment.d.ts.map +1 -1
- package/dist/services/comment.js +97 -19
- package/dist/services/comment.js.map +1 -1
- package/dist/services/conversation.d.ts +8 -0
- package/dist/services/conversation.d.ts.map +1 -1
- package/dist/services/conversation.js +24 -6
- package/dist/services/conversation.js.map +1 -1
- package/dist/services/labChat.d.ts +2 -0
- package/dist/services/labChat.d.ts.map +1 -1
- package/dist/services/message.d.ts.map +1 -1
- package/dist/services/message.js +9 -2
- package/dist/services/message.js.map +1 -1
- package/dist/services/search.d.ts +21 -0
- package/dist/services/search.d.ts.map +1 -0
- package/dist/services/search.js +352 -0
- package/dist/services/search.js.map +1 -0
- package/dist/services/worksheet.d.ts +2 -0
- package/dist/services/worksheet.d.ts.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260417083000_add_conversation_member_hidden_at/migration.sql +2 -0
- package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +60 -0
- package/prisma/schema.prisma +10 -0
- package/src/index.ts +1 -17
- package/src/lib/config/cors.ts +8 -1
- package/src/models/comment.ts +148 -1
- package/src/models/conversation.ts +12 -0
- package/src/pipelines/aiLabChat.ts +2 -1
- package/src/routers/_app.ts +2 -0
- package/src/routers/assignment.ts +224 -1
- package/src/routers/comment.ts +19 -2
- package/src/routers/conversation.ts +7 -0
- package/src/routers/search.ts +14 -0
- package/src/services/comment.ts +113 -18
- package/src/services/conversation.ts +27 -3
- package/src/services/message.ts +8 -0
- package/src/services/search.ts +397 -0
- package/tests/lib/cors.test.ts +13 -1
- package/tests/routers/assignment.test.ts +68 -2
- package/tests/routers/comment.test.ts +42 -1
- package/tests/routers/conversation.test.ts +114 -2
- package/tests/routers/search.test.ts +109 -0
- package/vercel.json +8 -0
package/dist/routers/_app.d.ts
CHANGED
|
@@ -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;
|
|
@@ -4514,6 +4752,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4514
4752
|
conversationId: string;
|
|
4515
4753
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
4516
4754
|
joinedAt: Date;
|
|
4755
|
+
hiddenAt: Date | null;
|
|
4517
4756
|
lastViewedAt: Date | null;
|
|
4518
4757
|
lastViewedMentionAt: Date | null;
|
|
4519
4758
|
})[];
|
|
@@ -4561,6 +4800,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4561
4800
|
conversationId: string;
|
|
4562
4801
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
4563
4802
|
joinedAt: Date;
|
|
4803
|
+
hiddenAt: Date | null;
|
|
4564
4804
|
lastViewedAt: Date | null;
|
|
4565
4805
|
lastViewedMentionAt: Date | null;
|
|
4566
4806
|
})[];
|
|
@@ -4594,6 +4834,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4594
4834
|
conversationId: string;
|
|
4595
4835
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
4596
4836
|
joinedAt: Date;
|
|
4837
|
+
hiddenAt: Date | null;
|
|
4597
4838
|
lastViewedAt: Date | null;
|
|
4598
4839
|
lastViewedMentionAt: Date | null;
|
|
4599
4840
|
})[];
|
|
@@ -4607,6 +4848,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4607
4848
|
};
|
|
4608
4849
|
meta: object;
|
|
4609
4850
|
}>;
|
|
4851
|
+
hide: import("@trpc/server").TRPCMutationProcedure<{
|
|
4852
|
+
input: {
|
|
4853
|
+
conversationId: string;
|
|
4854
|
+
};
|
|
4855
|
+
output: {
|
|
4856
|
+
success: boolean;
|
|
4857
|
+
};
|
|
4858
|
+
meta: object;
|
|
4859
|
+
}>;
|
|
4610
4860
|
addMember: import("@trpc/server").TRPCMutationProcedure<{
|
|
4611
4861
|
input: {
|
|
4612
4862
|
conversationId: string;
|
|
@@ -4628,6 +4878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4628
4878
|
conversationId: string;
|
|
4629
4879
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
4630
4880
|
joinedAt: Date;
|
|
4881
|
+
hiddenAt: Date | null;
|
|
4631
4882
|
lastViewedAt: Date | null;
|
|
4632
4883
|
lastViewedMentionAt: Date | null;
|
|
4633
4884
|
})[];
|
|
@@ -4662,6 +4913,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4662
4913
|
conversationId: string;
|
|
4663
4914
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
4664
4915
|
joinedAt: Date;
|
|
4916
|
+
hiddenAt: Date | null;
|
|
4665
4917
|
lastViewedAt: Date | null;
|
|
4666
4918
|
lastViewedMentionAt: Date | null;
|
|
4667
4919
|
})[];
|
|
@@ -4910,6 +5162,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4910
5162
|
conversationId: string;
|
|
4911
5163
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
4912
5164
|
joinedAt: Date;
|
|
5165
|
+
hiddenAt: Date | null;
|
|
4913
5166
|
lastViewedAt: Date | null;
|
|
4914
5167
|
lastViewedMentionAt: Date | null;
|
|
4915
5168
|
})[];
|
|
@@ -4968,6 +5221,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4968
5221
|
conversationId: string;
|
|
4969
5222
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
4970
5223
|
joinedAt: Date;
|
|
5224
|
+
hiddenAt: Date | null;
|
|
4971
5225
|
lastViewedAt: Date | null;
|
|
4972
5226
|
lastViewedMentionAt: Date | null;
|
|
4973
5227
|
})[];
|
|
@@ -5634,6 +5888,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5634
5888
|
output: {
|
|
5635
5889
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5636
5890
|
id: string;
|
|
5891
|
+
assignmentId: string | null;
|
|
5892
|
+
submissionId: string | null;
|
|
5637
5893
|
announcementId: string | null;
|
|
5638
5894
|
createdAt: Date;
|
|
5639
5895
|
modifiedAt: Date | null;
|
|
@@ -5679,6 +5935,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5679
5935
|
};
|
|
5680
5936
|
output: {
|
|
5681
5937
|
id: string;
|
|
5938
|
+
assignmentId: string | null;
|
|
5939
|
+
submissionId: string | null;
|
|
5940
|
+
announcementId: string | null;
|
|
5682
5941
|
reactions: {
|
|
5683
5942
|
type: import(".prisma/client").$Enums.ReactionType;
|
|
5684
5943
|
user: {
|
|
@@ -5694,6 +5953,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5694
5953
|
createdAt: Date;
|
|
5695
5954
|
modifiedAt: Date | null;
|
|
5696
5955
|
content: string;
|
|
5956
|
+
parentCommentId: string | null;
|
|
5697
5957
|
author: {
|
|
5698
5958
|
id: string;
|
|
5699
5959
|
username: string;
|
|
@@ -5723,6 +5983,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5723
5983
|
} & {
|
|
5724
5984
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5725
5985
|
id: string;
|
|
5986
|
+
assignmentId: string | null;
|
|
5987
|
+
submissionId: string | null;
|
|
5726
5988
|
announcementId: string | null;
|
|
5727
5989
|
createdAt: Date;
|
|
5728
5990
|
modifiedAt: Date | null;
|
|
@@ -5741,6 +6003,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5741
6003
|
output: {
|
|
5742
6004
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5743
6005
|
id: string;
|
|
6006
|
+
assignmentId: string | null;
|
|
6007
|
+
submissionId: string | null;
|
|
5744
6008
|
announcementId: string | null;
|
|
5745
6009
|
createdAt: Date;
|
|
5746
6010
|
modifiedAt: Date | null;
|
|
@@ -5751,7 +6015,36 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5751
6015
|
};
|
|
5752
6016
|
meta: object;
|
|
5753
6017
|
}>;
|
|
5754
|
-
|
|
6018
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6019
|
+
input: {
|
|
6020
|
+
id: string;
|
|
6021
|
+
content: string;
|
|
6022
|
+
};
|
|
6023
|
+
output: {
|
|
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<{
|
|
5755
6048
|
input: {
|
|
5756
6049
|
type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
|
|
5757
6050
|
id: string;
|
|
@@ -5965,6 +6258,45 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5965
6258
|
meta: object;
|
|
5966
6259
|
}>;
|
|
5967
6260
|
}>>;
|
|
6261
|
+
search: import("@trpc/server").TRPCBuiltRouter<{
|
|
6262
|
+
ctx: import("../trpc.js").Context;
|
|
6263
|
+
meta: object;
|
|
6264
|
+
errorShape: {
|
|
6265
|
+
data: {
|
|
6266
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
6267
|
+
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
6268
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
6269
|
+
httpStatus: number;
|
|
6270
|
+
path?: string;
|
|
6271
|
+
stack?: string;
|
|
6272
|
+
};
|
|
6273
|
+
message: string;
|
|
6274
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
6275
|
+
};
|
|
6276
|
+
transformer: false;
|
|
6277
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6278
|
+
global: import("@trpc/server").TRPCQueryProcedure<{
|
|
6279
|
+
input: {
|
|
6280
|
+
query?: string | undefined;
|
|
6281
|
+
limit?: number | undefined;
|
|
6282
|
+
};
|
|
6283
|
+
output: {
|
|
6284
|
+
query: string;
|
|
6285
|
+
results: {
|
|
6286
|
+
id: string;
|
|
6287
|
+
type: "file" | "class" | "section" | "syllabus" | "assignment" | "event" | "announcement" | "worksheet";
|
|
6288
|
+
title: string;
|
|
6289
|
+
subtitle: string;
|
|
6290
|
+
classId: string;
|
|
6291
|
+
className: string;
|
|
6292
|
+
href: string;
|
|
6293
|
+
matchedText?: string | null;
|
|
6294
|
+
date?: Date | null;
|
|
6295
|
+
}[];
|
|
6296
|
+
};
|
|
6297
|
+
meta: object;
|
|
6298
|
+
}>;
|
|
6299
|
+
}>>;
|
|
5968
6300
|
}>>;
|
|
5969
6301
|
export type AppRouter = typeof appRouter;
|
|
5970
6302
|
export type RouterInputs = inferRouterInputs<AppRouter>;
|
|
@@ -7134,6 +7466,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7134
7466
|
} & {
|
|
7135
7467
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
7136
7468
|
id: string;
|
|
7469
|
+
assignmentId: string | null;
|
|
7470
|
+
submissionId: string | null;
|
|
7137
7471
|
announcementId: string | null;
|
|
7138
7472
|
createdAt: Date;
|
|
7139
7473
|
modifiedAt: Date | null;
|
|
@@ -7164,6 +7498,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7164
7498
|
} & {
|
|
7165
7499
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
7166
7500
|
id: string;
|
|
7501
|
+
assignmentId: string | null;
|
|
7502
|
+
submissionId: string | null;
|
|
7167
7503
|
announcementId: string | null;
|
|
7168
7504
|
createdAt: Date;
|
|
7169
7505
|
modifiedAt: Date | null;
|
|
@@ -7214,6 +7550,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7214
7550
|
} & {
|
|
7215
7551
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
7216
7552
|
id: string;
|
|
7553
|
+
assignmentId: string | null;
|
|
7554
|
+
submissionId: string | null;
|
|
7217
7555
|
announcementId: string | null;
|
|
7218
7556
|
createdAt: Date;
|
|
7219
7557
|
modifiedAt: Date | null;
|
|
@@ -7225,6 +7563,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7225
7563
|
} & {
|
|
7226
7564
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
7227
7565
|
id: string;
|
|
7566
|
+
assignmentId: string | null;
|
|
7567
|
+
submissionId: string | null;
|
|
7228
7568
|
announcementId: string | null;
|
|
7229
7569
|
createdAt: Date;
|
|
7230
7570
|
modifiedAt: Date | null;
|
|
@@ -8190,6 +8530,236 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8190
8530
|
}[];
|
|
8191
8531
|
meta: object;
|
|
8192
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
|
+
}>;
|
|
8193
8763
|
updateSubmissionAsTeacher: import("@trpc/server").TRPCMutationProcedure<{
|
|
8194
8764
|
input: {
|
|
8195
8765
|
[x: string]: unknown;
|
|
@@ -10484,6 +11054,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10484
11054
|
conversationId: string;
|
|
10485
11055
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
10486
11056
|
joinedAt: Date;
|
|
11057
|
+
hiddenAt: Date | null;
|
|
10487
11058
|
lastViewedAt: Date | null;
|
|
10488
11059
|
lastViewedMentionAt: Date | null;
|
|
10489
11060
|
})[];
|
|
@@ -10531,6 +11102,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10531
11102
|
conversationId: string;
|
|
10532
11103
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
10533
11104
|
joinedAt: Date;
|
|
11105
|
+
hiddenAt: Date | null;
|
|
10534
11106
|
lastViewedAt: Date | null;
|
|
10535
11107
|
lastViewedMentionAt: Date | null;
|
|
10536
11108
|
})[];
|
|
@@ -10564,6 +11136,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10564
11136
|
conversationId: string;
|
|
10565
11137
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
10566
11138
|
joinedAt: Date;
|
|
11139
|
+
hiddenAt: Date | null;
|
|
10567
11140
|
lastViewedAt: Date | null;
|
|
10568
11141
|
lastViewedMentionAt: Date | null;
|
|
10569
11142
|
})[];
|
|
@@ -10577,6 +11150,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10577
11150
|
};
|
|
10578
11151
|
meta: object;
|
|
10579
11152
|
}>;
|
|
11153
|
+
hide: import("@trpc/server").TRPCMutationProcedure<{
|
|
11154
|
+
input: {
|
|
11155
|
+
conversationId: string;
|
|
11156
|
+
};
|
|
11157
|
+
output: {
|
|
11158
|
+
success: boolean;
|
|
11159
|
+
};
|
|
11160
|
+
meta: object;
|
|
11161
|
+
}>;
|
|
10580
11162
|
addMember: import("@trpc/server").TRPCMutationProcedure<{
|
|
10581
11163
|
input: {
|
|
10582
11164
|
conversationId: string;
|
|
@@ -10598,6 +11180,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10598
11180
|
conversationId: string;
|
|
10599
11181
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
10600
11182
|
joinedAt: Date;
|
|
11183
|
+
hiddenAt: Date | null;
|
|
10601
11184
|
lastViewedAt: Date | null;
|
|
10602
11185
|
lastViewedMentionAt: Date | null;
|
|
10603
11186
|
})[];
|
|
@@ -10632,6 +11215,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10632
11215
|
conversationId: string;
|
|
10633
11216
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
10634
11217
|
joinedAt: Date;
|
|
11218
|
+
hiddenAt: Date | null;
|
|
10635
11219
|
lastViewedAt: Date | null;
|
|
10636
11220
|
lastViewedMentionAt: Date | null;
|
|
10637
11221
|
})[];
|
|
@@ -10880,6 +11464,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10880
11464
|
conversationId: string;
|
|
10881
11465
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
10882
11466
|
joinedAt: Date;
|
|
11467
|
+
hiddenAt: Date | null;
|
|
10883
11468
|
lastViewedAt: Date | null;
|
|
10884
11469
|
lastViewedMentionAt: Date | null;
|
|
10885
11470
|
})[];
|
|
@@ -10938,6 +11523,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10938
11523
|
conversationId: string;
|
|
10939
11524
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
10940
11525
|
joinedAt: Date;
|
|
11526
|
+
hiddenAt: Date | null;
|
|
10941
11527
|
lastViewedAt: Date | null;
|
|
10942
11528
|
lastViewedMentionAt: Date | null;
|
|
10943
11529
|
})[];
|
|
@@ -11604,6 +12190,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11604
12190
|
output: {
|
|
11605
12191
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
11606
12192
|
id: string;
|
|
12193
|
+
assignmentId: string | null;
|
|
12194
|
+
submissionId: string | null;
|
|
11607
12195
|
announcementId: string | null;
|
|
11608
12196
|
createdAt: Date;
|
|
11609
12197
|
modifiedAt: Date | null;
|
|
@@ -11649,6 +12237,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11649
12237
|
};
|
|
11650
12238
|
output: {
|
|
11651
12239
|
id: string;
|
|
12240
|
+
assignmentId: string | null;
|
|
12241
|
+
submissionId: string | null;
|
|
12242
|
+
announcementId: string | null;
|
|
11652
12243
|
reactions: {
|
|
11653
12244
|
type: import(".prisma/client").$Enums.ReactionType;
|
|
11654
12245
|
user: {
|
|
@@ -11664,6 +12255,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11664
12255
|
createdAt: Date;
|
|
11665
12256
|
modifiedAt: Date | null;
|
|
11666
12257
|
content: string;
|
|
12258
|
+
parentCommentId: string | null;
|
|
11667
12259
|
author: {
|
|
11668
12260
|
id: string;
|
|
11669
12261
|
username: string;
|
|
@@ -11693,6 +12285,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11693
12285
|
} & {
|
|
11694
12286
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
11695
12287
|
id: string;
|
|
12288
|
+
assignmentId: string | null;
|
|
12289
|
+
submissionId: string | null;
|
|
11696
12290
|
announcementId: string | null;
|
|
11697
12291
|
createdAt: Date;
|
|
11698
12292
|
modifiedAt: Date | null;
|
|
@@ -11711,6 +12305,28 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11711
12305
|
output: {
|
|
11712
12306
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
11713
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;
|
|
11714
12330
|
announcementId: string | null;
|
|
11715
12331
|
createdAt: Date;
|
|
11716
12332
|
modifiedAt: Date | null;
|
|
@@ -11721,6 +12337,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11721
12337
|
};
|
|
11722
12338
|
meta: object;
|
|
11723
12339
|
}>;
|
|
12340
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
12341
|
+
input: {
|
|
12342
|
+
id: string;
|
|
12343
|
+
};
|
|
12344
|
+
output: {
|
|
12345
|
+
success: boolean;
|
|
12346
|
+
};
|
|
12347
|
+
meta: object;
|
|
12348
|
+
}>;
|
|
11724
12349
|
addReaction: import("@trpc/server").TRPCMutationProcedure<{
|
|
11725
12350
|
input: {
|
|
11726
12351
|
type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
|
|
@@ -11935,5 +12560,44 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11935
12560
|
meta: object;
|
|
11936
12561
|
}>;
|
|
11937
12562
|
}>>;
|
|
12563
|
+
search: import("@trpc/server").TRPCBuiltRouter<{
|
|
12564
|
+
ctx: import("../trpc.js").Context;
|
|
12565
|
+
meta: object;
|
|
12566
|
+
errorShape: {
|
|
12567
|
+
data: {
|
|
12568
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
12569
|
+
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
12570
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
12571
|
+
httpStatus: number;
|
|
12572
|
+
path?: string;
|
|
12573
|
+
stack?: string;
|
|
12574
|
+
};
|
|
12575
|
+
message: string;
|
|
12576
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
12577
|
+
};
|
|
12578
|
+
transformer: false;
|
|
12579
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
12580
|
+
global: import("@trpc/server").TRPCQueryProcedure<{
|
|
12581
|
+
input: {
|
|
12582
|
+
query?: string | undefined;
|
|
12583
|
+
limit?: number | undefined;
|
|
12584
|
+
};
|
|
12585
|
+
output: {
|
|
12586
|
+
query: string;
|
|
12587
|
+
results: {
|
|
12588
|
+
id: string;
|
|
12589
|
+
type: "file" | "class" | "section" | "syllabus" | "assignment" | "event" | "announcement" | "worksheet";
|
|
12590
|
+
title: string;
|
|
12591
|
+
subtitle: string;
|
|
12592
|
+
classId: string;
|
|
12593
|
+
className: string;
|
|
12594
|
+
href: string;
|
|
12595
|
+
matchedText?: string | null;
|
|
12596
|
+
date?: Date | null;
|
|
12597
|
+
}[];
|
|
12598
|
+
};
|
|
12599
|
+
meta: object;
|
|
12600
|
+
}>;
|
|
12601
|
+
}>>;
|
|
11938
12602
|
}>>;
|
|
11939
12603
|
//# sourceMappingURL=_app.d.ts.map
|