@studious-lms/server 1.2.44 → 1.2.46
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/.env.example +45 -0
- package/.env.test.example +37 -0
- package/README.md +34 -7
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +12110 -0
- package/coverage/coverage-final.json +44 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +221 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/server/index.html +116 -0
- package/coverage/server/src/exportType.ts.html +109 -0
- package/coverage/server/src/index.html +161 -0
- package/coverage/server/src/index.ts.html +1702 -0
- package/coverage/server/src/instrument.ts.html +130 -0
- package/coverage/server/src/lib/config/env.ts.html +448 -0
- package/coverage/server/src/lib/config/index.html +116 -0
- package/coverage/server/src/lib/fileUpload.ts.html +1138 -0
- package/coverage/server/src/lib/googleCloudStorage.ts.html +334 -0
- package/coverage/server/src/lib/index.html +206 -0
- package/coverage/server/src/lib/jsonConversion.ts.html +2323 -0
- package/coverage/server/src/lib/jsonStyles.ts.html +193 -0
- package/coverage/server/src/lib/notificationHandler.ts.html +193 -0
- package/coverage/server/src/lib/pusher.ts.html +121 -0
- package/coverage/server/src/lib/thumbnailGenerator.ts.html +592 -0
- package/coverage/server/src/middleware/auth.ts.html +646 -0
- package/coverage/server/src/middleware/index.html +146 -0
- package/coverage/server/src/middleware/logging.ts.html +244 -0
- package/coverage/server/src/middleware/security.ts.html +271 -0
- package/coverage/server/src/routers/_app.ts.html +232 -0
- package/coverage/server/src/routers/agenda.ts.html +319 -0
- package/coverage/server/src/routers/announcement.ts.html +3481 -0
- package/coverage/server/src/routers/assignment.ts.html +7633 -0
- package/coverage/server/src/routers/attendance.ts.html +1030 -0
- package/coverage/server/src/routers/auth.ts.html +1081 -0
- package/coverage/server/src/routers/class.ts.html +3535 -0
- package/coverage/server/src/routers/comment.ts.html +991 -0
- package/coverage/server/src/routers/conversation.ts.html +982 -0
- package/coverage/server/src/routers/event.ts.html +1609 -0
- package/coverage/server/src/routers/file.ts.html +1144 -0
- package/coverage/server/src/routers/folder.ts.html +2797 -0
- package/coverage/server/src/routers/index.html +386 -0
- package/coverage/server/src/routers/labChat.ts.html +3073 -0
- package/coverage/server/src/routers/marketing.ts.html +340 -0
- package/coverage/server/src/routers/message.ts.html +1912 -0
- package/coverage/server/src/routers/notifications.ts.html +364 -0
- package/coverage/server/src/routers/section.ts.html +1120 -0
- package/coverage/server/src/routers/user.ts.html +862 -0
- package/coverage/server/src/routers/worksheet.ts.html +1729 -0
- package/coverage/server/src/trpc.ts.html +397 -0
- package/coverage/server/src/types/index.html +116 -0
- package/coverage/server/src/types/trpc.ts.html +127 -0
- package/coverage/server/src/utils/aiUser.ts.html +280 -0
- package/coverage/server/src/utils/email.ts.html +121 -0
- package/coverage/server/src/utils/generateInviteCode.ts.html +106 -0
- package/coverage/server/src/utils/index.html +206 -0
- package/coverage/server/src/utils/inference.ts.html +709 -0
- package/coverage/server/src/utils/logger.ts.html +664 -0
- package/coverage/server/src/utils/prismaErrorHandler.ts.html +907 -0
- package/coverage/server/src/utils/prismaWrapper.ts.html +355 -0
- package/coverage/server/vitest.config.ts.html +196 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +83 -52
- package/dist/index.js.map +1 -1
- package/dist/instrument.js +15 -8
- package/dist/instrument.js.map +1 -1
- package/dist/lib/config/env.d.ts +169 -0
- package/dist/lib/config/env.d.ts.map +1 -0
- package/dist/lib/config/env.js +115 -0
- package/dist/lib/config/env.js.map +1 -0
- package/dist/lib/fileUpload.d.ts.map +1 -1
- package/dist/lib/fileUpload.js +5 -4
- package/dist/lib/fileUpload.js.map +1 -1
- package/dist/lib/googleCloudStorage.d.ts.map +1 -1
- package/dist/lib/googleCloudStorage.js +7 -8
- package/dist/lib/googleCloudStorage.js.map +1 -1
- package/dist/lib/jsonConversion.d.ts.map +1 -1
- package/dist/lib/jsonConversion.js +14 -16
- package/dist/lib/jsonConversion.js.map +1 -1
- package/dist/lib/notificationHandler.d.ts +2 -2
- package/dist/lib/prisma.d.ts +2 -2
- package/dist/lib/prisma.d.ts.map +1 -1
- package/dist/lib/prisma.js +22 -3
- package/dist/lib/prisma.js.map +1 -1
- package/dist/lib/pusher.d.ts.map +1 -1
- package/dist/lib/pusher.js +8 -7
- package/dist/lib/pusher.js.map +1 -1
- package/dist/middleware/auth.d.ts.map +1 -1
- package/dist/middleware/auth.js +6 -5
- package/dist/middleware/auth.js.map +1 -1
- package/dist/middleware/security.d.ts +5 -0
- package/dist/middleware/security.d.ts.map +1 -0
- package/dist/middleware/security.js +77 -0
- package/dist/middleware/security.js.map +1 -0
- package/dist/routers/_app.d.ts +304 -98
- 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/agenda.d.ts.map +1 -1
- package/dist/routers/agenda.js +12 -9
- package/dist/routers/agenda.js.map +1 -1
- package/dist/routers/announcement.d.ts +8 -0
- package/dist/routers/announcement.d.ts.map +1 -1
- package/dist/routers/announcement.js +6 -4
- package/dist/routers/announcement.js.map +1 -1
- package/dist/routers/assignment.d.ts +7 -4
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +35 -18
- package/dist/routers/assignment.js.map +1 -1
- package/dist/routers/attendance.d.ts +1 -0
- package/dist/routers/attendance.d.ts.map +1 -1
- package/dist/routers/attendance.js +4 -4
- package/dist/routers/attendance.js.map +1 -1
- package/dist/routers/auth.d.ts +20 -0
- package/dist/routers/auth.d.ts.map +1 -1
- package/dist/routers/auth.js +132 -15
- package/dist/routers/auth.js.map +1 -1
- package/dist/routers/class.d.ts +10 -0
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/class.js +49 -5
- package/dist/routers/class.js.map +1 -1
- package/dist/routers/comment.d.ts +7 -0
- package/dist/routers/comment.d.ts.map +1 -1
- package/dist/routers/comment.js +9 -2
- package/dist/routers/comment.js.map +1 -1
- package/dist/routers/conversation.d.ts +1 -0
- package/dist/routers/conversation.d.ts.map +1 -1
- package/dist/routers/conversation.js +46 -31
- package/dist/routers/conversation.js.map +1 -1
- package/dist/routers/file.d.ts.map +1 -1
- package/dist/routers/file.js +30 -7
- package/dist/routers/file.js.map +1 -1
- package/dist/routers/labChat.d.ts +1 -0
- package/dist/routers/labChat.d.ts.map +1 -1
- package/dist/routers/labChat.js +2 -3
- package/dist/routers/labChat.js.map +1 -1
- package/dist/routers/marketing.d.ts +1 -1
- package/dist/routers/newtonChat.d.ts +55 -0
- package/dist/routers/newtonChat.d.ts.map +1 -0
- package/dist/routers/newtonChat.js +438 -0
- package/dist/routers/newtonChat.js.map +1 -0
- package/dist/routers/notifications.d.ts +4 -4
- package/dist/routers/section.d.ts +9 -4
- package/dist/routers/section.d.ts.map +1 -1
- package/dist/routers/section.js +8 -8
- package/dist/routers/section.js.map +1 -1
- package/dist/routers/user.d.ts.map +1 -1
- package/dist/routers/user.js +5 -4
- package/dist/routers/user.js.map +1 -1
- package/dist/routers/worksheet.d.ts +30 -36
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/routers/worksheet.js +11 -33
- package/dist/routers/worksheet.js.map +1 -1
- package/dist/seedDatabase.d.ts +1 -1
- package/dist/seedDatabase.js +275 -284
- package/dist/seedDatabase.js.map +1 -1
- package/dist/server/pipelines/aiLabChat.d.ts +10 -0
- package/dist/server/pipelines/aiLabChat.d.ts.map +1 -0
- package/dist/server/pipelines/aiLabChat.js +83 -0
- package/dist/server/pipelines/aiLabChat.js.map +1 -0
- package/dist/server/pipelines/gradeWorksheet.d.ts +2 -0
- package/dist/server/pipelines/gradeWorksheet.d.ts.map +1 -0
- package/dist/server/pipelines/gradeWorksheet.js +138 -0
- package/dist/server/pipelines/gradeWorksheet.js.map +1 -0
- package/dist/trpc.d.ts.map +1 -1
- package/dist/trpc.js +2 -2
- package/dist/trpc.js.map +1 -1
- package/dist/utils/email.d.ts +9 -1
- package/dist/utils/email.d.ts.map +1 -1
- package/dist/utils/email.js +20 -5
- package/dist/utils/email.js.map +1 -1
- package/dist/utils/inference.d.ts +3 -0
- package/dist/utils/inference.d.ts.map +1 -1
- package/dist/utils/inference.js +41 -7
- package/dist/utils/inference.js.map +1 -1
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +3 -3
- package/dist/utils/logger.js.map +1 -1
- package/docker-compose.yml +14 -0
- package/package.json +13 -4
- package/prisma/schema.prisma +32 -5
- package/scripts/test-pre-push.ts +14 -0
- package/src/index.ts +98 -54
- package/src/instrument.ts +13 -6
- package/src/lib/config/env.ts +126 -0
- package/src/lib/fileUpload.ts +3 -2
- package/src/lib/googleCloudStorage.ts +6 -6
- package/src/lib/jsonConversion.ts +12 -14
- package/src/lib/prisma.ts +23 -2
- package/src/lib/pusher.ts +6 -5
- package/src/middleware/auth.ts +4 -3
- package/src/middleware/security.ts +80 -0
- package/src/routers/_app.ts +2 -0
- package/src/routers/agenda.ts +10 -7
- package/src/routers/announcement.ts +4 -2
- package/src/routers/assignment.ts +58 -40
- package/src/routers/attendance.ts +2 -2
- package/src/routers/auth.ts +143 -14
- package/src/routers/class.ts +52 -3
- package/src/routers/comment.ts +7 -0
- package/src/routers/conversation.ts +49 -29
- package/src/routers/file.ts +29 -5
- package/src/routers/labChat.ts +0 -1
- package/src/routers/newtonChat.ts +520 -0
- package/src/routers/section.ts +6 -6
- package/src/routers/user.ts +3 -2
- package/src/routers/worksheet.ts +9 -37
- package/src/seedDatabase.ts +290 -283
- package/src/server/pipelines/aiLabChat.ts +92 -0
- package/src/server/pipelines/gradeWorksheet.ts +152 -0
- package/src/trpc.ts +2 -0
- package/src/utils/email.ts +30 -3
- package/src/utils/inference.ts +50 -5
- package/src/utils/logger.ts +2 -1
- package/tests/announcement.test.ts +164 -0
- package/tests/assignment.test.ts +296 -0
- package/tests/attendance.test.ts +168 -0
- package/tests/auth.test.ts +33 -10
- package/tests/class.test.ts +34 -9
- package/tests/event.test.ts +228 -0
- package/tests/section.test.ts +216 -0
- package/tests/setup.ts +70 -16
- package/tests/user.test.ts +158 -0
- package/vitest.config.ts +26 -0
- package/API_SPECIFICATION.md +0 -1597
- package/BASE64_REMOVAL_SUMMARY.md +0 -164
- package/CHAT_API_SPEC.md +0 -579
- package/LAB_CHAT_API_SPEC.md +0 -518
- package/dist/routers/school.d.ts +0 -208
- package/dist/routers/school.d.ts.map +0 -1
- package/dist/routers/school.js +0 -483
package/dist/routers/_app.d.ts
CHANGED
|
@@ -293,6 +293,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
293
293
|
};
|
|
294
294
|
meta: object;
|
|
295
295
|
}>;
|
|
296
|
+
leaveClass: import("@trpc/server").TRPCMutationProcedure<{
|
|
297
|
+
input: {
|
|
298
|
+
classId: string;
|
|
299
|
+
};
|
|
300
|
+
output: {
|
|
301
|
+
success: boolean;
|
|
302
|
+
leftClassId: string;
|
|
303
|
+
};
|
|
304
|
+
meta: object;
|
|
305
|
+
}>;
|
|
296
306
|
join: import("@trpc/server").TRPCMutationProcedure<{
|
|
297
307
|
input: {
|
|
298
308
|
classCode: string;
|
|
@@ -914,6 +924,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
914
924
|
}>;
|
|
915
925
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
916
926
|
input: {
|
|
927
|
+
[x: string]: unknown;
|
|
928
|
+
classId: string;
|
|
917
929
|
id: string;
|
|
918
930
|
data: {
|
|
919
931
|
files?: {
|
|
@@ -952,6 +964,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
952
964
|
}>;
|
|
953
965
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
954
966
|
input: {
|
|
967
|
+
[x: string]: unknown;
|
|
968
|
+
classId: string;
|
|
955
969
|
id: string;
|
|
956
970
|
};
|
|
957
971
|
output: {
|
|
@@ -1010,6 +1024,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1010
1024
|
} | null;
|
|
1011
1025
|
};
|
|
1012
1026
|
} & {
|
|
1027
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1013
1028
|
id: string;
|
|
1014
1029
|
content: string;
|
|
1015
1030
|
createdAt: Date;
|
|
@@ -1039,6 +1054,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1039
1054
|
} | null;
|
|
1040
1055
|
};
|
|
1041
1056
|
} & {
|
|
1057
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1042
1058
|
id: string;
|
|
1043
1059
|
content: string;
|
|
1044
1060
|
createdAt: Date;
|
|
@@ -1088,6 +1104,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1088
1104
|
} | null;
|
|
1089
1105
|
};
|
|
1090
1106
|
} & {
|
|
1107
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1091
1108
|
id: string;
|
|
1092
1109
|
content: string;
|
|
1093
1110
|
createdAt: Date;
|
|
@@ -1098,6 +1115,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1098
1115
|
studentQuestionProgressId: string | null;
|
|
1099
1116
|
})[];
|
|
1100
1117
|
} & {
|
|
1118
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
1101
1119
|
id: string;
|
|
1102
1120
|
content: string;
|
|
1103
1121
|
createdAt: Date;
|
|
@@ -1297,9 +1315,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1297
1315
|
}>;
|
|
1298
1316
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
1299
1317
|
input: {
|
|
1318
|
+
[x: string]: unknown;
|
|
1319
|
+
classId: string;
|
|
1300
1320
|
title: string;
|
|
1301
1321
|
dueDate: string;
|
|
1302
|
-
classId: string;
|
|
1303
1322
|
instructions: string;
|
|
1304
1323
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
1305
1324
|
files?: {
|
|
@@ -1354,8 +1373,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1354
1373
|
}>;
|
|
1355
1374
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
1356
1375
|
input: {
|
|
1357
|
-
|
|
1376
|
+
[x: string]: unknown;
|
|
1358
1377
|
classId: string;
|
|
1378
|
+
id: string;
|
|
1359
1379
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
1360
1380
|
files?: {
|
|
1361
1381
|
type: string;
|
|
@@ -1474,8 +1494,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1474
1494
|
}>;
|
|
1475
1495
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
1476
1496
|
input: {
|
|
1477
|
-
|
|
1497
|
+
[x: string]: unknown;
|
|
1478
1498
|
classId: string;
|
|
1499
|
+
id: string;
|
|
1479
1500
|
};
|
|
1480
1501
|
output: {
|
|
1481
1502
|
sections: {
|
|
@@ -2220,9 +2241,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2220
2241
|
return?: boolean | undefined;
|
|
2221
2242
|
rubricGrades?: {
|
|
2222
2243
|
comments: string;
|
|
2244
|
+
points: number;
|
|
2223
2245
|
criteriaId: string;
|
|
2224
2246
|
selectedLevelId: string;
|
|
2225
|
-
points: number;
|
|
2226
2247
|
}[] | undefined;
|
|
2227
2248
|
};
|
|
2228
2249
|
output: {
|
|
@@ -3054,8 +3075,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3054
3075
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3055
3076
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
3056
3077
|
input: {
|
|
3057
|
-
|
|
3078
|
+
[x: string]: unknown;
|
|
3058
3079
|
classId: string;
|
|
3080
|
+
name: string;
|
|
3059
3081
|
color?: string | undefined;
|
|
3060
3082
|
};
|
|
3061
3083
|
output: {
|
|
@@ -3069,6 +3091,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3069
3091
|
}>;
|
|
3070
3092
|
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
3071
3093
|
input: {
|
|
3094
|
+
[x: string]: unknown;
|
|
3072
3095
|
classId: string;
|
|
3073
3096
|
movedId: string;
|
|
3074
3097
|
position: "start" | "end" | "before" | "after";
|
|
@@ -3085,9 +3108,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3085
3108
|
}>;
|
|
3086
3109
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
3087
3110
|
input: {
|
|
3111
|
+
[x: string]: unknown;
|
|
3112
|
+
classId: string;
|
|
3088
3113
|
id: string;
|
|
3089
3114
|
name: string;
|
|
3090
|
-
classId: string;
|
|
3091
3115
|
color?: string | undefined;
|
|
3092
3116
|
};
|
|
3093
3117
|
output: {
|
|
@@ -3101,8 +3125,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3101
3125
|
}>;
|
|
3102
3126
|
reOrder: import("@trpc/server").TRPCMutationProcedure<{
|
|
3103
3127
|
input: {
|
|
3104
|
-
|
|
3128
|
+
[x: string]: unknown;
|
|
3105
3129
|
classId: string;
|
|
3130
|
+
id: string;
|
|
3106
3131
|
order: number;
|
|
3107
3132
|
};
|
|
3108
3133
|
output: {
|
|
@@ -3112,8 +3137,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3112
3137
|
}>;
|
|
3113
3138
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
3114
3139
|
input: {
|
|
3115
|
-
|
|
3140
|
+
[x: string]: unknown;
|
|
3116
3141
|
classId: string;
|
|
3142
|
+
id: string;
|
|
3117
3143
|
};
|
|
3118
3144
|
output: {
|
|
3119
3145
|
id: string;
|
|
@@ -3140,6 +3166,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3140
3166
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3141
3167
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
3142
3168
|
input: {
|
|
3169
|
+
[x: string]: unknown;
|
|
3143
3170
|
classId: string;
|
|
3144
3171
|
eventId?: string | undefined;
|
|
3145
3172
|
};
|
|
@@ -3609,6 +3636,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3609
3636
|
};
|
|
3610
3637
|
meta: object;
|
|
3611
3638
|
}>;
|
|
3639
|
+
requestPasswordReset: import("@trpc/server").TRPCMutationProcedure<{
|
|
3640
|
+
input: {
|
|
3641
|
+
email: string;
|
|
3642
|
+
};
|
|
3643
|
+
output: {
|
|
3644
|
+
success: boolean;
|
|
3645
|
+
};
|
|
3646
|
+
meta: object;
|
|
3647
|
+
}>;
|
|
3648
|
+
resetPassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
3649
|
+
input: {
|
|
3650
|
+
password: string;
|
|
3651
|
+
confirmPassword: string;
|
|
3652
|
+
token: string;
|
|
3653
|
+
};
|
|
3654
|
+
output: {
|
|
3655
|
+
success: boolean;
|
|
3656
|
+
};
|
|
3657
|
+
meta: object;
|
|
3658
|
+
}>;
|
|
3612
3659
|
}>>;
|
|
3613
3660
|
agenda: import("@trpc/server").TRPCBuiltRouter<{
|
|
3614
3661
|
ctx: import("../trpc.js").Context;
|
|
@@ -4177,9 +4224,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4177
4224
|
title: string;
|
|
4178
4225
|
content: string;
|
|
4179
4226
|
createdAt: Date;
|
|
4227
|
+
read: boolean;
|
|
4180
4228
|
senderId: string | null;
|
|
4181
4229
|
receiverId: string;
|
|
4182
|
-
read: boolean;
|
|
4183
4230
|
})[];
|
|
4184
4231
|
meta: object;
|
|
4185
4232
|
}>;
|
|
@@ -4199,9 +4246,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4199
4246
|
title: string;
|
|
4200
4247
|
content: string;
|
|
4201
4248
|
createdAt: Date;
|
|
4249
|
+
read: boolean;
|
|
4202
4250
|
senderId: string | null;
|
|
4203
4251
|
receiverId: string;
|
|
4204
|
-
read: boolean;
|
|
4205
4252
|
}) | null;
|
|
4206
4253
|
meta: object;
|
|
4207
4254
|
}>;
|
|
@@ -4216,9 +4263,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4216
4263
|
title: string;
|
|
4217
4264
|
content: string;
|
|
4218
4265
|
createdAt: Date;
|
|
4266
|
+
read: boolean;
|
|
4219
4267
|
senderId: string | null;
|
|
4220
4268
|
receiverId: string;
|
|
4221
|
-
read: boolean;
|
|
4222
4269
|
};
|
|
4223
4270
|
meta: object;
|
|
4224
4271
|
}>;
|
|
@@ -4240,9 +4287,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4240
4287
|
title: string;
|
|
4241
4288
|
content: string;
|
|
4242
4289
|
createdAt: Date;
|
|
4290
|
+
read: boolean;
|
|
4243
4291
|
senderId: string | null;
|
|
4244
4292
|
receiverId: string;
|
|
4245
|
-
read: boolean;
|
|
4246
4293
|
};
|
|
4247
4294
|
meta: object;
|
|
4248
4295
|
}>;
|
|
@@ -4303,6 +4350,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4303
4350
|
} | null;
|
|
4304
4351
|
};
|
|
4305
4352
|
} & {
|
|
4353
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
4306
4354
|
id: string;
|
|
4307
4355
|
content: string;
|
|
4308
4356
|
createdAt: Date;
|
|
@@ -4688,6 +4736,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4688
4736
|
} | null;
|
|
4689
4737
|
};
|
|
4690
4738
|
} & {
|
|
4739
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
4691
4740
|
id: string;
|
|
4692
4741
|
content: string;
|
|
4693
4742
|
createdAt: Date;
|
|
@@ -4732,6 +4781,59 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4732
4781
|
meta: object;
|
|
4733
4782
|
}>;
|
|
4734
4783
|
}>>;
|
|
4784
|
+
newtonChat: import("@trpc/server").TRPCBuiltRouter<{
|
|
4785
|
+
ctx: import("../trpc.js").Context;
|
|
4786
|
+
meta: object;
|
|
4787
|
+
errorShape: {
|
|
4788
|
+
data: {
|
|
4789
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
4790
|
+
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
4791
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
4792
|
+
httpStatus: number;
|
|
4793
|
+
path?: string;
|
|
4794
|
+
stack?: string;
|
|
4795
|
+
};
|
|
4796
|
+
message: string;
|
|
4797
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4798
|
+
};
|
|
4799
|
+
transformer: false;
|
|
4800
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4801
|
+
getTutorConversation: import("@trpc/server").TRPCQueryProcedure<{
|
|
4802
|
+
input: {
|
|
4803
|
+
classId: string;
|
|
4804
|
+
assignmentId: string;
|
|
4805
|
+
};
|
|
4806
|
+
output: {
|
|
4807
|
+
conversationId: string;
|
|
4808
|
+
newtonChatId: string;
|
|
4809
|
+
};
|
|
4810
|
+
meta: object;
|
|
4811
|
+
}>;
|
|
4812
|
+
postToNewtonChat: import("@trpc/server").TRPCMutationProcedure<{
|
|
4813
|
+
input: {
|
|
4814
|
+
content: string;
|
|
4815
|
+
newtonChatId: string;
|
|
4816
|
+
mentionedUserIds?: string[] | undefined;
|
|
4817
|
+
};
|
|
4818
|
+
output: {
|
|
4819
|
+
id: string;
|
|
4820
|
+
content: string;
|
|
4821
|
+
senderId: string;
|
|
4822
|
+
conversationId: string;
|
|
4823
|
+
createdAt: Date;
|
|
4824
|
+
sender: {
|
|
4825
|
+
id: string;
|
|
4826
|
+
username: string;
|
|
4827
|
+
profile: {
|
|
4828
|
+
displayName: string | null;
|
|
4829
|
+
profilePicture: string | null;
|
|
4830
|
+
} | null;
|
|
4831
|
+
};
|
|
4832
|
+
mentionedUserIds: string[];
|
|
4833
|
+
};
|
|
4834
|
+
meta: object;
|
|
4835
|
+
}>;
|
|
4836
|
+
}>>;
|
|
4735
4837
|
marketing: import("@trpc/server").TRPCBuiltRouter<{
|
|
4736
4838
|
ctx: import("../trpc.js").Context;
|
|
4737
4839
|
meta: object;
|
|
@@ -4778,9 +4880,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4778
4880
|
};
|
|
4779
4881
|
output: {
|
|
4780
4882
|
type: string;
|
|
4883
|
+
status: string;
|
|
4781
4884
|
id: string;
|
|
4782
4885
|
name: string;
|
|
4783
|
-
status: string;
|
|
4784
4886
|
website: string | null;
|
|
4785
4887
|
submittedAt: Date | null;
|
|
4786
4888
|
address: string;
|
|
@@ -4842,17 +4944,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4842
4944
|
syllabus: string | null;
|
|
4843
4945
|
} | null;
|
|
4844
4946
|
questions: {
|
|
4947
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4845
4948
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4846
4949
|
id: string;
|
|
4847
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4848
4950
|
createdAt: Date;
|
|
4849
4951
|
order: number | null;
|
|
4850
4952
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4851
4953
|
updatedAt: Date;
|
|
4852
|
-
points: number;
|
|
4853
4954
|
question: string;
|
|
4854
4955
|
worksheetId: string;
|
|
4855
4956
|
answer: string;
|
|
4957
|
+
points: number;
|
|
4856
4958
|
}[];
|
|
4857
4959
|
} & {
|
|
4858
4960
|
id: string;
|
|
@@ -4932,26 +5034,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4932
5034
|
points?: number | undefined;
|
|
4933
5035
|
};
|
|
4934
5036
|
output: {
|
|
5037
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4935
5038
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4936
5039
|
id: string;
|
|
4937
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4938
5040
|
createdAt: Date;
|
|
4939
5041
|
order: number | null;
|
|
4940
5042
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4941
5043
|
updatedAt: Date;
|
|
4942
|
-
points: number;
|
|
4943
5044
|
question: string;
|
|
4944
5045
|
worksheetId: string;
|
|
4945
5046
|
answer: string;
|
|
5047
|
+
points: number;
|
|
4946
5048
|
};
|
|
4947
5049
|
meta: object;
|
|
4948
5050
|
}>;
|
|
4949
5051
|
reorderQuestions: import("@trpc/server").TRPCMutationProcedure<{
|
|
4950
5052
|
input: {
|
|
5053
|
+
worksheetId: string;
|
|
4951
5054
|
movedId: string;
|
|
4952
5055
|
position: "before" | "after";
|
|
4953
5056
|
targetId: string;
|
|
4954
|
-
worksheetId: string;
|
|
4955
5057
|
};
|
|
4956
5058
|
output: {
|
|
4957
5059
|
id: string;
|
|
@@ -4962,25 +5064,25 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4962
5064
|
input: {
|
|
4963
5065
|
worksheetId: string;
|
|
4964
5066
|
questionId: string;
|
|
4965
|
-
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
4966
5067
|
options?: any;
|
|
5068
|
+
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
4967
5069
|
markScheme?: any;
|
|
4968
|
-
points?: number | undefined;
|
|
4969
5070
|
question?: string | undefined;
|
|
4970
5071
|
answer?: string | undefined;
|
|
5072
|
+
points?: number | undefined;
|
|
4971
5073
|
};
|
|
4972
5074
|
output: {
|
|
5075
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4973
5076
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4974
5077
|
id: string;
|
|
4975
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4976
5078
|
createdAt: Date;
|
|
4977
5079
|
order: number | null;
|
|
4978
5080
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4979
5081
|
updatedAt: Date;
|
|
4980
|
-
points: number;
|
|
4981
5082
|
question: string;
|
|
4982
5083
|
worksheetId: string;
|
|
4983
5084
|
answer: string;
|
|
5085
|
+
points: number;
|
|
4984
5086
|
};
|
|
4985
5087
|
meta: object;
|
|
4986
5088
|
}>;
|
|
@@ -4990,17 +5092,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4990
5092
|
questionId: string;
|
|
4991
5093
|
};
|
|
4992
5094
|
output: {
|
|
5095
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4993
5096
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4994
5097
|
id: string;
|
|
4995
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4996
5098
|
createdAt: Date;
|
|
4997
5099
|
order: number | null;
|
|
4998
5100
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4999
5101
|
updatedAt: Date;
|
|
5000
|
-
points: number;
|
|
5001
5102
|
question: string;
|
|
5002
5103
|
worksheetId: string;
|
|
5003
5104
|
answer: string;
|
|
5105
|
+
points: number;
|
|
5004
5106
|
};
|
|
5005
5107
|
meta: object;
|
|
5006
5108
|
}>;
|
|
@@ -5015,6 +5117,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5015
5117
|
id: string;
|
|
5016
5118
|
}[];
|
|
5017
5119
|
} & {
|
|
5120
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5018
5121
|
id: string;
|
|
5019
5122
|
feedback: string | null;
|
|
5020
5123
|
studentId: string;
|
|
@@ -5023,9 +5126,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5023
5126
|
points: number;
|
|
5024
5127
|
questionId: string;
|
|
5025
5128
|
response: string;
|
|
5026
|
-
studentWorksheetResponseId: string | null;
|
|
5027
5129
|
isCorrect: boolean;
|
|
5028
5130
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5131
|
+
studentWorksheetResponseId: string | null;
|
|
5029
5132
|
})[];
|
|
5030
5133
|
} & {
|
|
5031
5134
|
id: string;
|
|
@@ -5041,12 +5144,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5041
5144
|
}>;
|
|
5042
5145
|
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
5043
5146
|
input: {
|
|
5044
|
-
questionId: string;
|
|
5045
5147
|
worksheetResponseId: string;
|
|
5148
|
+
questionId: string;
|
|
5046
5149
|
response: string;
|
|
5047
5150
|
};
|
|
5048
5151
|
output: ({
|
|
5049
5152
|
responses: {
|
|
5153
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5050
5154
|
id: string;
|
|
5051
5155
|
feedback: string | null;
|
|
5052
5156
|
studentId: string;
|
|
@@ -5055,9 +5159,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5055
5159
|
points: number;
|
|
5056
5160
|
questionId: string;
|
|
5057
5161
|
response: string;
|
|
5058
|
-
studentWorksheetResponseId: string | null;
|
|
5059
5162
|
isCorrect: boolean;
|
|
5060
5163
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5164
|
+
studentWorksheetResponseId: string | null;
|
|
5061
5165
|
}[];
|
|
5062
5166
|
} & {
|
|
5063
5167
|
id: string;
|
|
@@ -5071,46 +5175,37 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5071
5175
|
}) | null;
|
|
5072
5176
|
meta: object;
|
|
5073
5177
|
}>;
|
|
5074
|
-
|
|
5178
|
+
cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
|
|
5075
5179
|
input: {
|
|
5076
5180
|
worksheetResponseId: string;
|
|
5181
|
+
questionId: string;
|
|
5077
5182
|
};
|
|
5078
5183
|
output: {
|
|
5079
|
-
|
|
5080
|
-
id: string;
|
|
5081
|
-
feedback: string | null;
|
|
5082
|
-
studentId: string;
|
|
5083
|
-
createdAt: Date;
|
|
5084
|
-
updatedAt: Date | null;
|
|
5085
|
-
points: number;
|
|
5086
|
-
questionId: string;
|
|
5087
|
-
response: string;
|
|
5088
|
-
studentWorksheetResponseId: string | null;
|
|
5089
|
-
isCorrect: boolean;
|
|
5090
|
-
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5091
|
-
}[];
|
|
5092
|
-
} & {
|
|
5184
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5093
5185
|
id: string;
|
|
5094
|
-
|
|
5186
|
+
feedback: string | null;
|
|
5095
5187
|
studentId: string;
|
|
5096
5188
|
createdAt: Date;
|
|
5097
|
-
updatedAt: Date;
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5189
|
+
updatedAt: Date | null;
|
|
5190
|
+
points: number;
|
|
5191
|
+
questionId: string;
|
|
5192
|
+
response: string;
|
|
5193
|
+
isCorrect: boolean;
|
|
5194
|
+
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5195
|
+
studentWorksheetResponseId: string | null;
|
|
5101
5196
|
};
|
|
5102
5197
|
meta: object;
|
|
5103
5198
|
}>;
|
|
5104
5199
|
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
5105
5200
|
input: {
|
|
5106
5201
|
questionId: string;
|
|
5107
|
-
studentWorksheetResponseId: string;
|
|
5108
5202
|
isCorrect: boolean;
|
|
5203
|
+
studentWorksheetResponseId: string;
|
|
5109
5204
|
feedback?: string | undefined;
|
|
5110
5205
|
points?: number | undefined;
|
|
5111
5206
|
response?: string | undefined;
|
|
5112
|
-
responseId?: string | undefined;
|
|
5113
5207
|
markschemeState?: any;
|
|
5208
|
+
responseId?: string | undefined;
|
|
5114
5209
|
};
|
|
5115
5210
|
output: any;
|
|
5116
5211
|
meta: object;
|
|
@@ -5121,6 +5216,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5121
5216
|
responseId: string;
|
|
5122
5217
|
};
|
|
5123
5218
|
output: {
|
|
5219
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5124
5220
|
id: string;
|
|
5125
5221
|
content: string;
|
|
5126
5222
|
createdAt: Date;
|
|
@@ -5191,8 +5287,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5191
5287
|
author: {
|
|
5192
5288
|
id: string;
|
|
5193
5289
|
username: string;
|
|
5290
|
+
profile: {
|
|
5291
|
+
displayName: string | null;
|
|
5292
|
+
profilePicture: string | null;
|
|
5293
|
+
profilePictureThumbnail: string | null;
|
|
5294
|
+
} | null;
|
|
5194
5295
|
};
|
|
5195
5296
|
} & {
|
|
5297
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5196
5298
|
id: string;
|
|
5197
5299
|
content: string;
|
|
5198
5300
|
createdAt: Date;
|
|
@@ -5210,6 +5312,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5210
5312
|
parentCommentId: string;
|
|
5211
5313
|
};
|
|
5212
5314
|
output: {
|
|
5315
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5213
5316
|
id: string;
|
|
5214
5317
|
content: string;
|
|
5215
5318
|
createdAt: Date;
|
|
@@ -5574,6 +5677,16 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5574
5677
|
};
|
|
5575
5678
|
meta: object;
|
|
5576
5679
|
}>;
|
|
5680
|
+
leaveClass: import("@trpc/server").TRPCMutationProcedure<{
|
|
5681
|
+
input: {
|
|
5682
|
+
classId: string;
|
|
5683
|
+
};
|
|
5684
|
+
output: {
|
|
5685
|
+
success: boolean;
|
|
5686
|
+
leftClassId: string;
|
|
5687
|
+
};
|
|
5688
|
+
meta: object;
|
|
5689
|
+
}>;
|
|
5577
5690
|
join: import("@trpc/server").TRPCMutationProcedure<{
|
|
5578
5691
|
input: {
|
|
5579
5692
|
classCode: string;
|
|
@@ -6195,6 +6308,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6195
6308
|
}>;
|
|
6196
6309
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6197
6310
|
input: {
|
|
6311
|
+
[x: string]: unknown;
|
|
6312
|
+
classId: string;
|
|
6198
6313
|
id: string;
|
|
6199
6314
|
data: {
|
|
6200
6315
|
files?: {
|
|
@@ -6233,6 +6348,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6233
6348
|
}>;
|
|
6234
6349
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
6235
6350
|
input: {
|
|
6351
|
+
[x: string]: unknown;
|
|
6352
|
+
classId: string;
|
|
6236
6353
|
id: string;
|
|
6237
6354
|
};
|
|
6238
6355
|
output: {
|
|
@@ -6291,6 +6408,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6291
6408
|
} | null;
|
|
6292
6409
|
};
|
|
6293
6410
|
} & {
|
|
6411
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6294
6412
|
id: string;
|
|
6295
6413
|
content: string;
|
|
6296
6414
|
createdAt: Date;
|
|
@@ -6320,6 +6438,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6320
6438
|
} | null;
|
|
6321
6439
|
};
|
|
6322
6440
|
} & {
|
|
6441
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6323
6442
|
id: string;
|
|
6324
6443
|
content: string;
|
|
6325
6444
|
createdAt: Date;
|
|
@@ -6369,6 +6488,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6369
6488
|
} | null;
|
|
6370
6489
|
};
|
|
6371
6490
|
} & {
|
|
6491
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6372
6492
|
id: string;
|
|
6373
6493
|
content: string;
|
|
6374
6494
|
createdAt: Date;
|
|
@@ -6379,6 +6499,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6379
6499
|
studentQuestionProgressId: string | null;
|
|
6380
6500
|
})[];
|
|
6381
6501
|
} & {
|
|
6502
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6382
6503
|
id: string;
|
|
6383
6504
|
content: string;
|
|
6384
6505
|
createdAt: Date;
|
|
@@ -6578,9 +6699,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6578
6699
|
}>;
|
|
6579
6700
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
6580
6701
|
input: {
|
|
6702
|
+
[x: string]: unknown;
|
|
6703
|
+
classId: string;
|
|
6581
6704
|
title: string;
|
|
6582
6705
|
dueDate: string;
|
|
6583
|
-
classId: string;
|
|
6584
6706
|
instructions: string;
|
|
6585
6707
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
6586
6708
|
files?: {
|
|
@@ -6635,8 +6757,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6635
6757
|
}>;
|
|
6636
6758
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6637
6759
|
input: {
|
|
6638
|
-
|
|
6760
|
+
[x: string]: unknown;
|
|
6639
6761
|
classId: string;
|
|
6762
|
+
id: string;
|
|
6640
6763
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
6641
6764
|
files?: {
|
|
6642
6765
|
type: string;
|
|
@@ -6755,8 +6878,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6755
6878
|
}>;
|
|
6756
6879
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
6757
6880
|
input: {
|
|
6758
|
-
|
|
6881
|
+
[x: string]: unknown;
|
|
6759
6882
|
classId: string;
|
|
6883
|
+
id: string;
|
|
6760
6884
|
};
|
|
6761
6885
|
output: {
|
|
6762
6886
|
sections: {
|
|
@@ -7501,9 +7625,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7501
7625
|
return?: boolean | undefined;
|
|
7502
7626
|
rubricGrades?: {
|
|
7503
7627
|
comments: string;
|
|
7628
|
+
points: number;
|
|
7504
7629
|
criteriaId: string;
|
|
7505
7630
|
selectedLevelId: string;
|
|
7506
|
-
points: number;
|
|
7507
7631
|
}[] | undefined;
|
|
7508
7632
|
};
|
|
7509
7633
|
output: {
|
|
@@ -8335,8 +8459,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8335
8459
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8336
8460
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8337
8461
|
input: {
|
|
8338
|
-
|
|
8462
|
+
[x: string]: unknown;
|
|
8339
8463
|
classId: string;
|
|
8464
|
+
name: string;
|
|
8340
8465
|
color?: string | undefined;
|
|
8341
8466
|
};
|
|
8342
8467
|
output: {
|
|
@@ -8350,6 +8475,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8350
8475
|
}>;
|
|
8351
8476
|
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
8352
8477
|
input: {
|
|
8478
|
+
[x: string]: unknown;
|
|
8353
8479
|
classId: string;
|
|
8354
8480
|
movedId: string;
|
|
8355
8481
|
position: "start" | "end" | "before" | "after";
|
|
@@ -8366,9 +8492,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8366
8492
|
}>;
|
|
8367
8493
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
8368
8494
|
input: {
|
|
8495
|
+
[x: string]: unknown;
|
|
8496
|
+
classId: string;
|
|
8369
8497
|
id: string;
|
|
8370
8498
|
name: string;
|
|
8371
|
-
classId: string;
|
|
8372
8499
|
color?: string | undefined;
|
|
8373
8500
|
};
|
|
8374
8501
|
output: {
|
|
@@ -8382,8 +8509,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8382
8509
|
}>;
|
|
8383
8510
|
reOrder: import("@trpc/server").TRPCMutationProcedure<{
|
|
8384
8511
|
input: {
|
|
8385
|
-
|
|
8512
|
+
[x: string]: unknown;
|
|
8386
8513
|
classId: string;
|
|
8514
|
+
id: string;
|
|
8387
8515
|
order: number;
|
|
8388
8516
|
};
|
|
8389
8517
|
output: {
|
|
@@ -8393,8 +8521,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8393
8521
|
}>;
|
|
8394
8522
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
8395
8523
|
input: {
|
|
8396
|
-
|
|
8524
|
+
[x: string]: unknown;
|
|
8397
8525
|
classId: string;
|
|
8526
|
+
id: string;
|
|
8398
8527
|
};
|
|
8399
8528
|
output: {
|
|
8400
8529
|
id: string;
|
|
@@ -8421,6 +8550,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8421
8550
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8422
8551
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
8423
8552
|
input: {
|
|
8553
|
+
[x: string]: unknown;
|
|
8424
8554
|
classId: string;
|
|
8425
8555
|
eventId?: string | undefined;
|
|
8426
8556
|
};
|
|
@@ -8890,6 +9020,26 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8890
9020
|
};
|
|
8891
9021
|
meta: object;
|
|
8892
9022
|
}>;
|
|
9023
|
+
requestPasswordReset: import("@trpc/server").TRPCMutationProcedure<{
|
|
9024
|
+
input: {
|
|
9025
|
+
email: string;
|
|
9026
|
+
};
|
|
9027
|
+
output: {
|
|
9028
|
+
success: boolean;
|
|
9029
|
+
};
|
|
9030
|
+
meta: object;
|
|
9031
|
+
}>;
|
|
9032
|
+
resetPassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
9033
|
+
input: {
|
|
9034
|
+
password: string;
|
|
9035
|
+
confirmPassword: string;
|
|
9036
|
+
token: string;
|
|
9037
|
+
};
|
|
9038
|
+
output: {
|
|
9039
|
+
success: boolean;
|
|
9040
|
+
};
|
|
9041
|
+
meta: object;
|
|
9042
|
+
}>;
|
|
8893
9043
|
}>>;
|
|
8894
9044
|
agenda: import("@trpc/server").TRPCBuiltRouter<{
|
|
8895
9045
|
ctx: import("../trpc.js").Context;
|
|
@@ -9458,9 +9608,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9458
9608
|
title: string;
|
|
9459
9609
|
content: string;
|
|
9460
9610
|
createdAt: Date;
|
|
9611
|
+
read: boolean;
|
|
9461
9612
|
senderId: string | null;
|
|
9462
9613
|
receiverId: string;
|
|
9463
|
-
read: boolean;
|
|
9464
9614
|
})[];
|
|
9465
9615
|
meta: object;
|
|
9466
9616
|
}>;
|
|
@@ -9480,9 +9630,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9480
9630
|
title: string;
|
|
9481
9631
|
content: string;
|
|
9482
9632
|
createdAt: Date;
|
|
9633
|
+
read: boolean;
|
|
9483
9634
|
senderId: string | null;
|
|
9484
9635
|
receiverId: string;
|
|
9485
|
-
read: boolean;
|
|
9486
9636
|
}) | null;
|
|
9487
9637
|
meta: object;
|
|
9488
9638
|
}>;
|
|
@@ -9497,9 +9647,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9497
9647
|
title: string;
|
|
9498
9648
|
content: string;
|
|
9499
9649
|
createdAt: Date;
|
|
9650
|
+
read: boolean;
|
|
9500
9651
|
senderId: string | null;
|
|
9501
9652
|
receiverId: string;
|
|
9502
|
-
read: boolean;
|
|
9503
9653
|
};
|
|
9504
9654
|
meta: object;
|
|
9505
9655
|
}>;
|
|
@@ -9521,9 +9671,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9521
9671
|
title: string;
|
|
9522
9672
|
content: string;
|
|
9523
9673
|
createdAt: Date;
|
|
9674
|
+
read: boolean;
|
|
9524
9675
|
senderId: string | null;
|
|
9525
9676
|
receiverId: string;
|
|
9526
|
-
read: boolean;
|
|
9527
9677
|
};
|
|
9528
9678
|
meta: object;
|
|
9529
9679
|
}>;
|
|
@@ -9584,6 +9734,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9584
9734
|
} | null;
|
|
9585
9735
|
};
|
|
9586
9736
|
} & {
|
|
9737
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
9587
9738
|
id: string;
|
|
9588
9739
|
content: string;
|
|
9589
9740
|
createdAt: Date;
|
|
@@ -9969,6 +10120,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9969
10120
|
} | null;
|
|
9970
10121
|
};
|
|
9971
10122
|
} & {
|
|
10123
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
9972
10124
|
id: string;
|
|
9973
10125
|
content: string;
|
|
9974
10126
|
createdAt: Date;
|
|
@@ -10013,6 +10165,59 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10013
10165
|
meta: object;
|
|
10014
10166
|
}>;
|
|
10015
10167
|
}>>;
|
|
10168
|
+
newtonChat: import("@trpc/server").TRPCBuiltRouter<{
|
|
10169
|
+
ctx: import("../trpc.js").Context;
|
|
10170
|
+
meta: object;
|
|
10171
|
+
errorShape: {
|
|
10172
|
+
data: {
|
|
10173
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
10174
|
+
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
10175
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
10176
|
+
httpStatus: number;
|
|
10177
|
+
path?: string;
|
|
10178
|
+
stack?: string;
|
|
10179
|
+
};
|
|
10180
|
+
message: string;
|
|
10181
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
10182
|
+
};
|
|
10183
|
+
transformer: false;
|
|
10184
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
10185
|
+
getTutorConversation: import("@trpc/server").TRPCQueryProcedure<{
|
|
10186
|
+
input: {
|
|
10187
|
+
classId: string;
|
|
10188
|
+
assignmentId: string;
|
|
10189
|
+
};
|
|
10190
|
+
output: {
|
|
10191
|
+
conversationId: string;
|
|
10192
|
+
newtonChatId: string;
|
|
10193
|
+
};
|
|
10194
|
+
meta: object;
|
|
10195
|
+
}>;
|
|
10196
|
+
postToNewtonChat: import("@trpc/server").TRPCMutationProcedure<{
|
|
10197
|
+
input: {
|
|
10198
|
+
content: string;
|
|
10199
|
+
newtonChatId: string;
|
|
10200
|
+
mentionedUserIds?: string[] | undefined;
|
|
10201
|
+
};
|
|
10202
|
+
output: {
|
|
10203
|
+
id: string;
|
|
10204
|
+
content: string;
|
|
10205
|
+
senderId: string;
|
|
10206
|
+
conversationId: string;
|
|
10207
|
+
createdAt: Date;
|
|
10208
|
+
sender: {
|
|
10209
|
+
id: string;
|
|
10210
|
+
username: string;
|
|
10211
|
+
profile: {
|
|
10212
|
+
displayName: string | null;
|
|
10213
|
+
profilePicture: string | null;
|
|
10214
|
+
} | null;
|
|
10215
|
+
};
|
|
10216
|
+
mentionedUserIds: string[];
|
|
10217
|
+
};
|
|
10218
|
+
meta: object;
|
|
10219
|
+
}>;
|
|
10220
|
+
}>>;
|
|
10016
10221
|
marketing: import("@trpc/server").TRPCBuiltRouter<{
|
|
10017
10222
|
ctx: import("../trpc.js").Context;
|
|
10018
10223
|
meta: object;
|
|
@@ -10059,9 +10264,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10059
10264
|
};
|
|
10060
10265
|
output: {
|
|
10061
10266
|
type: string;
|
|
10267
|
+
status: string;
|
|
10062
10268
|
id: string;
|
|
10063
10269
|
name: string;
|
|
10064
|
-
status: string;
|
|
10065
10270
|
website: string | null;
|
|
10066
10271
|
submittedAt: Date | null;
|
|
10067
10272
|
address: string;
|
|
@@ -10123,17 +10328,17 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10123
10328
|
syllabus: string | null;
|
|
10124
10329
|
} | null;
|
|
10125
10330
|
questions: {
|
|
10331
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10126
10332
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10127
10333
|
id: string;
|
|
10128
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10129
10334
|
createdAt: Date;
|
|
10130
10335
|
order: number | null;
|
|
10131
10336
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10132
10337
|
updatedAt: Date;
|
|
10133
|
-
points: number;
|
|
10134
10338
|
question: string;
|
|
10135
10339
|
worksheetId: string;
|
|
10136
10340
|
answer: string;
|
|
10341
|
+
points: number;
|
|
10137
10342
|
}[];
|
|
10138
10343
|
} & {
|
|
10139
10344
|
id: string;
|
|
@@ -10213,26 +10418,26 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10213
10418
|
points?: number | undefined;
|
|
10214
10419
|
};
|
|
10215
10420
|
output: {
|
|
10421
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10216
10422
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10217
10423
|
id: string;
|
|
10218
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10219
10424
|
createdAt: Date;
|
|
10220
10425
|
order: number | null;
|
|
10221
10426
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10222
10427
|
updatedAt: Date;
|
|
10223
|
-
points: number;
|
|
10224
10428
|
question: string;
|
|
10225
10429
|
worksheetId: string;
|
|
10226
10430
|
answer: string;
|
|
10431
|
+
points: number;
|
|
10227
10432
|
};
|
|
10228
10433
|
meta: object;
|
|
10229
10434
|
}>;
|
|
10230
10435
|
reorderQuestions: import("@trpc/server").TRPCMutationProcedure<{
|
|
10231
10436
|
input: {
|
|
10437
|
+
worksheetId: string;
|
|
10232
10438
|
movedId: string;
|
|
10233
10439
|
position: "before" | "after";
|
|
10234
10440
|
targetId: string;
|
|
10235
|
-
worksheetId: string;
|
|
10236
10441
|
};
|
|
10237
10442
|
output: {
|
|
10238
10443
|
id: string;
|
|
@@ -10243,25 +10448,25 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10243
10448
|
input: {
|
|
10244
10449
|
worksheetId: string;
|
|
10245
10450
|
questionId: string;
|
|
10246
|
-
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
10247
10451
|
options?: any;
|
|
10452
|
+
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
10248
10453
|
markScheme?: any;
|
|
10249
|
-
points?: number | undefined;
|
|
10250
10454
|
question?: string | undefined;
|
|
10251
10455
|
answer?: string | undefined;
|
|
10456
|
+
points?: number | undefined;
|
|
10252
10457
|
};
|
|
10253
10458
|
output: {
|
|
10459
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10254
10460
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10255
10461
|
id: string;
|
|
10256
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10257
10462
|
createdAt: Date;
|
|
10258
10463
|
order: number | null;
|
|
10259
10464
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10260
10465
|
updatedAt: Date;
|
|
10261
|
-
points: number;
|
|
10262
10466
|
question: string;
|
|
10263
10467
|
worksheetId: string;
|
|
10264
10468
|
answer: string;
|
|
10469
|
+
points: number;
|
|
10265
10470
|
};
|
|
10266
10471
|
meta: object;
|
|
10267
10472
|
}>;
|
|
@@ -10271,17 +10476,17 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10271
10476
|
questionId: string;
|
|
10272
10477
|
};
|
|
10273
10478
|
output: {
|
|
10479
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10274
10480
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10275
10481
|
id: string;
|
|
10276
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10277
10482
|
createdAt: Date;
|
|
10278
10483
|
order: number | null;
|
|
10279
10484
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10280
10485
|
updatedAt: Date;
|
|
10281
|
-
points: number;
|
|
10282
10486
|
question: string;
|
|
10283
10487
|
worksheetId: string;
|
|
10284
10488
|
answer: string;
|
|
10489
|
+
points: number;
|
|
10285
10490
|
};
|
|
10286
10491
|
meta: object;
|
|
10287
10492
|
}>;
|
|
@@ -10296,6 +10501,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10296
10501
|
id: string;
|
|
10297
10502
|
}[];
|
|
10298
10503
|
} & {
|
|
10504
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10299
10505
|
id: string;
|
|
10300
10506
|
feedback: string | null;
|
|
10301
10507
|
studentId: string;
|
|
@@ -10304,9 +10510,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10304
10510
|
points: number;
|
|
10305
10511
|
questionId: string;
|
|
10306
10512
|
response: string;
|
|
10307
|
-
studentWorksheetResponseId: string | null;
|
|
10308
10513
|
isCorrect: boolean;
|
|
10309
10514
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10515
|
+
studentWorksheetResponseId: string | null;
|
|
10310
10516
|
})[];
|
|
10311
10517
|
} & {
|
|
10312
10518
|
id: string;
|
|
@@ -10322,12 +10528,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10322
10528
|
}>;
|
|
10323
10529
|
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
10324
10530
|
input: {
|
|
10325
|
-
questionId: string;
|
|
10326
10531
|
worksheetResponseId: string;
|
|
10532
|
+
questionId: string;
|
|
10327
10533
|
response: string;
|
|
10328
10534
|
};
|
|
10329
10535
|
output: ({
|
|
10330
10536
|
responses: {
|
|
10537
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10331
10538
|
id: string;
|
|
10332
10539
|
feedback: string | null;
|
|
10333
10540
|
studentId: string;
|
|
@@ -10336,9 +10543,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10336
10543
|
points: number;
|
|
10337
10544
|
questionId: string;
|
|
10338
10545
|
response: string;
|
|
10339
|
-
studentWorksheetResponseId: string | null;
|
|
10340
10546
|
isCorrect: boolean;
|
|
10341
10547
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10548
|
+
studentWorksheetResponseId: string | null;
|
|
10342
10549
|
}[];
|
|
10343
10550
|
} & {
|
|
10344
10551
|
id: string;
|
|
@@ -10352,46 +10559,37 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10352
10559
|
}) | null;
|
|
10353
10560
|
meta: object;
|
|
10354
10561
|
}>;
|
|
10355
|
-
|
|
10562
|
+
cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
|
|
10356
10563
|
input: {
|
|
10357
10564
|
worksheetResponseId: string;
|
|
10565
|
+
questionId: string;
|
|
10358
10566
|
};
|
|
10359
10567
|
output: {
|
|
10360
|
-
|
|
10361
|
-
id: string;
|
|
10362
|
-
feedback: string | null;
|
|
10363
|
-
studentId: string;
|
|
10364
|
-
createdAt: Date;
|
|
10365
|
-
updatedAt: Date | null;
|
|
10366
|
-
points: number;
|
|
10367
|
-
questionId: string;
|
|
10368
|
-
response: string;
|
|
10369
|
-
studentWorksheetResponseId: string | null;
|
|
10370
|
-
isCorrect: boolean;
|
|
10371
|
-
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10372
|
-
}[];
|
|
10373
|
-
} & {
|
|
10568
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10374
10569
|
id: string;
|
|
10375
|
-
|
|
10570
|
+
feedback: string | null;
|
|
10376
10571
|
studentId: string;
|
|
10377
10572
|
createdAt: Date;
|
|
10378
|
-
updatedAt: Date;
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10573
|
+
updatedAt: Date | null;
|
|
10574
|
+
points: number;
|
|
10575
|
+
questionId: string;
|
|
10576
|
+
response: string;
|
|
10577
|
+
isCorrect: boolean;
|
|
10578
|
+
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10579
|
+
studentWorksheetResponseId: string | null;
|
|
10382
10580
|
};
|
|
10383
10581
|
meta: object;
|
|
10384
10582
|
}>;
|
|
10385
10583
|
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
10386
10584
|
input: {
|
|
10387
10585
|
questionId: string;
|
|
10388
|
-
studentWorksheetResponseId: string;
|
|
10389
10586
|
isCorrect: boolean;
|
|
10587
|
+
studentWorksheetResponseId: string;
|
|
10390
10588
|
feedback?: string | undefined;
|
|
10391
10589
|
points?: number | undefined;
|
|
10392
10590
|
response?: string | undefined;
|
|
10393
|
-
responseId?: string | undefined;
|
|
10394
10591
|
markschemeState?: any;
|
|
10592
|
+
responseId?: string | undefined;
|
|
10395
10593
|
};
|
|
10396
10594
|
output: any;
|
|
10397
10595
|
meta: object;
|
|
@@ -10402,6 +10600,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10402
10600
|
responseId: string;
|
|
10403
10601
|
};
|
|
10404
10602
|
output: {
|
|
10603
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10405
10604
|
id: string;
|
|
10406
10605
|
content: string;
|
|
10407
10606
|
createdAt: Date;
|
|
@@ -10472,8 +10671,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10472
10671
|
author: {
|
|
10473
10672
|
id: string;
|
|
10474
10673
|
username: string;
|
|
10674
|
+
profile: {
|
|
10675
|
+
displayName: string | null;
|
|
10676
|
+
profilePicture: string | null;
|
|
10677
|
+
profilePictureThumbnail: string | null;
|
|
10678
|
+
} | null;
|
|
10475
10679
|
};
|
|
10476
10680
|
} & {
|
|
10681
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10477
10682
|
id: string;
|
|
10478
10683
|
content: string;
|
|
10479
10684
|
createdAt: Date;
|
|
@@ -10491,6 +10696,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10491
10696
|
parentCommentId: string;
|
|
10492
10697
|
};
|
|
10493
10698
|
output: {
|
|
10699
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10494
10700
|
id: string;
|
|
10495
10701
|
content: string;
|
|
10496
10702
|
createdAt: Date;
|