@studious-lms/server 1.2.45 → 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 +294 -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 +2 -0
- package/dist/routers/comment.d.ts.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/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;
|
|
@@ -5198,6 +5294,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5198
5294
|
} | null;
|
|
5199
5295
|
};
|
|
5200
5296
|
} & {
|
|
5297
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5201
5298
|
id: string;
|
|
5202
5299
|
content: string;
|
|
5203
5300
|
createdAt: Date;
|
|
@@ -5215,6 +5312,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5215
5312
|
parentCommentId: string;
|
|
5216
5313
|
};
|
|
5217
5314
|
output: {
|
|
5315
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
5218
5316
|
id: string;
|
|
5219
5317
|
content: string;
|
|
5220
5318
|
createdAt: Date;
|
|
@@ -5579,6 +5677,16 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5579
5677
|
};
|
|
5580
5678
|
meta: object;
|
|
5581
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
|
+
}>;
|
|
5582
5690
|
join: import("@trpc/server").TRPCMutationProcedure<{
|
|
5583
5691
|
input: {
|
|
5584
5692
|
classCode: string;
|
|
@@ -6200,6 +6308,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6200
6308
|
}>;
|
|
6201
6309
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6202
6310
|
input: {
|
|
6311
|
+
[x: string]: unknown;
|
|
6312
|
+
classId: string;
|
|
6203
6313
|
id: string;
|
|
6204
6314
|
data: {
|
|
6205
6315
|
files?: {
|
|
@@ -6238,6 +6348,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6238
6348
|
}>;
|
|
6239
6349
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
6240
6350
|
input: {
|
|
6351
|
+
[x: string]: unknown;
|
|
6352
|
+
classId: string;
|
|
6241
6353
|
id: string;
|
|
6242
6354
|
};
|
|
6243
6355
|
output: {
|
|
@@ -6296,6 +6408,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6296
6408
|
} | null;
|
|
6297
6409
|
};
|
|
6298
6410
|
} & {
|
|
6411
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6299
6412
|
id: string;
|
|
6300
6413
|
content: string;
|
|
6301
6414
|
createdAt: Date;
|
|
@@ -6325,6 +6438,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6325
6438
|
} | null;
|
|
6326
6439
|
};
|
|
6327
6440
|
} & {
|
|
6441
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6328
6442
|
id: string;
|
|
6329
6443
|
content: string;
|
|
6330
6444
|
createdAt: Date;
|
|
@@ -6374,6 +6488,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6374
6488
|
} | null;
|
|
6375
6489
|
};
|
|
6376
6490
|
} & {
|
|
6491
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6377
6492
|
id: string;
|
|
6378
6493
|
content: string;
|
|
6379
6494
|
createdAt: Date;
|
|
@@ -6384,6 +6499,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6384
6499
|
studentQuestionProgressId: string | null;
|
|
6385
6500
|
})[];
|
|
6386
6501
|
} & {
|
|
6502
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
6387
6503
|
id: string;
|
|
6388
6504
|
content: string;
|
|
6389
6505
|
createdAt: Date;
|
|
@@ -6583,9 +6699,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6583
6699
|
}>;
|
|
6584
6700
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
6585
6701
|
input: {
|
|
6702
|
+
[x: string]: unknown;
|
|
6703
|
+
classId: string;
|
|
6586
6704
|
title: string;
|
|
6587
6705
|
dueDate: string;
|
|
6588
|
-
classId: string;
|
|
6589
6706
|
instructions: string;
|
|
6590
6707
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
6591
6708
|
files?: {
|
|
@@ -6640,8 +6757,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6640
6757
|
}>;
|
|
6641
6758
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6642
6759
|
input: {
|
|
6643
|
-
|
|
6760
|
+
[x: string]: unknown;
|
|
6644
6761
|
classId: string;
|
|
6762
|
+
id: string;
|
|
6645
6763
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
6646
6764
|
files?: {
|
|
6647
6765
|
type: string;
|
|
@@ -6760,8 +6878,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6760
6878
|
}>;
|
|
6761
6879
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
6762
6880
|
input: {
|
|
6763
|
-
|
|
6881
|
+
[x: string]: unknown;
|
|
6764
6882
|
classId: string;
|
|
6883
|
+
id: string;
|
|
6765
6884
|
};
|
|
6766
6885
|
output: {
|
|
6767
6886
|
sections: {
|
|
@@ -7506,9 +7625,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7506
7625
|
return?: boolean | undefined;
|
|
7507
7626
|
rubricGrades?: {
|
|
7508
7627
|
comments: string;
|
|
7628
|
+
points: number;
|
|
7509
7629
|
criteriaId: string;
|
|
7510
7630
|
selectedLevelId: string;
|
|
7511
|
-
points: number;
|
|
7512
7631
|
}[] | undefined;
|
|
7513
7632
|
};
|
|
7514
7633
|
output: {
|
|
@@ -8340,8 +8459,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8340
8459
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8341
8460
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8342
8461
|
input: {
|
|
8343
|
-
|
|
8462
|
+
[x: string]: unknown;
|
|
8344
8463
|
classId: string;
|
|
8464
|
+
name: string;
|
|
8345
8465
|
color?: string | undefined;
|
|
8346
8466
|
};
|
|
8347
8467
|
output: {
|
|
@@ -8355,6 +8475,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8355
8475
|
}>;
|
|
8356
8476
|
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
8357
8477
|
input: {
|
|
8478
|
+
[x: string]: unknown;
|
|
8358
8479
|
classId: string;
|
|
8359
8480
|
movedId: string;
|
|
8360
8481
|
position: "start" | "end" | "before" | "after";
|
|
@@ -8371,9 +8492,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8371
8492
|
}>;
|
|
8372
8493
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
8373
8494
|
input: {
|
|
8495
|
+
[x: string]: unknown;
|
|
8496
|
+
classId: string;
|
|
8374
8497
|
id: string;
|
|
8375
8498
|
name: string;
|
|
8376
|
-
classId: string;
|
|
8377
8499
|
color?: string | undefined;
|
|
8378
8500
|
};
|
|
8379
8501
|
output: {
|
|
@@ -8387,8 +8509,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8387
8509
|
}>;
|
|
8388
8510
|
reOrder: import("@trpc/server").TRPCMutationProcedure<{
|
|
8389
8511
|
input: {
|
|
8390
|
-
|
|
8512
|
+
[x: string]: unknown;
|
|
8391
8513
|
classId: string;
|
|
8514
|
+
id: string;
|
|
8392
8515
|
order: number;
|
|
8393
8516
|
};
|
|
8394
8517
|
output: {
|
|
@@ -8398,8 +8521,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8398
8521
|
}>;
|
|
8399
8522
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
8400
8523
|
input: {
|
|
8401
|
-
|
|
8524
|
+
[x: string]: unknown;
|
|
8402
8525
|
classId: string;
|
|
8526
|
+
id: string;
|
|
8403
8527
|
};
|
|
8404
8528
|
output: {
|
|
8405
8529
|
id: string;
|
|
@@ -8426,6 +8550,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8426
8550
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8427
8551
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
8428
8552
|
input: {
|
|
8553
|
+
[x: string]: unknown;
|
|
8429
8554
|
classId: string;
|
|
8430
8555
|
eventId?: string | undefined;
|
|
8431
8556
|
};
|
|
@@ -8895,6 +9020,26 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8895
9020
|
};
|
|
8896
9021
|
meta: object;
|
|
8897
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
|
+
}>;
|
|
8898
9043
|
}>>;
|
|
8899
9044
|
agenda: import("@trpc/server").TRPCBuiltRouter<{
|
|
8900
9045
|
ctx: import("../trpc.js").Context;
|
|
@@ -9463,9 +9608,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9463
9608
|
title: string;
|
|
9464
9609
|
content: string;
|
|
9465
9610
|
createdAt: Date;
|
|
9611
|
+
read: boolean;
|
|
9466
9612
|
senderId: string | null;
|
|
9467
9613
|
receiverId: string;
|
|
9468
|
-
read: boolean;
|
|
9469
9614
|
})[];
|
|
9470
9615
|
meta: object;
|
|
9471
9616
|
}>;
|
|
@@ -9485,9 +9630,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9485
9630
|
title: string;
|
|
9486
9631
|
content: string;
|
|
9487
9632
|
createdAt: Date;
|
|
9633
|
+
read: boolean;
|
|
9488
9634
|
senderId: string | null;
|
|
9489
9635
|
receiverId: string;
|
|
9490
|
-
read: boolean;
|
|
9491
9636
|
}) | null;
|
|
9492
9637
|
meta: object;
|
|
9493
9638
|
}>;
|
|
@@ -9502,9 +9647,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9502
9647
|
title: string;
|
|
9503
9648
|
content: string;
|
|
9504
9649
|
createdAt: Date;
|
|
9650
|
+
read: boolean;
|
|
9505
9651
|
senderId: string | null;
|
|
9506
9652
|
receiverId: string;
|
|
9507
|
-
read: boolean;
|
|
9508
9653
|
};
|
|
9509
9654
|
meta: object;
|
|
9510
9655
|
}>;
|
|
@@ -9526,9 +9671,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9526
9671
|
title: string;
|
|
9527
9672
|
content: string;
|
|
9528
9673
|
createdAt: Date;
|
|
9674
|
+
read: boolean;
|
|
9529
9675
|
senderId: string | null;
|
|
9530
9676
|
receiverId: string;
|
|
9531
|
-
read: boolean;
|
|
9532
9677
|
};
|
|
9533
9678
|
meta: object;
|
|
9534
9679
|
}>;
|
|
@@ -9589,6 +9734,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9589
9734
|
} | null;
|
|
9590
9735
|
};
|
|
9591
9736
|
} & {
|
|
9737
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
9592
9738
|
id: string;
|
|
9593
9739
|
content: string;
|
|
9594
9740
|
createdAt: Date;
|
|
@@ -9974,6 +10120,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9974
10120
|
} | null;
|
|
9975
10121
|
};
|
|
9976
10122
|
} & {
|
|
10123
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
9977
10124
|
id: string;
|
|
9978
10125
|
content: string;
|
|
9979
10126
|
createdAt: Date;
|
|
@@ -10018,6 +10165,59 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10018
10165
|
meta: object;
|
|
10019
10166
|
}>;
|
|
10020
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
|
+
}>>;
|
|
10021
10221
|
marketing: import("@trpc/server").TRPCBuiltRouter<{
|
|
10022
10222
|
ctx: import("../trpc.js").Context;
|
|
10023
10223
|
meta: object;
|
|
@@ -10064,9 +10264,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10064
10264
|
};
|
|
10065
10265
|
output: {
|
|
10066
10266
|
type: string;
|
|
10267
|
+
status: string;
|
|
10067
10268
|
id: string;
|
|
10068
10269
|
name: string;
|
|
10069
|
-
status: string;
|
|
10070
10270
|
website: string | null;
|
|
10071
10271
|
submittedAt: Date | null;
|
|
10072
10272
|
address: string;
|
|
@@ -10128,17 +10328,17 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10128
10328
|
syllabus: string | null;
|
|
10129
10329
|
} | null;
|
|
10130
10330
|
questions: {
|
|
10331
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10131
10332
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10132
10333
|
id: string;
|
|
10133
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10134
10334
|
createdAt: Date;
|
|
10135
10335
|
order: number | null;
|
|
10136
10336
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10137
10337
|
updatedAt: Date;
|
|
10138
|
-
points: number;
|
|
10139
10338
|
question: string;
|
|
10140
10339
|
worksheetId: string;
|
|
10141
10340
|
answer: string;
|
|
10341
|
+
points: number;
|
|
10142
10342
|
}[];
|
|
10143
10343
|
} & {
|
|
10144
10344
|
id: string;
|
|
@@ -10218,26 +10418,26 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10218
10418
|
points?: number | undefined;
|
|
10219
10419
|
};
|
|
10220
10420
|
output: {
|
|
10421
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10221
10422
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10222
10423
|
id: string;
|
|
10223
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10224
10424
|
createdAt: Date;
|
|
10225
10425
|
order: number | null;
|
|
10226
10426
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10227
10427
|
updatedAt: Date;
|
|
10228
|
-
points: number;
|
|
10229
10428
|
question: string;
|
|
10230
10429
|
worksheetId: string;
|
|
10231
10430
|
answer: string;
|
|
10431
|
+
points: number;
|
|
10232
10432
|
};
|
|
10233
10433
|
meta: object;
|
|
10234
10434
|
}>;
|
|
10235
10435
|
reorderQuestions: import("@trpc/server").TRPCMutationProcedure<{
|
|
10236
10436
|
input: {
|
|
10437
|
+
worksheetId: string;
|
|
10237
10438
|
movedId: string;
|
|
10238
10439
|
position: "before" | "after";
|
|
10239
10440
|
targetId: string;
|
|
10240
|
-
worksheetId: string;
|
|
10241
10441
|
};
|
|
10242
10442
|
output: {
|
|
10243
10443
|
id: string;
|
|
@@ -10248,25 +10448,25 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10248
10448
|
input: {
|
|
10249
10449
|
worksheetId: string;
|
|
10250
10450
|
questionId: string;
|
|
10251
|
-
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
10252
10451
|
options?: any;
|
|
10452
|
+
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
10253
10453
|
markScheme?: any;
|
|
10254
|
-
points?: number | undefined;
|
|
10255
10454
|
question?: string | undefined;
|
|
10256
10455
|
answer?: string | undefined;
|
|
10456
|
+
points?: number | undefined;
|
|
10257
10457
|
};
|
|
10258
10458
|
output: {
|
|
10459
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10259
10460
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10260
10461
|
id: string;
|
|
10261
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10262
10462
|
createdAt: Date;
|
|
10263
10463
|
order: number | null;
|
|
10264
10464
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10265
10465
|
updatedAt: Date;
|
|
10266
|
-
points: number;
|
|
10267
10466
|
question: string;
|
|
10268
10467
|
worksheetId: string;
|
|
10269
10468
|
answer: string;
|
|
10469
|
+
points: number;
|
|
10270
10470
|
};
|
|
10271
10471
|
meta: object;
|
|
10272
10472
|
}>;
|
|
@@ -10276,17 +10476,17 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10276
10476
|
questionId: string;
|
|
10277
10477
|
};
|
|
10278
10478
|
output: {
|
|
10479
|
+
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10279
10480
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
10280
10481
|
id: string;
|
|
10281
|
-
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10282
10482
|
createdAt: Date;
|
|
10283
10483
|
order: number | null;
|
|
10284
10484
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10285
10485
|
updatedAt: Date;
|
|
10286
|
-
points: number;
|
|
10287
10486
|
question: string;
|
|
10288
10487
|
worksheetId: string;
|
|
10289
10488
|
answer: string;
|
|
10489
|
+
points: number;
|
|
10290
10490
|
};
|
|
10291
10491
|
meta: object;
|
|
10292
10492
|
}>;
|
|
@@ -10301,6 +10501,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10301
10501
|
id: string;
|
|
10302
10502
|
}[];
|
|
10303
10503
|
} & {
|
|
10504
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10304
10505
|
id: string;
|
|
10305
10506
|
feedback: string | null;
|
|
10306
10507
|
studentId: string;
|
|
@@ -10309,9 +10510,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10309
10510
|
points: number;
|
|
10310
10511
|
questionId: string;
|
|
10311
10512
|
response: string;
|
|
10312
|
-
studentWorksheetResponseId: string | null;
|
|
10313
10513
|
isCorrect: boolean;
|
|
10314
10514
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10515
|
+
studentWorksheetResponseId: string | null;
|
|
10315
10516
|
})[];
|
|
10316
10517
|
} & {
|
|
10317
10518
|
id: string;
|
|
@@ -10327,12 +10528,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10327
10528
|
}>;
|
|
10328
10529
|
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
10329
10530
|
input: {
|
|
10330
|
-
questionId: string;
|
|
10331
10531
|
worksheetResponseId: string;
|
|
10532
|
+
questionId: string;
|
|
10332
10533
|
response: string;
|
|
10333
10534
|
};
|
|
10334
10535
|
output: ({
|
|
10335
10536
|
responses: {
|
|
10537
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10336
10538
|
id: string;
|
|
10337
10539
|
feedback: string | null;
|
|
10338
10540
|
studentId: string;
|
|
@@ -10341,9 +10543,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10341
10543
|
points: number;
|
|
10342
10544
|
questionId: string;
|
|
10343
10545
|
response: string;
|
|
10344
|
-
studentWorksheetResponseId: string | null;
|
|
10345
10546
|
isCorrect: boolean;
|
|
10346
10547
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10548
|
+
studentWorksheetResponseId: string | null;
|
|
10347
10549
|
}[];
|
|
10348
10550
|
} & {
|
|
10349
10551
|
id: string;
|
|
@@ -10357,46 +10559,37 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10357
10559
|
}) | null;
|
|
10358
10560
|
meta: object;
|
|
10359
10561
|
}>;
|
|
10360
|
-
|
|
10562
|
+
cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
|
|
10361
10563
|
input: {
|
|
10362
10564
|
worksheetResponseId: string;
|
|
10565
|
+
questionId: string;
|
|
10363
10566
|
};
|
|
10364
10567
|
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
|
-
} & {
|
|
10568
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10379
10569
|
id: string;
|
|
10380
|
-
|
|
10570
|
+
feedback: string | null;
|
|
10381
10571
|
studentId: string;
|
|
10382
10572
|
createdAt: Date;
|
|
10383
|
-
updatedAt: Date;
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
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;
|
|
10387
10580
|
};
|
|
10388
10581
|
meta: object;
|
|
10389
10582
|
}>;
|
|
10390
10583
|
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
10391
10584
|
input: {
|
|
10392
10585
|
questionId: string;
|
|
10393
|
-
studentWorksheetResponseId: string;
|
|
10394
10586
|
isCorrect: boolean;
|
|
10587
|
+
studentWorksheetResponseId: string;
|
|
10395
10588
|
feedback?: string | undefined;
|
|
10396
10589
|
points?: number | undefined;
|
|
10397
10590
|
response?: string | undefined;
|
|
10398
|
-
responseId?: string | undefined;
|
|
10399
10591
|
markschemeState?: any;
|
|
10592
|
+
responseId?: string | undefined;
|
|
10400
10593
|
};
|
|
10401
10594
|
output: any;
|
|
10402
10595
|
meta: object;
|
|
@@ -10407,6 +10600,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10407
10600
|
responseId: string;
|
|
10408
10601
|
};
|
|
10409
10602
|
output: {
|
|
10603
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10410
10604
|
id: string;
|
|
10411
10605
|
content: string;
|
|
10412
10606
|
createdAt: Date;
|
|
@@ -10484,6 +10678,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10484
10678
|
} | null;
|
|
10485
10679
|
};
|
|
10486
10680
|
} & {
|
|
10681
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10487
10682
|
id: string;
|
|
10488
10683
|
content: string;
|
|
10489
10684
|
createdAt: Date;
|
|
@@ -10501,6 +10696,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10501
10696
|
parentCommentId: string;
|
|
10502
10697
|
};
|
|
10503
10698
|
output: {
|
|
10699
|
+
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10504
10700
|
id: string;
|
|
10505
10701
|
content: string;
|
|
10506
10702
|
createdAt: Date;
|