@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_app.d.ts","sourceRoot":"/","sources":["routers/_app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAkB1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC"}
|
package/dist/routers/_app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b25bb46a-1bd7-5474-b89d-a96b7faa0f4b")}catch(e){}}();
|
|
3
3
|
import { createTRPCRouter } from "../trpc.js";
|
|
4
4
|
import { classRouter } from "./class.js";
|
|
5
5
|
import { announcementRouter } from "./announcement.js";
|
|
@@ -22,6 +22,7 @@ import { marketingRouter } from "./marketing.js";
|
|
|
22
22
|
import { worksheetRouter } from "./worksheet.js";
|
|
23
23
|
import { commentRouter } from "./comment.js";
|
|
24
24
|
import { studentProgressRouter } from "./studentProgress.js";
|
|
25
|
+
import { searchRouter } from "./search.js";
|
|
25
26
|
export const appRouter = createTRPCRouter({
|
|
26
27
|
class: classRouter,
|
|
27
28
|
announcement: announcementRouter,
|
|
@@ -43,8 +44,9 @@ export const appRouter = createTRPCRouter({
|
|
|
43
44
|
worksheet: worksheetRouter,
|
|
44
45
|
comment: commentRouter,
|
|
45
46
|
studentProgress: studentProgressRouter,
|
|
47
|
+
search: searchRouter,
|
|
46
48
|
});
|
|
47
49
|
// Export caller
|
|
48
50
|
export const createCaller = createCallerFactory(appRouter);
|
|
49
51
|
//# sourceMappingURL=_app.js.map
|
|
50
|
-
//# debugId=
|
|
52
|
+
//# debugId=b25bb46a-1bd7-5474-b89d-a96b7faa0f4b
|
package/dist/routers/_app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_app.js","sources":["routers/_app.ts"],"sourceRoot":"/","sourcesContent":["import { createTRPCRouter } from \"../trpc.js\";\nimport { classRouter } from \"./class.js\";\nimport { announcementRouter } from \"./announcement.js\";\nimport { assignmentRouter } from \"./assignment.js\";\nimport { userRouter } from \"./user.js\";\nimport { createCallerFactory } from \"../trpc.js\";\nimport type { inferRouterInputs, inferRouterOutputs } from \"@trpc/server\";\nimport { sectionRouter } from \"./section.js\";\nimport { attendanceRouter } from \"./attendance.js\";\nimport { eventRouter } from \"./event.js\";\nimport { authRouter } from \"./auth.js\";\nimport { agendaRouter } from \"./agenda.js\";\nimport { fileRouter } from \"./file.js\";\nimport { folderRouter } from \"./folder.js\";\nimport { notificationRouter } from \"./notifications.js\";\nimport { conversationRouter } from \"./conversation.js\";\nimport { messageRouter } from \"./message.js\";\nimport { labChatRouter } from \"./labChat.js\";\nimport { newtonChatRouter } from \"./newtonChat.js\";\nimport { marketingRouter } from \"./marketing.js\";\nimport { worksheetRouter } from \"./worksheet.js\";\nimport { commentRouter } from \"./comment.js\";\nimport { studentProgressRouter } from \"./studentProgress.js\";\n\nexport const appRouter = createTRPCRouter({\n class: classRouter,\n announcement: announcementRouter,\n assignment: assignmentRouter,\n user: userRouter,\n section: sectionRouter,\n attendance: attendanceRouter,\n event: eventRouter,\n auth: authRouter,\n agenda: agendaRouter,\n file: fileRouter,\n folder: folderRouter,\n notification: notificationRouter,\n conversation: conversationRouter,\n message: messageRouter,\n labChat: labChatRouter,\n newtonChat: newtonChatRouter,\n marketing: marketingRouter,\n worksheet: worksheetRouter,\n comment: commentRouter,\n studentProgress: studentProgressRouter,\n});\n\n// Export type router type definition\nexport type AppRouter = typeof appRouter;\nexport type RouterInputs = inferRouterInputs<AppRouter>;\nexport type RouterOutputs = inferRouterOutputs<AppRouter>;\n\n// Export caller\nexport const createCaller = createCallerFactory(appRouter);\n"],"names":[],"mappings":";;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"_app.js","sources":["routers/_app.ts"],"sourceRoot":"/","sourcesContent":["import { createTRPCRouter } from \"../trpc.js\";\nimport { classRouter } from \"./class.js\";\nimport { announcementRouter } from \"./announcement.js\";\nimport { assignmentRouter } from \"./assignment.js\";\nimport { userRouter } from \"./user.js\";\nimport { createCallerFactory } from \"../trpc.js\";\nimport type { inferRouterInputs, inferRouterOutputs } from \"@trpc/server\";\nimport { sectionRouter } from \"./section.js\";\nimport { attendanceRouter } from \"./attendance.js\";\nimport { eventRouter } from \"./event.js\";\nimport { authRouter } from \"./auth.js\";\nimport { agendaRouter } from \"./agenda.js\";\nimport { fileRouter } from \"./file.js\";\nimport { folderRouter } from \"./folder.js\";\nimport { notificationRouter } from \"./notifications.js\";\nimport { conversationRouter } from \"./conversation.js\";\nimport { messageRouter } from \"./message.js\";\nimport { labChatRouter } from \"./labChat.js\";\nimport { newtonChatRouter } from \"./newtonChat.js\";\nimport { marketingRouter } from \"./marketing.js\";\nimport { worksheetRouter } from \"./worksheet.js\";\nimport { commentRouter } from \"./comment.js\";\nimport { studentProgressRouter } from \"./studentProgress.js\";\nimport { searchRouter } from \"./search.js\";\n\nexport const appRouter = createTRPCRouter({\n class: classRouter,\n announcement: announcementRouter,\n assignment: assignmentRouter,\n user: userRouter,\n section: sectionRouter,\n attendance: attendanceRouter,\n event: eventRouter,\n auth: authRouter,\n agenda: agendaRouter,\n file: fileRouter,\n folder: folderRouter,\n notification: notificationRouter,\n conversation: conversationRouter,\n message: messageRouter,\n labChat: labChatRouter,\n newtonChat: newtonChatRouter,\n marketing: marketingRouter,\n worksheet: worksheetRouter,\n comment: commentRouter,\n studentProgress: studentProgressRouter,\n search: searchRouter,\n});\n\n// Export type router type definition\nexport type AppRouter = typeof appRouter;\nexport type RouterInputs = inferRouterInputs<AppRouter>;\nexport type RouterOutputs = inferRouterOutputs<AppRouter>;\n\n// Export caller\nexport const createCaller = createCallerFactory(appRouter);\n"],"names":[],"mappings":";;AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CA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CAAC,CAAC","debug_id":"b25bb46a-1bd7-5474-b89d-a96b7faa0f4b"}
|
|
@@ -236,6 +236,8 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
|
|
|
236
236
|
} & {
|
|
237
237
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
238
238
|
id: string;
|
|
239
|
+
assignmentId: string | null;
|
|
240
|
+
submissionId: string | null;
|
|
239
241
|
announcementId: string | null;
|
|
240
242
|
createdAt: Date;
|
|
241
243
|
modifiedAt: Date | null;
|
|
@@ -266,6 +268,8 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
|
|
|
266
268
|
} & {
|
|
267
269
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
268
270
|
id: string;
|
|
271
|
+
assignmentId: string | null;
|
|
272
|
+
submissionId: string | null;
|
|
269
273
|
announcementId: string | null;
|
|
270
274
|
createdAt: Date;
|
|
271
275
|
modifiedAt: Date | null;
|
|
@@ -316,6 +320,8 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
|
|
|
316
320
|
} & {
|
|
317
321
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
318
322
|
id: string;
|
|
323
|
+
assignmentId: string | null;
|
|
324
|
+
submissionId: string | null;
|
|
319
325
|
announcementId: string | null;
|
|
320
326
|
createdAt: Date;
|
|
321
327
|
modifiedAt: Date | null;
|
|
@@ -327,6 +333,8 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
|
|
|
327
333
|
} & {
|
|
328
334
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
329
335
|
id: string;
|
|
336
|
+
assignmentId: string | null;
|
|
337
|
+
submissionId: string | null;
|
|
330
338
|
announcementId: string | null;
|
|
331
339
|
createdAt: Date;
|
|
332
340
|
modifiedAt: Date | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"announcement.d.ts","sourceRoot":"/","sources":["routers/announcement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,OAAO,EAA8C,KAAK,gBAAgB,EAAuB,MAAM,sBAAsB,CAAC;AAwB9H,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"announcement.d.ts","sourceRoot":"/","sources":["routers/announcement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,OAAO,EAA8C,KAAK,gBAAgB,EAAuB,MAAM,sBAAsB,CAAC;AAwB9H,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6oB7B,CAAC"}
|
|
@@ -892,6 +892,236 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
892
892
|
}[];
|
|
893
893
|
meta: object;
|
|
894
894
|
}>;
|
|
895
|
+
getComments: import("@trpc/server").TRPCQueryProcedure<{
|
|
896
|
+
input: {
|
|
897
|
+
[x: string]: unknown;
|
|
898
|
+
classId: string;
|
|
899
|
+
assignmentId: string;
|
|
900
|
+
};
|
|
901
|
+
output: {
|
|
902
|
+
comments: ({
|
|
903
|
+
author: {
|
|
904
|
+
id: string;
|
|
905
|
+
username: string;
|
|
906
|
+
profile: {
|
|
907
|
+
displayName: string | null;
|
|
908
|
+
profilePicture: string | null;
|
|
909
|
+
profilePictureThumbnail: string | null;
|
|
910
|
+
} | null;
|
|
911
|
+
};
|
|
912
|
+
replies: ({
|
|
913
|
+
author: {
|
|
914
|
+
id: string;
|
|
915
|
+
username: string;
|
|
916
|
+
profile: {
|
|
917
|
+
displayName: string | null;
|
|
918
|
+
profilePicture: string | null;
|
|
919
|
+
profilePictureThumbnail: string | null;
|
|
920
|
+
} | null;
|
|
921
|
+
};
|
|
922
|
+
} & {
|
|
923
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
924
|
+
id: string;
|
|
925
|
+
assignmentId: string | null;
|
|
926
|
+
submissionId: string | null;
|
|
927
|
+
announcementId: string | null;
|
|
928
|
+
createdAt: Date;
|
|
929
|
+
modifiedAt: Date | null;
|
|
930
|
+
content: string;
|
|
931
|
+
authorId: string;
|
|
932
|
+
parentCommentId: string | null;
|
|
933
|
+
studentQuestionProgressId: string | null;
|
|
934
|
+
})[];
|
|
935
|
+
} & {
|
|
936
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
937
|
+
id: string;
|
|
938
|
+
assignmentId: string | null;
|
|
939
|
+
submissionId: string | null;
|
|
940
|
+
announcementId: string | null;
|
|
941
|
+
createdAt: Date;
|
|
942
|
+
modifiedAt: Date | null;
|
|
943
|
+
content: string;
|
|
944
|
+
authorId: string;
|
|
945
|
+
parentCommentId: string | null;
|
|
946
|
+
studentQuestionProgressId: string | null;
|
|
947
|
+
})[];
|
|
948
|
+
};
|
|
949
|
+
meta: object;
|
|
950
|
+
}>;
|
|
951
|
+
addComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
952
|
+
input: {
|
|
953
|
+
[x: string]: unknown;
|
|
954
|
+
classId: string;
|
|
955
|
+
assignmentId: string;
|
|
956
|
+
content: string;
|
|
957
|
+
parentCommentId?: string | undefined;
|
|
958
|
+
};
|
|
959
|
+
output: {
|
|
960
|
+
comment: {
|
|
961
|
+
author: {
|
|
962
|
+
id: string;
|
|
963
|
+
username: string;
|
|
964
|
+
profile: {
|
|
965
|
+
displayName: string | null;
|
|
966
|
+
profilePicture: string | null;
|
|
967
|
+
profilePictureThumbnail: string | null;
|
|
968
|
+
} | null;
|
|
969
|
+
};
|
|
970
|
+
replies: ({
|
|
971
|
+
author: {
|
|
972
|
+
id: string;
|
|
973
|
+
username: string;
|
|
974
|
+
profile: {
|
|
975
|
+
displayName: string | null;
|
|
976
|
+
profilePicture: string | null;
|
|
977
|
+
profilePictureThumbnail: string | null;
|
|
978
|
+
} | null;
|
|
979
|
+
};
|
|
980
|
+
} & {
|
|
981
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
982
|
+
id: string;
|
|
983
|
+
assignmentId: string | null;
|
|
984
|
+
submissionId: string | null;
|
|
985
|
+
announcementId: string | null;
|
|
986
|
+
createdAt: Date;
|
|
987
|
+
modifiedAt: Date | null;
|
|
988
|
+
content: string;
|
|
989
|
+
authorId: string;
|
|
990
|
+
parentCommentId: string | null;
|
|
991
|
+
studentQuestionProgressId: string | null;
|
|
992
|
+
})[];
|
|
993
|
+
} & {
|
|
994
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
995
|
+
id: string;
|
|
996
|
+
assignmentId: string | null;
|
|
997
|
+
submissionId: string | null;
|
|
998
|
+
announcementId: string | null;
|
|
999
|
+
createdAt: Date;
|
|
1000
|
+
modifiedAt: Date | null;
|
|
1001
|
+
content: string;
|
|
1002
|
+
authorId: string;
|
|
1003
|
+
parentCommentId: string | null;
|
|
1004
|
+
studentQuestionProgressId: string | null;
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
meta: object;
|
|
1008
|
+
}>;
|
|
1009
|
+
getSubmissionComments: import("@trpc/server").TRPCQueryProcedure<{
|
|
1010
|
+
input: {
|
|
1011
|
+
[x: string]: unknown;
|
|
1012
|
+
classId: string;
|
|
1013
|
+
assignmentId: string;
|
|
1014
|
+
submissionId: string;
|
|
1015
|
+
};
|
|
1016
|
+
output: {
|
|
1017
|
+
comments: ({
|
|
1018
|
+
author: {
|
|
1019
|
+
id: string;
|
|
1020
|
+
username: string;
|
|
1021
|
+
profile: {
|
|
1022
|
+
displayName: string | null;
|
|
1023
|
+
profilePicture: string | null;
|
|
1024
|
+
profilePictureThumbnail: string | null;
|
|
1025
|
+
} | null;
|
|
1026
|
+
};
|
|
1027
|
+
replies: ({
|
|
1028
|
+
author: {
|
|
1029
|
+
id: string;
|
|
1030
|
+
username: string;
|
|
1031
|
+
profile: {
|
|
1032
|
+
displayName: string | null;
|
|
1033
|
+
profilePicture: string | null;
|
|
1034
|
+
profilePictureThumbnail: string | null;
|
|
1035
|
+
} | null;
|
|
1036
|
+
};
|
|
1037
|
+
} & {
|
|
1038
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1039
|
+
id: string;
|
|
1040
|
+
assignmentId: string | null;
|
|
1041
|
+
submissionId: string | null;
|
|
1042
|
+
announcementId: string | null;
|
|
1043
|
+
createdAt: Date;
|
|
1044
|
+
modifiedAt: Date | null;
|
|
1045
|
+
content: string;
|
|
1046
|
+
authorId: string;
|
|
1047
|
+
parentCommentId: string | null;
|
|
1048
|
+
studentQuestionProgressId: string | null;
|
|
1049
|
+
})[];
|
|
1050
|
+
} & {
|
|
1051
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1052
|
+
id: string;
|
|
1053
|
+
assignmentId: string | null;
|
|
1054
|
+
submissionId: string | null;
|
|
1055
|
+
announcementId: string | null;
|
|
1056
|
+
createdAt: Date;
|
|
1057
|
+
modifiedAt: Date | null;
|
|
1058
|
+
content: string;
|
|
1059
|
+
authorId: string;
|
|
1060
|
+
parentCommentId: string | null;
|
|
1061
|
+
studentQuestionProgressId: string | null;
|
|
1062
|
+
})[];
|
|
1063
|
+
};
|
|
1064
|
+
meta: object;
|
|
1065
|
+
}>;
|
|
1066
|
+
addSubmissionComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
1067
|
+
input: {
|
|
1068
|
+
[x: string]: unknown;
|
|
1069
|
+
classId: string;
|
|
1070
|
+
assignmentId: string;
|
|
1071
|
+
submissionId: string;
|
|
1072
|
+
content: string;
|
|
1073
|
+
parentCommentId?: string | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
output: {
|
|
1076
|
+
comment: {
|
|
1077
|
+
author: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
username: string;
|
|
1080
|
+
profile: {
|
|
1081
|
+
displayName: string | null;
|
|
1082
|
+
profilePicture: string | null;
|
|
1083
|
+
profilePictureThumbnail: string | null;
|
|
1084
|
+
} | null;
|
|
1085
|
+
};
|
|
1086
|
+
replies: ({
|
|
1087
|
+
author: {
|
|
1088
|
+
id: string;
|
|
1089
|
+
username: string;
|
|
1090
|
+
profile: {
|
|
1091
|
+
displayName: string | null;
|
|
1092
|
+
profilePicture: string | null;
|
|
1093
|
+
profilePictureThumbnail: string | null;
|
|
1094
|
+
} | null;
|
|
1095
|
+
};
|
|
1096
|
+
} & {
|
|
1097
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1098
|
+
id: string;
|
|
1099
|
+
assignmentId: string | null;
|
|
1100
|
+
submissionId: string | null;
|
|
1101
|
+
announcementId: string | null;
|
|
1102
|
+
createdAt: Date;
|
|
1103
|
+
modifiedAt: Date | null;
|
|
1104
|
+
content: string;
|
|
1105
|
+
authorId: string;
|
|
1106
|
+
parentCommentId: string | null;
|
|
1107
|
+
studentQuestionProgressId: string | null;
|
|
1108
|
+
})[];
|
|
1109
|
+
} & {
|
|
1110
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1111
|
+
id: string;
|
|
1112
|
+
assignmentId: string | null;
|
|
1113
|
+
submissionId: string | null;
|
|
1114
|
+
announcementId: string | null;
|
|
1115
|
+
createdAt: Date;
|
|
1116
|
+
modifiedAt: Date | null;
|
|
1117
|
+
content: string;
|
|
1118
|
+
authorId: string;
|
|
1119
|
+
parentCommentId: string | null;
|
|
1120
|
+
studentQuestionProgressId: string | null;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
meta: object;
|
|
1124
|
+
}>;
|
|
895
1125
|
updateSubmissionAsTeacher: import("@trpc/server").TRPCMutationProcedure<{
|
|
896
1126
|
input: {
|
|
897
1127
|
[x: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"/","sources":["routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"assignment.d.ts","sourceRoot":"/","sources":["routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;AAsOpJ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2oB3B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1e544bfd-5929-552d-a49c-f0ca8b5232fe")}catch(e){}}();
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { createTRPCRouter, protectedProcedure, protectedClassMemberProcedure, protectedTeacherProcedure } from "../trpc.js";
|
|
5
5
|
import { TRPCError } from "@trpc/server";
|
|
@@ -133,6 +133,61 @@ const updateUploadProgressSchema = z.object({
|
|
|
133
133
|
fileId: z.string(),
|
|
134
134
|
progress: z.number().min(0).max(100),
|
|
135
135
|
});
|
|
136
|
+
const assignmentCommentSchema = z.object({
|
|
137
|
+
assignmentId: z.string(),
|
|
138
|
+
classId: z.string(),
|
|
139
|
+
content: z.string().min(1, "Comment cannot be empty"),
|
|
140
|
+
parentCommentId: z.string().optional(),
|
|
141
|
+
});
|
|
142
|
+
const assignmentCommentsSchema = z.object({
|
|
143
|
+
assignmentId: z.string(),
|
|
144
|
+
classId: z.string(),
|
|
145
|
+
});
|
|
146
|
+
const submissionCommentSchema = z.object({
|
|
147
|
+
assignmentId: z.string(),
|
|
148
|
+
classId: z.string(),
|
|
149
|
+
submissionId: z.string(),
|
|
150
|
+
content: z.string().min(1, "Comment cannot be empty"),
|
|
151
|
+
parentCommentId: z.string().optional(),
|
|
152
|
+
});
|
|
153
|
+
const submissionCommentsSchema = z.object({
|
|
154
|
+
assignmentId: z.string(),
|
|
155
|
+
classId: z.string(),
|
|
156
|
+
submissionId: z.string(),
|
|
157
|
+
});
|
|
158
|
+
const commentInclude = {
|
|
159
|
+
author: {
|
|
160
|
+
select: {
|
|
161
|
+
id: true,
|
|
162
|
+
username: true,
|
|
163
|
+
profile: {
|
|
164
|
+
select: {
|
|
165
|
+
displayName: true,
|
|
166
|
+
profilePicture: true,
|
|
167
|
+
profilePictureThumbnail: true,
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
replies: {
|
|
173
|
+
include: {
|
|
174
|
+
author: {
|
|
175
|
+
select: {
|
|
176
|
+
id: true,
|
|
177
|
+
username: true,
|
|
178
|
+
profile: {
|
|
179
|
+
select: {
|
|
180
|
+
displayName: true,
|
|
181
|
+
profilePicture: true,
|
|
182
|
+
profilePictureThumbnail: true,
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
orderBy: { createdAt: "asc" },
|
|
189
|
+
},
|
|
190
|
+
};
|
|
136
191
|
export const assignmentRouter = createTRPCRouter({
|
|
137
192
|
reorder: protectedTeacherProcedure
|
|
138
193
|
.input(z.object({
|
|
@@ -194,6 +249,156 @@ export const assignmentRouter = createTRPCRouter({
|
|
|
194
249
|
getSubmissions: protectedTeacherProcedure
|
|
195
250
|
.input(z.object({ assignmentId: z.string(), classId: z.string() }))
|
|
196
251
|
.query(({ ctx, input }) => getSubmissions(input.assignmentId, ctx.user.id)),
|
|
252
|
+
getComments: protectedClassMemberProcedure
|
|
253
|
+
.input(assignmentCommentsSchema)
|
|
254
|
+
.query(async ({ input }) => {
|
|
255
|
+
const assignment = await prisma.assignment.findFirst({
|
|
256
|
+
where: { id: input.assignmentId, classId: input.classId },
|
|
257
|
+
select: { id: true },
|
|
258
|
+
});
|
|
259
|
+
if (!assignment) {
|
|
260
|
+
throw new TRPCError({
|
|
261
|
+
code: "NOT_FOUND",
|
|
262
|
+
message: "Assignment not found",
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
const comments = await prisma.comment.findMany({
|
|
266
|
+
where: {
|
|
267
|
+
assignmentId: input.assignmentId,
|
|
268
|
+
submissionId: null,
|
|
269
|
+
parentCommentId: null,
|
|
270
|
+
},
|
|
271
|
+
include: commentInclude,
|
|
272
|
+
orderBy: { createdAt: "asc" },
|
|
273
|
+
});
|
|
274
|
+
return { comments };
|
|
275
|
+
}),
|
|
276
|
+
addComment: protectedClassMemberProcedure
|
|
277
|
+
.input(assignmentCommentSchema)
|
|
278
|
+
.mutation(async ({ ctx, input }) => {
|
|
279
|
+
const assignment = await prisma.assignment.findFirst({
|
|
280
|
+
where: { id: input.assignmentId, classId: input.classId },
|
|
281
|
+
select: { id: true },
|
|
282
|
+
});
|
|
283
|
+
if (!assignment) {
|
|
284
|
+
throw new TRPCError({
|
|
285
|
+
code: "NOT_FOUND",
|
|
286
|
+
message: "Assignment not found",
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
if (input.parentCommentId) {
|
|
290
|
+
const parentComment = await prisma.comment.findFirst({
|
|
291
|
+
where: {
|
|
292
|
+
id: input.parentCommentId,
|
|
293
|
+
assignmentId: input.assignmentId,
|
|
294
|
+
submissionId: null,
|
|
295
|
+
},
|
|
296
|
+
select: { id: true },
|
|
297
|
+
});
|
|
298
|
+
if (!parentComment) {
|
|
299
|
+
throw new TRPCError({
|
|
300
|
+
code: "NOT_FOUND",
|
|
301
|
+
message: "Parent comment not found",
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
const comment = await prisma.comment.create({
|
|
306
|
+
data: {
|
|
307
|
+
content: input.content,
|
|
308
|
+
authorId: ctx.user.id,
|
|
309
|
+
assignmentId: input.assignmentId,
|
|
310
|
+
...(input.parentCommentId && { parentCommentId: input.parentCommentId }),
|
|
311
|
+
},
|
|
312
|
+
include: commentInclude,
|
|
313
|
+
});
|
|
314
|
+
return { comment };
|
|
315
|
+
}),
|
|
316
|
+
getSubmissionComments: protectedClassMemberProcedure
|
|
317
|
+
.input(submissionCommentsSchema)
|
|
318
|
+
.query(async ({ ctx, input }) => {
|
|
319
|
+
const submission = await prisma.submission.findFirst({
|
|
320
|
+
where: {
|
|
321
|
+
id: input.submissionId,
|
|
322
|
+
assignmentId: input.assignmentId,
|
|
323
|
+
assignment: {
|
|
324
|
+
classId: input.classId,
|
|
325
|
+
class: {
|
|
326
|
+
OR: [
|
|
327
|
+
{ teachers: { some: { id: ctx.user.id } } },
|
|
328
|
+
{ students: { some: { id: ctx.user.id } } },
|
|
329
|
+
],
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
OR: [
|
|
333
|
+
{ studentId: ctx.user.id },
|
|
334
|
+
{ assignment: { class: { teachers: { some: { id: ctx.user.id } } } } },
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
select: { id: true },
|
|
338
|
+
});
|
|
339
|
+
if (!submission) {
|
|
340
|
+
throw new TRPCError({
|
|
341
|
+
code: "NOT_FOUND",
|
|
342
|
+
message: "Submission not found",
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
const comments = await prisma.comment.findMany({
|
|
346
|
+
where: {
|
|
347
|
+
submissionId: input.submissionId,
|
|
348
|
+
parentCommentId: null,
|
|
349
|
+
},
|
|
350
|
+
include: commentInclude,
|
|
351
|
+
orderBy: { createdAt: "asc" },
|
|
352
|
+
});
|
|
353
|
+
return { comments };
|
|
354
|
+
}),
|
|
355
|
+
addSubmissionComment: protectedClassMemberProcedure
|
|
356
|
+
.input(submissionCommentSchema)
|
|
357
|
+
.mutation(async ({ ctx, input }) => {
|
|
358
|
+
const submission = await prisma.submission.findFirst({
|
|
359
|
+
where: {
|
|
360
|
+
id: input.submissionId,
|
|
361
|
+
assignmentId: input.assignmentId,
|
|
362
|
+
assignment: { classId: input.classId },
|
|
363
|
+
OR: [
|
|
364
|
+
{ studentId: ctx.user.id },
|
|
365
|
+
{ assignment: { class: { teachers: { some: { id: ctx.user.id } } } } },
|
|
366
|
+
],
|
|
367
|
+
},
|
|
368
|
+
select: { id: true },
|
|
369
|
+
});
|
|
370
|
+
if (!submission) {
|
|
371
|
+
throw new TRPCError({
|
|
372
|
+
code: "NOT_FOUND",
|
|
373
|
+
message: "Submission not found",
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
if (input.parentCommentId) {
|
|
377
|
+
const parentComment = await prisma.comment.findFirst({
|
|
378
|
+
where: {
|
|
379
|
+
id: input.parentCommentId,
|
|
380
|
+
submissionId: input.submissionId,
|
|
381
|
+
},
|
|
382
|
+
select: { id: true },
|
|
383
|
+
});
|
|
384
|
+
if (!parentComment) {
|
|
385
|
+
throw new TRPCError({
|
|
386
|
+
code: "NOT_FOUND",
|
|
387
|
+
message: "Parent comment not found",
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
const comment = await prisma.comment.create({
|
|
392
|
+
data: {
|
|
393
|
+
content: input.content,
|
|
394
|
+
authorId: ctx.user.id,
|
|
395
|
+
submissionId: input.submissionId,
|
|
396
|
+
...(input.parentCommentId && { parentCommentId: input.parentCommentId }),
|
|
397
|
+
},
|
|
398
|
+
include: commentInclude,
|
|
399
|
+
});
|
|
400
|
+
return { comment };
|
|
401
|
+
}),
|
|
197
402
|
updateSubmissionAsTeacher: protectedTeacherProcedure
|
|
198
403
|
.input(updateSubmissionSchema)
|
|
199
404
|
.mutation(({ ctx, input }) => updateSubmissionAsTeacherRecord(ctx.user.id, {
|
|
@@ -519,4 +724,4 @@ export const assignmentRouter = createTRPCRouter({
|
|
|
519
724
|
}),
|
|
520
725
|
});
|
|
521
726
|
//# sourceMappingURL=assignment.js.map
|
|
522
|
-
//# debugId=
|
|
727
|
+
//# debugId=1e544bfd-5929-552d-a49c-f0ca8b5232fe
|