@studious-lms/server 1.2.45 → 1.2.47
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 +7 -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 +368 -108
- 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 +17 -4
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +51 -19
- 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 +2 -0
- package/dist/routers/comment.d.ts.map +1 -1
- package/dist/routers/conversation.d.ts +2 -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 +2 -0
- package/dist/routers/labChat.d.ts.map +1 -1
- package/dist/routers/labChat.js +5 -322
- package/dist/routers/labChat.js.map +1 -1
- package/dist/routers/marketing.d.ts +1 -1
- package/dist/routers/message.d.ts +1 -0
- package/dist/routers/message.d.ts.map +1 -1
- package/dist/routers/message.js +3 -2
- package/dist/routers/message.js.map +1 -1
- package/dist/routers/newtonChat.d.ts +55 -0
- package/dist/routers/newtonChat.d.ts.map +1 -0
- package/dist/routers/newtonChat.js +262 -0
- package/dist/routers/newtonChat.js.map +1 -0
- package/dist/routers/notifications.d.ts +4 -4
- package/dist/routers/section.d.ts +19 -4
- package/dist/routers/section.d.ts.map +1 -1
- package/dist/routers/section.js +26 -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 +44 -41
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/routers/worksheet.js +25 -34
- 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 +21 -0
- package/dist/server/pipelines/aiLabChat.d.ts.map +1 -0
- package/dist/server/pipelines/aiLabChat.js +456 -0
- package/dist/server/pipelines/aiLabChat.js.map +1 -0
- package/dist/server/pipelines/aiNewtonChat.d.ts +30 -0
- package/dist/server/pipelines/aiNewtonChat.d.ts.map +1 -0
- package/dist/server/pipelines/aiNewtonChat.js +280 -0
- package/dist/server/pipelines/aiNewtonChat.js.map +1 -0
- package/dist/server/pipelines/gradeWorksheet.d.ts +15 -0
- package/dist/server/pipelines/gradeWorksheet.d.ts.map +1 -0
- package/dist/server/pipelines/gradeWorksheet.js +139 -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 +5 -0
- package/dist/utils/inference.d.ts.map +1 -1
- package/dist/utils/inference.js +71 -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 +34 -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 +5 -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 +74 -41
- package/src/routers/attendance.ts +2 -2
- package/src/routers/auth.ts +143 -14
- package/src/routers/class.ts +52 -3
- package/src/routers/conversation.ts +49 -29
- package/src/routers/file.ts +29 -5
- package/src/routers/labChat.ts +3 -367
- package/src/routers/message.ts +1 -1
- package/src/routers/newtonChat.ts +299 -0
- package/src/routers/section.ts +26 -6
- package/src/routers/user.ts +3 -2
- package/src/routers/worksheet.ts +26 -38
- package/src/seedDatabase.ts +290 -283
- package/src/server/pipelines/aiLabChat.ts +507 -0
- package/src/server/pipelines/aiNewtonChat.ts +338 -0
- package/src/server/pipelines/gradeWorksheet.ts +151 -0
- package/src/trpc.ts +2 -0
- package/src/utils/email.ts +30 -3
- package/src/utils/inference.ts +85 -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;
|
|
@@ -1260,6 +1278,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1260
1278
|
} | null;
|
|
1261
1279
|
meta: object;
|
|
1262
1280
|
}>;
|
|
1281
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
1282
|
+
input: {
|
|
1283
|
+
[x: string]: unknown;
|
|
1284
|
+
classId: string;
|
|
1285
|
+
id: string;
|
|
1286
|
+
};
|
|
1287
|
+
output: boolean;
|
|
1288
|
+
meta: object;
|
|
1289
|
+
}>;
|
|
1263
1290
|
move: import("@trpc/server").TRPCMutationProcedure<{
|
|
1264
1291
|
input: {
|
|
1265
1292
|
[x: string]: unknown;
|
|
@@ -1297,11 +1324,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1297
1324
|
}>;
|
|
1298
1325
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
1299
1326
|
input: {
|
|
1327
|
+
[x: string]: unknown;
|
|
1328
|
+
classId: string;
|
|
1300
1329
|
title: string;
|
|
1301
1330
|
dueDate: string;
|
|
1302
|
-
classId: string;
|
|
1303
1331
|
instructions: string;
|
|
1304
1332
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
1333
|
+
id?: string | undefined;
|
|
1305
1334
|
files?: {
|
|
1306
1335
|
type: string;
|
|
1307
1336
|
name: string;
|
|
@@ -1354,8 +1383,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1354
1383
|
}>;
|
|
1355
1384
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
1356
1385
|
input: {
|
|
1357
|
-
|
|
1386
|
+
[x: string]: unknown;
|
|
1358
1387
|
classId: string;
|
|
1388
|
+
id: string;
|
|
1359
1389
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
1360
1390
|
files?: {
|
|
1361
1391
|
type: string;
|
|
@@ -1474,8 +1504,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1474
1504
|
}>;
|
|
1475
1505
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
1476
1506
|
input: {
|
|
1477
|
-
|
|
1507
|
+
[x: string]: unknown;
|
|
1478
1508
|
classId: string;
|
|
1509
|
+
id: string;
|
|
1479
1510
|
};
|
|
1480
1511
|
output: {
|
|
1481
1512
|
sections: {
|
|
@@ -2220,9 +2251,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2220
2251
|
return?: boolean | undefined;
|
|
2221
2252
|
rubricGrades?: {
|
|
2222
2253
|
comments: string;
|
|
2254
|
+
points: number;
|
|
2223
2255
|
criteriaId: string;
|
|
2224
2256
|
selectedLevelId: string;
|
|
2225
|
-
points: number;
|
|
2226
2257
|
}[] | undefined;
|
|
2227
2258
|
};
|
|
2228
2259
|
output: {
|
|
@@ -3052,10 +3083,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3052
3083
|
};
|
|
3053
3084
|
transformer: false;
|
|
3054
3085
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3086
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
3087
|
+
input: {
|
|
3088
|
+
[x: string]: unknown;
|
|
3089
|
+
classId: string;
|
|
3090
|
+
id: string;
|
|
3091
|
+
};
|
|
3092
|
+
output: boolean;
|
|
3093
|
+
meta: object;
|
|
3094
|
+
}>;
|
|
3055
3095
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
3056
3096
|
input: {
|
|
3057
|
-
|
|
3097
|
+
[x: string]: unknown;
|
|
3058
3098
|
classId: string;
|
|
3099
|
+
name: string;
|
|
3100
|
+
id?: string | undefined;
|
|
3059
3101
|
color?: string | undefined;
|
|
3060
3102
|
};
|
|
3061
3103
|
output: {
|
|
@@ -3069,6 +3111,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3069
3111
|
}>;
|
|
3070
3112
|
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
3071
3113
|
input: {
|
|
3114
|
+
[x: string]: unknown;
|
|
3072
3115
|
classId: string;
|
|
3073
3116
|
movedId: string;
|
|
3074
3117
|
position: "start" | "end" | "before" | "after";
|
|
@@ -3085,9 +3128,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3085
3128
|
}>;
|
|
3086
3129
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
3087
3130
|
input: {
|
|
3131
|
+
[x: string]: unknown;
|
|
3132
|
+
classId: string;
|
|
3088
3133
|
id: string;
|
|
3089
3134
|
name: string;
|
|
3090
|
-
classId: string;
|
|
3091
3135
|
color?: string | undefined;
|
|
3092
3136
|
};
|
|
3093
3137
|
output: {
|
|
@@ -3101,8 +3145,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3101
3145
|
}>;
|
|
3102
3146
|
reOrder: import("@trpc/server").TRPCMutationProcedure<{
|
|
3103
3147
|
input: {
|
|
3104
|
-
|
|
3148
|
+
[x: string]: unknown;
|
|
3105
3149
|
classId: string;
|
|
3150
|
+
id: string;
|
|
3106
3151
|
order: number;
|
|
3107
3152
|
};
|
|
3108
3153
|
output: {
|
|
@@ -3112,8 +3157,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3112
3157
|
}>;
|
|
3113
3158
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
3114
3159
|
input: {
|
|
3115
|
-
|
|
3160
|
+
[x: string]: unknown;
|
|
3116
3161
|
classId: string;
|
|
3162
|
+
id: string;
|
|
3117
3163
|
};
|
|
3118
3164
|
output: {
|
|
3119
3165
|
id: string;
|
|
@@ -3140,6 +3186,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3140
3186
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3141
3187
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
3142
3188
|
input: {
|
|
3189
|
+
[x: string]: unknown;
|
|
3143
3190
|
classId: string;
|
|
3144
3191
|
eventId?: string | undefined;
|
|
3145
3192
|
};
|
|
@@ -3609,6 +3656,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3609
3656
|
};
|
|
3610
3657
|
meta: object;
|
|
3611
3658
|
}>;
|
|
3659
|
+
requestPasswordReset: import("@trpc/server").TRPCMutationProcedure<{
|
|
3660
|
+
input: {
|
|
3661
|
+
email: string;
|
|
3662
|
+
};
|
|
3663
|
+
output: {
|
|
3664
|
+
success: boolean;
|
|
3665
|
+
};
|
|
3666
|
+
meta: object;
|
|
3667
|
+
}>;
|
|
3668
|
+
resetPassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
3669
|
+
input: {
|
|
3670
|
+
password: string;
|
|
3671
|
+
confirmPassword: string;
|
|
3672
|
+
token: string;
|
|
3673
|
+
};
|
|
3674
|
+
output: {
|
|
3675
|
+
success: boolean;
|
|
3676
|
+
};
|
|
3677
|
+
meta: object;
|
|
3678
|
+
}>;
|
|
3612
3679
|
}>>;
|
|
3613
3680
|
agenda: import("@trpc/server").TRPCBuiltRouter<{
|
|
3614
3681
|
ctx: import("../trpc.js").Context;
|
|
@@ -4177,9 +4244,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4177
4244
|
title: string;
|
|
4178
4245
|
content: string;
|
|
4179
4246
|
createdAt: Date;
|
|
4247
|
+
read: boolean;
|
|
4180
4248
|
senderId: string | null;
|
|
4181
4249
|
receiverId: string;
|
|
4182
|
-
read: boolean;
|
|
4183
4250
|
})[];
|
|
4184
4251
|
meta: object;
|
|
4185
4252
|
}>;
|
|
@@ -4199,9 +4266,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4199
4266
|
title: string;
|
|
4200
4267
|
content: string;
|
|
4201
4268
|
createdAt: Date;
|
|
4269
|
+
read: boolean;
|
|
4202
4270
|
senderId: string | null;
|
|
4203
4271
|
receiverId: string;
|
|
4204
|
-
read: boolean;
|
|
4205
4272
|
}) | null;
|
|
4206
4273
|
meta: object;
|
|
4207
4274
|
}>;
|
|
@@ -4216,9 +4283,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4216
4283
|
title: string;
|
|
4217
4284
|
content: string;
|
|
4218
4285
|
createdAt: Date;
|
|
4286
|
+
read: boolean;
|
|
4219
4287
|
senderId: string | null;
|
|
4220
4288
|
receiverId: string;
|
|
4221
|
-
read: boolean;
|
|
4222
4289
|
};
|
|
4223
4290
|
meta: object;
|
|
4224
4291
|
}>;
|
|
@@ -4240,9 +4307,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4240
4307
|
title: string;
|
|
4241
4308
|
content: string;
|
|
4242
4309
|
createdAt: Date;
|
|
4310
|
+
read: boolean;
|
|
4243
4311
|
senderId: string | null;
|
|
4244
4312
|
receiverId: string;
|
|
4245
|
-
read: boolean;
|
|
4246
4313
|
};
|
|
4247
4314
|
meta: object;
|
|
4248
4315
|
}>;
|
|
@@ -4303,6 +4370,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4303
4370
|
} | null;
|
|
4304
4371
|
};
|
|
4305
4372
|
} & {
|
|
4373
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
4374
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4306
4375
|
id: string;
|
|
4307
4376
|
content: string;
|
|
4308
4377
|
createdAt: Date;
|
|
@@ -4426,6 +4495,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4426
4495
|
name: string;
|
|
4427
4496
|
type: string;
|
|
4428
4497
|
}[];
|
|
4498
|
+
meta: Record<string, any>;
|
|
4429
4499
|
mentions: {
|
|
4430
4500
|
user: {
|
|
4431
4501
|
id: string;
|
|
@@ -4688,6 +4758,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4688
4758
|
} | null;
|
|
4689
4759
|
};
|
|
4690
4760
|
} & {
|
|
4761
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
4762
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4691
4763
|
id: string;
|
|
4692
4764
|
content: string;
|
|
4693
4765
|
createdAt: Date;
|
|
@@ -4732,6 +4804,59 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4732
4804
|
meta: object;
|
|
4733
4805
|
}>;
|
|
4734
4806
|
}>>;
|
|
4807
|
+
newtonChat: import("@trpc/server").TRPCBuiltRouter<{
|
|
4808
|
+
ctx: import("../trpc.js").Context;
|
|
4809
|
+
meta: object;
|
|
4810
|
+
errorShape: {
|
|
4811
|
+
data: {
|
|
4812
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
4813
|
+
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
4814
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
4815
|
+
httpStatus: number;
|
|
4816
|
+
path?: string;
|
|
4817
|
+
stack?: string;
|
|
4818
|
+
};
|
|
4819
|
+
message: string;
|
|
4820
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4821
|
+
};
|
|
4822
|
+
transformer: false;
|
|
4823
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4824
|
+
getTutorConversation: import("@trpc/server").TRPCQueryProcedure<{
|
|
4825
|
+
input: {
|
|
4826
|
+
classId: string;
|
|
4827
|
+
assignmentId: string;
|
|
4828
|
+
};
|
|
4829
|
+
output: {
|
|
4830
|
+
conversationId: string;
|
|
4831
|
+
newtonChatId: string;
|
|
4832
|
+
};
|
|
4833
|
+
meta: object;
|
|
4834
|
+
}>;
|
|
4835
|
+
postToNewtonChat: import("@trpc/server").TRPCMutationProcedure<{
|
|
4836
|
+
input: {
|
|
4837
|
+
content: string;
|
|
4838
|
+
newtonChatId: string;
|
|
4839
|
+
mentionedUserIds?: string[] | undefined;
|
|
4840
|
+
};
|
|
4841
|
+
output: {
|
|
4842
|
+
id: string;
|
|
4843
|
+
content: string;
|
|
4844
|
+
senderId: string;
|
|
4845
|
+
conversationId: string;
|
|
4846
|
+
createdAt: Date;
|
|
4847
|
+
sender: {
|
|
4848
|
+
id: string;
|
|
4849
|
+
username: string;
|
|
4850
|
+
profile: {
|
|
4851
|
+
displayName: string | null;
|
|
4852
|
+
profilePicture: string | null;
|
|
4853
|
+
} | null;
|
|
4854
|
+
};
|
|
4855
|
+
mentionedUserIds: string[];
|
|
4856
|
+
};
|
|
4857
|
+
meta: object;
|
|
4858
|
+
}>;
|
|
4859
|
+
}>>;
|
|
4735
4860
|
marketing: import("@trpc/server").TRPCBuiltRouter<{
|
|
4736
4861
|
ctx: import("../trpc.js").Context;
|
|
4737
4862
|
meta: object;
|
|
@@ -4778,9 +4903,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4778
4903
|
};
|
|
4779
4904
|
output: {
|
|
4780
4905
|
type: string;
|
|
4906
|
+
status: string;
|
|
4781
4907
|
id: string;
|
|
4782
4908
|
name: string;
|
|
4783
|
-
status: string;
|
|
4784
4909
|
website: string | null;
|
|
4785
4910
|
submittedAt: Date | null;
|
|
4786
4911
|
address: string;
|
|
@@ -4842,15 +4967,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4842
4967
|
syllabus: string | null;
|
|
4843
4968
|
} | null;
|
|
4844
4969
|
questions: {
|
|
4970
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4845
4971
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4846
4972
|
id: string;
|
|
4847
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4848
4973
|
createdAt: Date;
|
|
4849
4974
|
order: number | null;
|
|
4850
4975
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4851
4976
|
updatedAt: Date;
|
|
4852
|
-
points: number;
|
|
4853
4977
|
question: string;
|
|
4978
|
+
points: number;
|
|
4854
4979
|
worksheetId: string;
|
|
4855
4980
|
answer: string;
|
|
4856
4981
|
}[];
|
|
@@ -4863,6 +4988,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4863
4988
|
};
|
|
4864
4989
|
meta: object;
|
|
4865
4990
|
}>;
|
|
4991
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
4992
|
+
input: {
|
|
4993
|
+
[x: string]: unknown;
|
|
4994
|
+
classId: string;
|
|
4995
|
+
id: string;
|
|
4996
|
+
};
|
|
4997
|
+
output: boolean;
|
|
4998
|
+
meta: object;
|
|
4999
|
+
}>;
|
|
4866
5000
|
listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
|
|
4867
5001
|
input: {
|
|
4868
5002
|
classId: string;
|
|
@@ -4932,15 +5066,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4932
5066
|
points?: number | undefined;
|
|
4933
5067
|
};
|
|
4934
5068
|
output: {
|
|
5069
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4935
5070
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4936
5071
|
id: string;
|
|
4937
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4938
5072
|
createdAt: Date;
|
|
4939
5073
|
order: number | null;
|
|
4940
5074
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4941
5075
|
updatedAt: Date;
|
|
4942
|
-
points: number;
|
|
4943
5076
|
question: string;
|
|
5077
|
+
points: number;
|
|
4944
5078
|
worksheetId: string;
|
|
4945
5079
|
answer: string;
|
|
4946
5080
|
};
|
|
@@ -4948,10 +5082,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4948
5082
|
}>;
|
|
4949
5083
|
reorderQuestions: import("@trpc/server").TRPCMutationProcedure<{
|
|
4950
5084
|
input: {
|
|
5085
|
+
worksheetId: string;
|
|
4951
5086
|
movedId: string;
|
|
4952
5087
|
position: "before" | "after";
|
|
4953
5088
|
targetId: string;
|
|
4954
|
-
worksheetId: string;
|
|
4955
5089
|
};
|
|
4956
5090
|
output: {
|
|
4957
5091
|
id: string;
|
|
@@ -4960,25 +5094,25 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4960
5094
|
}>;
|
|
4961
5095
|
updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
4962
5096
|
input: {
|
|
4963
|
-
worksheetId: string;
|
|
4964
5097
|
questionId: string;
|
|
4965
|
-
|
|
5098
|
+
worksheetId: string;
|
|
4966
5099
|
options?: any;
|
|
5100
|
+
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
4967
5101
|
markScheme?: any;
|
|
4968
|
-
points?: number | undefined;
|
|
4969
5102
|
question?: string | undefined;
|
|
5103
|
+
points?: number | undefined;
|
|
4970
5104
|
answer?: string | undefined;
|
|
4971
5105
|
};
|
|
4972
5106
|
output: {
|
|
5107
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4973
5108
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4974
5109
|
id: string;
|
|
4975
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4976
5110
|
createdAt: Date;
|
|
4977
5111
|
order: number | null;
|
|
4978
5112
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4979
5113
|
updatedAt: Date;
|
|
4980
|
-
points: number;
|
|
4981
5114
|
question: string;
|
|
5115
|
+
points: number;
|
|
4982
5116
|
worksheetId: string;
|
|
4983
5117
|
answer: string;
|
|
4984
5118
|
};
|
|
@@ -4986,19 +5120,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4986
5120
|
}>;
|
|
4987
5121
|
deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
4988
5122
|
input: {
|
|
4989
|
-
worksheetId: string;
|
|
4990
5123
|
questionId: string;
|
|
5124
|
+
worksheetId: string;
|
|
4991
5125
|
};
|
|
4992
5126
|
output: {
|
|
5127
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4993
5128
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
4994
5129
|
id: string;
|
|
4995
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4996
5130
|
createdAt: Date;
|
|
4997
5131
|
order: number | null;
|
|
4998
5132
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4999
5133
|
updatedAt: Date;
|
|
5000
|
-
points: number;
|
|
5001
5134
|
question: string;
|
|
5135
|
+
points: number;
|
|
5002
5136
|
worksheetId: string;
|
|
5003
5137
|
answer: string;
|
|
5004
5138
|
};
|
|
@@ -5015,17 +5149,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5015
5149
|
id: string;
|
|
5016
5150
|
}[];
|
|
5017
5151
|
} & {
|
|
5152
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5018
5153
|
id: string;
|
|
5019
5154
|
feedback: string | null;
|
|
5020
5155
|
studentId: string;
|
|
5021
5156
|
createdAt: Date;
|
|
5022
5157
|
updatedAt: Date | null;
|
|
5023
|
-
points: number;
|
|
5024
5158
|
questionId: string;
|
|
5025
5159
|
response: string;
|
|
5026
|
-
studentWorksheetResponseId: string | null;
|
|
5027
5160
|
isCorrect: boolean;
|
|
5028
5161
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5162
|
+
points: number;
|
|
5163
|
+
studentWorksheetResponseId: string | null;
|
|
5029
5164
|
})[];
|
|
5030
5165
|
} & {
|
|
5031
5166
|
id: string;
|
|
@@ -5042,22 +5177,23 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5042
5177
|
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
5043
5178
|
input: {
|
|
5044
5179
|
questionId: string;
|
|
5045
|
-
worksheetResponseId: string;
|
|
5046
5180
|
response: string;
|
|
5181
|
+
worksheetResponseId: string;
|
|
5047
5182
|
};
|
|
5048
5183
|
output: ({
|
|
5049
5184
|
responses: {
|
|
5185
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5050
5186
|
id: string;
|
|
5051
5187
|
feedback: string | null;
|
|
5052
5188
|
studentId: string;
|
|
5053
5189
|
createdAt: Date;
|
|
5054
5190
|
updatedAt: Date | null;
|
|
5055
|
-
points: number;
|
|
5056
5191
|
questionId: string;
|
|
5057
5192
|
response: string;
|
|
5058
|
-
studentWorksheetResponseId: string | null;
|
|
5059
5193
|
isCorrect: boolean;
|
|
5060
5194
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5195
|
+
points: number;
|
|
5196
|
+
studentWorksheetResponseId: string | null;
|
|
5061
5197
|
}[];
|
|
5062
5198
|
} & {
|
|
5063
5199
|
id: string;
|
|
@@ -5071,46 +5207,37 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5071
5207
|
}) | null;
|
|
5072
5208
|
meta: object;
|
|
5073
5209
|
}>;
|
|
5074
|
-
|
|
5210
|
+
cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
|
|
5075
5211
|
input: {
|
|
5212
|
+
questionId: string;
|
|
5076
5213
|
worksheetResponseId: string;
|
|
5077
5214
|
};
|
|
5078
5215
|
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
|
-
} & {
|
|
5216
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5093
5217
|
id: string;
|
|
5094
|
-
|
|
5218
|
+
feedback: string | null;
|
|
5095
5219
|
studentId: string;
|
|
5096
5220
|
createdAt: Date;
|
|
5097
|
-
updatedAt: Date;
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5221
|
+
updatedAt: Date | null;
|
|
5222
|
+
questionId: string;
|
|
5223
|
+
response: string;
|
|
5224
|
+
isCorrect: boolean;
|
|
5225
|
+
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5226
|
+
points: number;
|
|
5227
|
+
studentWorksheetResponseId: string | null;
|
|
5101
5228
|
};
|
|
5102
5229
|
meta: object;
|
|
5103
5230
|
}>;
|
|
5104
5231
|
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
5105
5232
|
input: {
|
|
5106
5233
|
questionId: string;
|
|
5107
|
-
studentWorksheetResponseId: string;
|
|
5108
5234
|
isCorrect: boolean;
|
|
5235
|
+
studentWorksheetResponseId: string;
|
|
5109
5236
|
feedback?: string | undefined;
|
|
5110
|
-
points?: number | undefined;
|
|
5111
5237
|
response?: string | undefined;
|
|
5112
|
-
responseId?: string | undefined;
|
|
5113
5238
|
markschemeState?: any;
|
|
5239
|
+
points?: number | undefined;
|
|
5240
|
+
responseId?: string | undefined;
|
|
5114
5241
|
};
|
|
5115
5242
|
output: any;
|
|
5116
5243
|
meta: object;
|
|
@@ -5121,6 +5248,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5121
5248
|
responseId: string;
|
|
5122
5249
|
};
|
|
5123
5250
|
output: {
|
|
5251
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5124
5252
|
id: string;
|
|
5125
5253
|
content: string;
|
|
5126
5254
|
createdAt: Date;
|
|
@@ -5198,6 +5326,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5198
5326
|
} | null;
|
|
5199
5327
|
};
|
|
5200
5328
|
} & {
|
|
5329
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5201
5330
|
id: string;
|
|
5202
5331
|
content: string;
|
|
5203
5332
|
createdAt: Date;
|
|
@@ -5215,6 +5344,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5215
5344
|
parentCommentId: string;
|
|
5216
5345
|
};
|
|
5217
5346
|
output: {
|
|
5347
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5218
5348
|
id: string;
|
|
5219
5349
|
content: string;
|
|
5220
5350
|
createdAt: Date;
|
|
@@ -5579,6 +5709,16 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5579
5709
|
};
|
|
5580
5710
|
meta: object;
|
|
5581
5711
|
}>;
|
|
5712
|
+
leaveClass: import("@trpc/server").TRPCMutationProcedure<{
|
|
5713
|
+
input: {
|
|
5714
|
+
classId: string;
|
|
5715
|
+
};
|
|
5716
|
+
output: {
|
|
5717
|
+
success: boolean;
|
|
5718
|
+
leftClassId: string;
|
|
5719
|
+
};
|
|
5720
|
+
meta: object;
|
|
5721
|
+
}>;
|
|
5582
5722
|
join: import("@trpc/server").TRPCMutationProcedure<{
|
|
5583
5723
|
input: {
|
|
5584
5724
|
classCode: string;
|
|
@@ -6200,6 +6340,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6200
6340
|
}>;
|
|
6201
6341
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6202
6342
|
input: {
|
|
6343
|
+
[x: string]: unknown;
|
|
6344
|
+
classId: string;
|
|
6203
6345
|
id: string;
|
|
6204
6346
|
data: {
|
|
6205
6347
|
files?: {
|
|
@@ -6238,6 +6380,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6238
6380
|
}>;
|
|
6239
6381
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
6240
6382
|
input: {
|
|
6383
|
+
[x: string]: unknown;
|
|
6384
|
+
classId: string;
|
|
6241
6385
|
id: string;
|
|
6242
6386
|
};
|
|
6243
6387
|
output: {
|
|
@@ -6296,6 +6440,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6296
6440
|
} | null;
|
|
6297
6441
|
};
|
|
6298
6442
|
} & {
|
|
6443
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6299
6444
|
id: string;
|
|
6300
6445
|
content: string;
|
|
6301
6446
|
createdAt: Date;
|
|
@@ -6325,6 +6470,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6325
6470
|
} | null;
|
|
6326
6471
|
};
|
|
6327
6472
|
} & {
|
|
6473
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6328
6474
|
id: string;
|
|
6329
6475
|
content: string;
|
|
6330
6476
|
createdAt: Date;
|
|
@@ -6374,6 +6520,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6374
6520
|
} | null;
|
|
6375
6521
|
};
|
|
6376
6522
|
} & {
|
|
6523
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6377
6524
|
id: string;
|
|
6378
6525
|
content: string;
|
|
6379
6526
|
createdAt: Date;
|
|
@@ -6384,6 +6531,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6384
6531
|
studentQuestionProgressId: string | null;
|
|
6385
6532
|
})[];
|
|
6386
6533
|
} & {
|
|
6534
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6387
6535
|
id: string;
|
|
6388
6536
|
content: string;
|
|
6389
6537
|
createdAt: Date;
|
|
@@ -6546,6 +6694,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6546
6694
|
} | null;
|
|
6547
6695
|
meta: object;
|
|
6548
6696
|
}>;
|
|
6697
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
6698
|
+
input: {
|
|
6699
|
+
[x: string]: unknown;
|
|
6700
|
+
classId: string;
|
|
6701
|
+
id: string;
|
|
6702
|
+
};
|
|
6703
|
+
output: boolean;
|
|
6704
|
+
meta: object;
|
|
6705
|
+
}>;
|
|
6549
6706
|
move: import("@trpc/server").TRPCMutationProcedure<{
|
|
6550
6707
|
input: {
|
|
6551
6708
|
[x: string]: unknown;
|
|
@@ -6583,11 +6740,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6583
6740
|
}>;
|
|
6584
6741
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
6585
6742
|
input: {
|
|
6743
|
+
[x: string]: unknown;
|
|
6744
|
+
classId: string;
|
|
6586
6745
|
title: string;
|
|
6587
6746
|
dueDate: string;
|
|
6588
|
-
classId: string;
|
|
6589
6747
|
instructions: string;
|
|
6590
6748
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
6749
|
+
id?: string | undefined;
|
|
6591
6750
|
files?: {
|
|
6592
6751
|
type: string;
|
|
6593
6752
|
name: string;
|
|
@@ -6640,8 +6799,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6640
6799
|
}>;
|
|
6641
6800
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6642
6801
|
input: {
|
|
6643
|
-
|
|
6802
|
+
[x: string]: unknown;
|
|
6644
6803
|
classId: string;
|
|
6804
|
+
id: string;
|
|
6645
6805
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
6646
6806
|
files?: {
|
|
6647
6807
|
type: string;
|
|
@@ -6760,8 +6920,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6760
6920
|
}>;
|
|
6761
6921
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
6762
6922
|
input: {
|
|
6763
|
-
|
|
6923
|
+
[x: string]: unknown;
|
|
6764
6924
|
classId: string;
|
|
6925
|
+
id: string;
|
|
6765
6926
|
};
|
|
6766
6927
|
output: {
|
|
6767
6928
|
sections: {
|
|
@@ -7506,9 +7667,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7506
7667
|
return?: boolean | undefined;
|
|
7507
7668
|
rubricGrades?: {
|
|
7508
7669
|
comments: string;
|
|
7670
|
+
points: number;
|
|
7509
7671
|
criteriaId: string;
|
|
7510
7672
|
selectedLevelId: string;
|
|
7511
|
-
points: number;
|
|
7512
7673
|
}[] | undefined;
|
|
7513
7674
|
};
|
|
7514
7675
|
output: {
|
|
@@ -8338,10 +8499,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8338
8499
|
};
|
|
8339
8500
|
transformer: false;
|
|
8340
8501
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8502
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
8503
|
+
input: {
|
|
8504
|
+
[x: string]: unknown;
|
|
8505
|
+
classId: string;
|
|
8506
|
+
id: string;
|
|
8507
|
+
};
|
|
8508
|
+
output: boolean;
|
|
8509
|
+
meta: object;
|
|
8510
|
+
}>;
|
|
8341
8511
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8342
8512
|
input: {
|
|
8343
|
-
|
|
8513
|
+
[x: string]: unknown;
|
|
8344
8514
|
classId: string;
|
|
8515
|
+
name: string;
|
|
8516
|
+
id?: string | undefined;
|
|
8345
8517
|
color?: string | undefined;
|
|
8346
8518
|
};
|
|
8347
8519
|
output: {
|
|
@@ -8355,6 +8527,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8355
8527
|
}>;
|
|
8356
8528
|
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
8357
8529
|
input: {
|
|
8530
|
+
[x: string]: unknown;
|
|
8358
8531
|
classId: string;
|
|
8359
8532
|
movedId: string;
|
|
8360
8533
|
position: "start" | "end" | "before" | "after";
|
|
@@ -8371,9 +8544,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8371
8544
|
}>;
|
|
8372
8545
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
8373
8546
|
input: {
|
|
8547
|
+
[x: string]: unknown;
|
|
8548
|
+
classId: string;
|
|
8374
8549
|
id: string;
|
|
8375
8550
|
name: string;
|
|
8376
|
-
classId: string;
|
|
8377
8551
|
color?: string | undefined;
|
|
8378
8552
|
};
|
|
8379
8553
|
output: {
|
|
@@ -8387,8 +8561,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8387
8561
|
}>;
|
|
8388
8562
|
reOrder: import("@trpc/server").TRPCMutationProcedure<{
|
|
8389
8563
|
input: {
|
|
8390
|
-
|
|
8564
|
+
[x: string]: unknown;
|
|
8391
8565
|
classId: string;
|
|
8566
|
+
id: string;
|
|
8392
8567
|
order: number;
|
|
8393
8568
|
};
|
|
8394
8569
|
output: {
|
|
@@ -8398,8 +8573,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8398
8573
|
}>;
|
|
8399
8574
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
8400
8575
|
input: {
|
|
8401
|
-
|
|
8576
|
+
[x: string]: unknown;
|
|
8402
8577
|
classId: string;
|
|
8578
|
+
id: string;
|
|
8403
8579
|
};
|
|
8404
8580
|
output: {
|
|
8405
8581
|
id: string;
|
|
@@ -8426,6 +8602,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8426
8602
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8427
8603
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
8428
8604
|
input: {
|
|
8605
|
+
[x: string]: unknown;
|
|
8429
8606
|
classId: string;
|
|
8430
8607
|
eventId?: string | undefined;
|
|
8431
8608
|
};
|
|
@@ -8895,6 +9072,26 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8895
9072
|
};
|
|
8896
9073
|
meta: object;
|
|
8897
9074
|
}>;
|
|
9075
|
+
requestPasswordReset: import("@trpc/server").TRPCMutationProcedure<{
|
|
9076
|
+
input: {
|
|
9077
|
+
email: string;
|
|
9078
|
+
};
|
|
9079
|
+
output: {
|
|
9080
|
+
success: boolean;
|
|
9081
|
+
};
|
|
9082
|
+
meta: object;
|
|
9083
|
+
}>;
|
|
9084
|
+
resetPassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
9085
|
+
input: {
|
|
9086
|
+
password: string;
|
|
9087
|
+
confirmPassword: string;
|
|
9088
|
+
token: string;
|
|
9089
|
+
};
|
|
9090
|
+
output: {
|
|
9091
|
+
success: boolean;
|
|
9092
|
+
};
|
|
9093
|
+
meta: object;
|
|
9094
|
+
}>;
|
|
8898
9095
|
}>>;
|
|
8899
9096
|
agenda: import("@trpc/server").TRPCBuiltRouter<{
|
|
8900
9097
|
ctx: import("../trpc.js").Context;
|
|
@@ -9463,9 +9660,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9463
9660
|
title: string;
|
|
9464
9661
|
content: string;
|
|
9465
9662
|
createdAt: Date;
|
|
9663
|
+
read: boolean;
|
|
9466
9664
|
senderId: string | null;
|
|
9467
9665
|
receiverId: string;
|
|
9468
|
-
read: boolean;
|
|
9469
9666
|
})[];
|
|
9470
9667
|
meta: object;
|
|
9471
9668
|
}>;
|
|
@@ -9485,9 +9682,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9485
9682
|
title: string;
|
|
9486
9683
|
content: string;
|
|
9487
9684
|
createdAt: Date;
|
|
9685
|
+
read: boolean;
|
|
9488
9686
|
senderId: string | null;
|
|
9489
9687
|
receiverId: string;
|
|
9490
|
-
read: boolean;
|
|
9491
9688
|
}) | null;
|
|
9492
9689
|
meta: object;
|
|
9493
9690
|
}>;
|
|
@@ -9502,9 +9699,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9502
9699
|
title: string;
|
|
9503
9700
|
content: string;
|
|
9504
9701
|
createdAt: Date;
|
|
9702
|
+
read: boolean;
|
|
9505
9703
|
senderId: string | null;
|
|
9506
9704
|
receiverId: string;
|
|
9507
|
-
read: boolean;
|
|
9508
9705
|
};
|
|
9509
9706
|
meta: object;
|
|
9510
9707
|
}>;
|
|
@@ -9526,9 +9723,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9526
9723
|
title: string;
|
|
9527
9724
|
content: string;
|
|
9528
9725
|
createdAt: Date;
|
|
9726
|
+
read: boolean;
|
|
9529
9727
|
senderId: string | null;
|
|
9530
9728
|
receiverId: string;
|
|
9531
|
-
read: boolean;
|
|
9532
9729
|
};
|
|
9533
9730
|
meta: object;
|
|
9534
9731
|
}>;
|
|
@@ -9589,6 +9786,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9589
9786
|
} | null;
|
|
9590
9787
|
};
|
|
9591
9788
|
} & {
|
|
9789
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
9790
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
9592
9791
|
id: string;
|
|
9593
9792
|
content: string;
|
|
9594
9793
|
createdAt: Date;
|
|
@@ -9712,6 +9911,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9712
9911
|
name: string;
|
|
9713
9912
|
type: string;
|
|
9714
9913
|
}[];
|
|
9914
|
+
meta: Record<string, any>;
|
|
9715
9915
|
mentions: {
|
|
9716
9916
|
user: {
|
|
9717
9917
|
id: string;
|
|
@@ -9974,6 +10174,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9974
10174
|
} | null;
|
|
9975
10175
|
};
|
|
9976
10176
|
} & {
|
|
10177
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10178
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
9977
10179
|
id: string;
|
|
9978
10180
|
content: string;
|
|
9979
10181
|
createdAt: Date;
|
|
@@ -10018,6 +10220,59 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10018
10220
|
meta: object;
|
|
10019
10221
|
}>;
|
|
10020
10222
|
}>>;
|
|
10223
|
+
newtonChat: import("@trpc/server").TRPCBuiltRouter<{
|
|
10224
|
+
ctx: import("../trpc.js").Context;
|
|
10225
|
+
meta: object;
|
|
10226
|
+
errorShape: {
|
|
10227
|
+
data: {
|
|
10228
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
10229
|
+
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
10230
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
10231
|
+
httpStatus: number;
|
|
10232
|
+
path?: string;
|
|
10233
|
+
stack?: string;
|
|
10234
|
+
};
|
|
10235
|
+
message: string;
|
|
10236
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
10237
|
+
};
|
|
10238
|
+
transformer: false;
|
|
10239
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
10240
|
+
getTutorConversation: import("@trpc/server").TRPCQueryProcedure<{
|
|
10241
|
+
input: {
|
|
10242
|
+
classId: string;
|
|
10243
|
+
assignmentId: string;
|
|
10244
|
+
};
|
|
10245
|
+
output: {
|
|
10246
|
+
conversationId: string;
|
|
10247
|
+
newtonChatId: string;
|
|
10248
|
+
};
|
|
10249
|
+
meta: object;
|
|
10250
|
+
}>;
|
|
10251
|
+
postToNewtonChat: import("@trpc/server").TRPCMutationProcedure<{
|
|
10252
|
+
input: {
|
|
10253
|
+
content: string;
|
|
10254
|
+
newtonChatId: string;
|
|
10255
|
+
mentionedUserIds?: string[] | undefined;
|
|
10256
|
+
};
|
|
10257
|
+
output: {
|
|
10258
|
+
id: string;
|
|
10259
|
+
content: string;
|
|
10260
|
+
senderId: string;
|
|
10261
|
+
conversationId: string;
|
|
10262
|
+
createdAt: Date;
|
|
10263
|
+
sender: {
|
|
10264
|
+
id: string;
|
|
10265
|
+
username: string;
|
|
10266
|
+
profile: {
|
|
10267
|
+
displayName: string | null;
|
|
10268
|
+
profilePicture: string | null;
|
|
10269
|
+
} | null;
|
|
10270
|
+
};
|
|
10271
|
+
mentionedUserIds: string[];
|
|
10272
|
+
};
|
|
10273
|
+
meta: object;
|
|
10274
|
+
}>;
|
|
10275
|
+
}>>;
|
|
10021
10276
|
marketing: import("@trpc/server").TRPCBuiltRouter<{
|
|
10022
10277
|
ctx: import("../trpc.js").Context;
|
|
10023
10278
|
meta: object;
|
|
@@ -10064,9 +10319,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10064
10319
|
};
|
|
10065
10320
|
output: {
|
|
10066
10321
|
type: string;
|
|
10322
|
+
status: string;
|
|
10067
10323
|
id: string;
|
|
10068
10324
|
name: string;
|
|
10069
|
-
status: string;
|
|
10070
10325
|
website: string | null;
|
|
10071
10326
|
submittedAt: Date | null;
|
|
10072
10327
|
address: string;
|
|
@@ -10128,15 +10383,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10128
10383
|
syllabus: string | null;
|
|
10129
10384
|
} | null;
|
|
10130
10385
|
questions: {
|
|
10386
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10131
10387
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10132
10388
|
id: string;
|
|
10133
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10134
10389
|
createdAt: Date;
|
|
10135
10390
|
order: number | null;
|
|
10136
10391
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10137
10392
|
updatedAt: Date;
|
|
10138
|
-
points: number;
|
|
10139
10393
|
question: string;
|
|
10394
|
+
points: number;
|
|
10140
10395
|
worksheetId: string;
|
|
10141
10396
|
answer: string;
|
|
10142
10397
|
}[];
|
|
@@ -10149,6 +10404,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10149
10404
|
};
|
|
10150
10405
|
meta: object;
|
|
10151
10406
|
}>;
|
|
10407
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
10408
|
+
input: {
|
|
10409
|
+
[x: string]: unknown;
|
|
10410
|
+
classId: string;
|
|
10411
|
+
id: string;
|
|
10412
|
+
};
|
|
10413
|
+
output: boolean;
|
|
10414
|
+
meta: object;
|
|
10415
|
+
}>;
|
|
10152
10416
|
listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
|
|
10153
10417
|
input: {
|
|
10154
10418
|
classId: string;
|
|
@@ -10218,15 +10482,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10218
10482
|
points?: number | undefined;
|
|
10219
10483
|
};
|
|
10220
10484
|
output: {
|
|
10485
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10221
10486
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10222
10487
|
id: string;
|
|
10223
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10224
10488
|
createdAt: Date;
|
|
10225
10489
|
order: number | null;
|
|
10226
10490
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10227
10491
|
updatedAt: Date;
|
|
10228
|
-
points: number;
|
|
10229
10492
|
question: string;
|
|
10493
|
+
points: number;
|
|
10230
10494
|
worksheetId: string;
|
|
10231
10495
|
answer: string;
|
|
10232
10496
|
};
|
|
@@ -10234,10 +10498,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10234
10498
|
}>;
|
|
10235
10499
|
reorderQuestions: import("@trpc/server").TRPCMutationProcedure<{
|
|
10236
10500
|
input: {
|
|
10501
|
+
worksheetId: string;
|
|
10237
10502
|
movedId: string;
|
|
10238
10503
|
position: "before" | "after";
|
|
10239
10504
|
targetId: string;
|
|
10240
|
-
worksheetId: string;
|
|
10241
10505
|
};
|
|
10242
10506
|
output: {
|
|
10243
10507
|
id: string;
|
|
@@ -10246,25 +10510,25 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10246
10510
|
}>;
|
|
10247
10511
|
updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
10248
10512
|
input: {
|
|
10249
|
-
worksheetId: string;
|
|
10250
10513
|
questionId: string;
|
|
10251
|
-
|
|
10514
|
+
worksheetId: string;
|
|
10252
10515
|
options?: any;
|
|
10516
|
+
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
10253
10517
|
markScheme?: any;
|
|
10254
|
-
points?: number | undefined;
|
|
10255
10518
|
question?: string | undefined;
|
|
10519
|
+
points?: number | undefined;
|
|
10256
10520
|
answer?: string | undefined;
|
|
10257
10521
|
};
|
|
10258
10522
|
output: {
|
|
10523
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10259
10524
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10260
10525
|
id: string;
|
|
10261
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10262
10526
|
createdAt: Date;
|
|
10263
10527
|
order: number | null;
|
|
10264
10528
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10265
10529
|
updatedAt: Date;
|
|
10266
|
-
points: number;
|
|
10267
10530
|
question: string;
|
|
10531
|
+
points: number;
|
|
10268
10532
|
worksheetId: string;
|
|
10269
10533
|
answer: string;
|
|
10270
10534
|
};
|
|
@@ -10272,19 +10536,19 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10272
10536
|
}>;
|
|
10273
10537
|
deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
10274
10538
|
input: {
|
|
10275
|
-
worksheetId: string;
|
|
10276
10539
|
questionId: string;
|
|
10540
|
+
worksheetId: string;
|
|
10277
10541
|
};
|
|
10278
10542
|
output: {
|
|
10543
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10279
10544
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10280
10545
|
id: string;
|
|
10281
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10282
10546
|
createdAt: Date;
|
|
10283
10547
|
order: number | null;
|
|
10284
10548
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10285
10549
|
updatedAt: Date;
|
|
10286
|
-
points: number;
|
|
10287
10550
|
question: string;
|
|
10551
|
+
points: number;
|
|
10288
10552
|
worksheetId: string;
|
|
10289
10553
|
answer: string;
|
|
10290
10554
|
};
|
|
@@ -10301,17 +10565,18 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10301
10565
|
id: string;
|
|
10302
10566
|
}[];
|
|
10303
10567
|
} & {
|
|
10568
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10304
10569
|
id: string;
|
|
10305
10570
|
feedback: string | null;
|
|
10306
10571
|
studentId: string;
|
|
10307
10572
|
createdAt: Date;
|
|
10308
10573
|
updatedAt: Date | null;
|
|
10309
|
-
points: number;
|
|
10310
10574
|
questionId: string;
|
|
10311
10575
|
response: string;
|
|
10312
|
-
studentWorksheetResponseId: string | null;
|
|
10313
10576
|
isCorrect: boolean;
|
|
10314
10577
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10578
|
+
points: number;
|
|
10579
|
+
studentWorksheetResponseId: string | null;
|
|
10315
10580
|
})[];
|
|
10316
10581
|
} & {
|
|
10317
10582
|
id: string;
|
|
@@ -10328,22 +10593,23 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10328
10593
|
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
10329
10594
|
input: {
|
|
10330
10595
|
questionId: string;
|
|
10331
|
-
worksheetResponseId: string;
|
|
10332
10596
|
response: string;
|
|
10597
|
+
worksheetResponseId: string;
|
|
10333
10598
|
};
|
|
10334
10599
|
output: ({
|
|
10335
10600
|
responses: {
|
|
10601
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10336
10602
|
id: string;
|
|
10337
10603
|
feedback: string | null;
|
|
10338
10604
|
studentId: string;
|
|
10339
10605
|
createdAt: Date;
|
|
10340
10606
|
updatedAt: Date | null;
|
|
10341
|
-
points: number;
|
|
10342
10607
|
questionId: string;
|
|
10343
10608
|
response: string;
|
|
10344
|
-
studentWorksheetResponseId: string | null;
|
|
10345
10609
|
isCorrect: boolean;
|
|
10346
10610
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10611
|
+
points: number;
|
|
10612
|
+
studentWorksheetResponseId: string | null;
|
|
10347
10613
|
}[];
|
|
10348
10614
|
} & {
|
|
10349
10615
|
id: string;
|
|
@@ -10357,46 +10623,37 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10357
10623
|
}) | null;
|
|
10358
10624
|
meta: object;
|
|
10359
10625
|
}>;
|
|
10360
|
-
|
|
10626
|
+
cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
|
|
10361
10627
|
input: {
|
|
10628
|
+
questionId: string;
|
|
10362
10629
|
worksheetResponseId: string;
|
|
10363
10630
|
};
|
|
10364
10631
|
output: {
|
|
10365
|
-
|
|
10366
|
-
id: string;
|
|
10367
|
-
feedback: string | null;
|
|
10368
|
-
studentId: string;
|
|
10369
|
-
createdAt: Date;
|
|
10370
|
-
updatedAt: Date | null;
|
|
10371
|
-
points: number;
|
|
10372
|
-
questionId: string;
|
|
10373
|
-
response: string;
|
|
10374
|
-
studentWorksheetResponseId: string | null;
|
|
10375
|
-
isCorrect: boolean;
|
|
10376
|
-
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10377
|
-
}[];
|
|
10378
|
-
} & {
|
|
10632
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10379
10633
|
id: string;
|
|
10380
|
-
|
|
10634
|
+
feedback: string | null;
|
|
10381
10635
|
studentId: string;
|
|
10382
10636
|
createdAt: Date;
|
|
10383
|
-
updatedAt: Date;
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10637
|
+
updatedAt: Date | null;
|
|
10638
|
+
questionId: string;
|
|
10639
|
+
response: string;
|
|
10640
|
+
isCorrect: boolean;
|
|
10641
|
+
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10642
|
+
points: number;
|
|
10643
|
+
studentWorksheetResponseId: string | null;
|
|
10387
10644
|
};
|
|
10388
10645
|
meta: object;
|
|
10389
10646
|
}>;
|
|
10390
10647
|
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
10391
10648
|
input: {
|
|
10392
10649
|
questionId: string;
|
|
10393
|
-
studentWorksheetResponseId: string;
|
|
10394
10650
|
isCorrect: boolean;
|
|
10651
|
+
studentWorksheetResponseId: string;
|
|
10395
10652
|
feedback?: string | undefined;
|
|
10396
|
-
points?: number | undefined;
|
|
10397
10653
|
response?: string | undefined;
|
|
10398
|
-
responseId?: string | undefined;
|
|
10399
10654
|
markschemeState?: any;
|
|
10655
|
+
points?: number | undefined;
|
|
10656
|
+
responseId?: string | undefined;
|
|
10400
10657
|
};
|
|
10401
10658
|
output: any;
|
|
10402
10659
|
meta: object;
|
|
@@ -10407,6 +10664,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10407
10664
|
responseId: string;
|
|
10408
10665
|
};
|
|
10409
10666
|
output: {
|
|
10667
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10410
10668
|
id: string;
|
|
10411
10669
|
content: string;
|
|
10412
10670
|
createdAt: Date;
|
|
@@ -10484,6 +10742,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10484
10742
|
} | null;
|
|
10485
10743
|
};
|
|
10486
10744
|
} & {
|
|
10745
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10487
10746
|
id: string;
|
|
10488
10747
|
content: string;
|
|
10489
10748
|
createdAt: Date;
|
|
@@ -10501,6 +10760,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10501
10760
|
parentCommentId: string;
|
|
10502
10761
|
};
|
|
10503
10762
|
output: {
|
|
10763
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10504
10764
|
id: string;
|
|
10505
10765
|
content: string;
|
|
10506
10766
|
createdAt: Date;
|