@studious-lms/server 1.14.0 → 1.15.0
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/.github/workflows/deploy.yml +1 -1
- package/dist/instrument.js +3 -3
- package/dist/instrument.js.map +1 -1
- package/dist/lib/inferDocumentFormat.d.ts +10 -0
- package/dist/lib/inferDocumentFormat.d.ts.map +1 -0
- package/dist/lib/inferDocumentFormat.js +48 -0
- package/dist/lib/inferDocumentFormat.js.map +1 -0
- package/dist/lib/legal.d.ts +3 -0
- package/dist/lib/legal.d.ts.map +1 -0
- package/dist/lib/legal.js +6 -0
- package/dist/lib/legal.js.map +1 -0
- package/dist/models/announcement.d.ts +47 -45
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +75 -75
- package/dist/models/auth.d.ts +8 -0
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/auth.js +4 -2
- package/dist/models/auth.js.map +1 -1
- package/dist/models/class.d.ts +13 -13
- package/dist/models/comment.d.ts +6 -6
- package/dist/models/conversation.d.ts +23 -23
- package/dist/models/event.d.ts +20 -18
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +33 -9
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/labChat.d.ts +4 -4
- package/dist/models/marketing.d.ts +2 -15
- package/dist/models/marketing.d.ts.map +1 -1
- package/dist/models/marketing.js +12 -4
- package/dist/models/marketing.js.map +1 -1
- package/dist/models/message.d.ts +13 -13
- package/dist/models/newtonChat.d.ts +3 -3
- package/dist/models/notification.d.ts +4 -4
- package/dist/models/worksheet.d.ts +121 -121
- package/dist/pipelines/aiLabChat.d.ts +7 -1
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +153 -67
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +34 -195
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
- package/dist/pipelines/aiLabChatContract.js +9 -19
- package/dist/pipelines/aiLabChatContract.js.map +1 -1
- package/dist/pipelines/gradeWorksheet.d.ts +6 -6
- package/dist/pipelines/labChatPrompt.d.ts +8 -3
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +52 -14
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
- package/dist/routers/_app.d.ts +750 -546
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/announcement.d.ts +40 -40
- package/dist/routers/assignment.d.ts +131 -121
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/auth.d.ts +2 -0
- package/dist/routers/auth.d.ts.map +1 -1
- package/dist/routers/auth.js +15 -2
- package/dist/routers/auth.js.map +1 -1
- package/dist/routers/class.d.ts +12 -8
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +5 -5
- package/dist/routers/conversation.d.ts +6 -6
- package/dist/routers/discussion.d.ts +3 -3
- package/dist/routers/embedding.d.ts +6 -2
- package/dist/routers/embedding.d.ts.map +1 -1
- package/dist/routers/embedding.js +44 -36
- package/dist/routers/embedding.js.map +1 -1
- package/dist/routers/event.d.ts +20 -18
- package/dist/routers/event.d.ts.map +1 -1
- package/dist/routers/file.d.ts +2 -2
- package/dist/routers/labChat.d.ts +3 -3
- package/dist/routers/marketing.d.ts +0 -13
- package/dist/routers/marketing.d.ts.map +1 -1
- package/dist/routers/notifications.d.ts +4 -4
- package/dist/routers/school.d.ts +4 -0
- package/dist/routers/school.d.ts.map +1 -1
- package/dist/routers/search.d.ts +2 -2
- package/dist/routers/user.d.ts +89 -0
- package/dist/routers/user.d.ts.map +1 -1
- package/dist/routers/user.js +19 -2
- package/dist/routers/user.js.map +1 -1
- package/dist/routers/worksheet.d.ts +44 -44
- package/dist/routes/aiStream.d.ts.map +1 -1
- package/dist/routes/aiStream.js +41 -11
- package/dist/routes/aiStream.js.map +1 -1
- package/dist/seedDatabase.d.ts +3 -1
- package/dist/seedDatabase.d.ts.map +1 -1
- package/dist/services/aiChatStream.d.ts +20 -0
- package/dist/services/aiChatStream.d.ts.map +1 -1
- package/dist/services/aiChatStream.js +110 -13
- package/dist/services/aiChatStream.js.map +1 -1
- package/dist/services/aiModifierTools.d.ts +0 -16
- package/dist/services/aiModifierTools.d.ts.map +1 -1
- package/dist/services/aiModifierTools.js +112 -3
- package/dist/services/aiModifierTools.js.map +1 -1
- package/dist/services/aiProposalTools.d.ts.map +1 -1
- package/dist/services/aiProposalTools.js +25 -25
- package/dist/services/aiProposalTools.js.map +1 -1
- package/dist/services/aiTools.js +3 -3
- package/dist/services/aiTools.js.map +1 -1
- package/dist/services/announcement.d.ts +34 -34
- package/dist/services/assignment.d.ts +121 -111
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +4 -2
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/auth.d.ts +2 -0
- package/dist/services/auth.d.ts.map +1 -1
- package/dist/services/auth.js +13 -4
- package/dist/services/auth.js.map +1 -1
- package/dist/services/class.d.ts +10 -6
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +7 -3
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +5 -5
- package/dist/services/conversation.d.ts +6 -6
- package/dist/services/discussion.d.ts.map +1 -1
- package/dist/services/discussion.js +9 -2
- package/dist/services/discussion.js.map +1 -1
- package/dist/services/embedding.d.ts +19 -1
- package/dist/services/embedding.d.ts.map +1 -1
- package/dist/services/embedding.js +154 -8
- package/dist/services/embedding.js.map +1 -1
- package/dist/services/event.d.ts +20 -18
- package/dist/services/event.d.ts.map +1 -1
- package/dist/services/file.d.ts +4 -4
- package/dist/services/folder.d.ts.map +1 -1
- package/dist/services/folder.js +32 -2
- package/dist/services/folder.js.map +1 -1
- package/dist/services/labChat.d.ts +3 -3
- package/dist/services/marketing.d.ts +1 -14
- package/dist/services/marketing.d.ts.map +1 -1
- package/dist/services/marketing.js +5 -5
- package/dist/services/marketing.js.map +1 -1
- package/dist/services/notification.d.ts +4 -4
- package/dist/services/openaiDocumentGen.d.ts +37 -0
- package/dist/services/openaiDocumentGen.d.ts.map +1 -0
- package/dist/services/openaiDocumentGen.js +262 -0
- package/dist/services/openaiDocumentGen.js.map +1 -0
- package/dist/services/school.d.ts +4 -0
- package/dist/services/school.d.ts.map +1 -1
- package/dist/services/search.d.ts +1 -1
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +27 -2
- package/dist/services/search.js.map +1 -1
- package/dist/services/userPrivacy.d.ts +86 -0
- package/dist/services/userPrivacy.d.ts.map +1 -0
- package/dist/services/userPrivacy.js +184 -0
- package/dist/services/userPrivacy.js.map +1 -0
- package/dist/services/worksheet.d.ts +66 -49
- package/dist/services/worksheet.d.ts.map +1 -1
- package/dist/services/worksheet.js +48 -3
- package/dist/services/worksheet.js.map +1 -1
- package/dist/utils/email.d.ts.map +1 -1
- package/dist/utils/email.js +7 -3
- package/dist/utils/email.js.map +1 -1
- package/dist/workers/processors/embedContent.d.ts.map +1 -1
- package/dist/workers/processors/embedContent.js +16 -25
- package/dist/workers/processors/embedContent.js.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260610140000_expand_embedding_source_types/migration.sql +4 -0
- package/prisma/migrations/20260611120000_add_user_terms_acceptance/migration.sql +3 -0
- package/prisma/schema.prisma +6 -0
- package/src/instrument.ts +1 -1
- package/src/lib/inferDocumentFormat.ts +58 -0
- package/src/lib/legal.ts +2 -0
- package/src/models/auth.ts +4 -0
- package/src/models/marketing.ts +10 -2
- package/src/pipelines/aiLabChat.ts +198 -74
- package/src/pipelines/aiLabChatContract.ts +7 -17
- package/src/pipelines/labChatPrompt.ts +64 -14
- package/src/routers/auth.ts +13 -0
- package/src/routers/embedding.ts +44 -39
- package/src/routers/user.ts +26 -0
- package/src/routes/aiStream.ts +47 -9
- package/src/services/aiChatStream.ts +133 -11
- package/src/services/aiModifierTools.ts +154 -1
- package/src/services/aiProposalTools.ts +27 -25
- package/src/services/aiTools.ts +1 -1
- package/src/services/assignment.ts +3 -0
- package/src/services/auth.ts +14 -2
- package/src/services/class.ts +7 -1
- package/src/services/discussion.ts +13 -0
- package/src/services/embedding.ts +167 -6
- package/src/services/folder.ts +31 -0
- package/src/services/marketing.ts +3 -3
- package/src/services/openaiDocumentGen.ts +319 -0
- package/src/services/search.ts +25 -1
- package/src/services/userPrivacy.ts +196 -0
- package/src/services/worksheet.ts +68 -1
- package/src/utils/email.ts +5 -1
- package/src/workers/processors/embedContent.ts +18 -22
- package/tests/helpers/registerInput.ts +20 -0
- package/tests/integration/globalSetup.ts +10 -18
- package/tests/integration/routers/auth.test.ts +13 -18
- package/tests/unit/lib/inferDocumentFormat.test.ts +33 -0
- package/tests/unit/services/aiChatStream.test.ts +92 -0
- package/tests/unit/services/openaiDocumentGen.test.ts +65 -0
package/dist/routers/_app.d.ts
CHANGED
|
@@ -314,6 +314,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
314
314
|
email: string;
|
|
315
315
|
password: string;
|
|
316
316
|
verified: boolean;
|
|
317
|
+
termsAcceptedAt: Date | null;
|
|
318
|
+
termsVersion: string | null;
|
|
317
319
|
schoolId: string | null;
|
|
318
320
|
}[];
|
|
319
321
|
students: {
|
|
@@ -322,6 +324,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
322
324
|
email: string;
|
|
323
325
|
password: string;
|
|
324
326
|
verified: boolean;
|
|
327
|
+
termsAcceptedAt: Date | null;
|
|
328
|
+
termsVersion: string | null;
|
|
325
329
|
schoolId: string | null;
|
|
326
330
|
}[];
|
|
327
331
|
} & {
|
|
@@ -376,7 +380,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
376
380
|
input: {
|
|
377
381
|
[x: string]: unknown;
|
|
378
382
|
classId: string;
|
|
379
|
-
type: "
|
|
383
|
+
type: "student" | "teacher";
|
|
380
384
|
userId: string;
|
|
381
385
|
};
|
|
382
386
|
output: {
|
|
@@ -394,7 +398,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
394
398
|
studentsCanReply: boolean;
|
|
395
399
|
};
|
|
396
400
|
user: {
|
|
397
|
-
type: "
|
|
401
|
+
type: "student" | "teacher";
|
|
398
402
|
id: string;
|
|
399
403
|
username: string;
|
|
400
404
|
};
|
|
@@ -496,8 +500,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
496
500
|
id: string;
|
|
497
501
|
createdAt: Date;
|
|
498
502
|
assignmentId: string;
|
|
499
|
-
modifiedAt: Date;
|
|
500
503
|
studentId: string;
|
|
504
|
+
modifiedAt: Date;
|
|
501
505
|
extendedResponse: string | null;
|
|
502
506
|
gradeReceived: number | null;
|
|
503
507
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -532,8 +536,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
532
536
|
id: string;
|
|
533
537
|
createdAt: Date;
|
|
534
538
|
assignmentId: string;
|
|
535
|
-
modifiedAt: Date;
|
|
536
539
|
studentId: string;
|
|
540
|
+
modifiedAt: Date;
|
|
537
541
|
extendedResponse: string | null;
|
|
538
542
|
gradeReceived: number | null;
|
|
539
543
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -761,7 +765,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
761
765
|
input: {
|
|
762
766
|
[x: string]: unknown;
|
|
763
767
|
classId: string;
|
|
764
|
-
type: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "
|
|
768
|
+
type: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER";
|
|
765
769
|
title: string;
|
|
766
770
|
instructions: string;
|
|
767
771
|
dueDate?: Date | undefined;
|
|
@@ -1034,11 +1038,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1034
1038
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
1035
1039
|
options: import("@prisma/client/runtime/library.js").JsonValue;
|
|
1036
1040
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue;
|
|
1037
|
-
|
|
1038
|
-
worksheetId: string;
|
|
1041
|
+
points: number;
|
|
1039
1042
|
question: string;
|
|
1043
|
+
worksheetId: string;
|
|
1044
|
+
order: number | null;
|
|
1040
1045
|
answer: string;
|
|
1041
|
-
points: number;
|
|
1042
1046
|
}[];
|
|
1043
1047
|
}[];
|
|
1044
1048
|
markSchemes: {
|
|
@@ -1104,6 +1108,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1104
1108
|
id: string;
|
|
1105
1109
|
createdAt: Date;
|
|
1106
1110
|
remarks: string;
|
|
1111
|
+
attachments: {
|
|
1112
|
+
path: string;
|
|
1113
|
+
type: string;
|
|
1114
|
+
id: string;
|
|
1115
|
+
name: string;
|
|
1116
|
+
size: number | null;
|
|
1117
|
+
uploadedAt: Date | null;
|
|
1118
|
+
thumbnailId: string | null;
|
|
1119
|
+
}[];
|
|
1107
1120
|
modifiedAt: Date | null;
|
|
1108
1121
|
teacher: {
|
|
1109
1122
|
id: string;
|
|
@@ -1114,15 +1127,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1114
1127
|
profilePictureThumbnail: string | null;
|
|
1115
1128
|
} | null;
|
|
1116
1129
|
};
|
|
1117
|
-
attachments: {
|
|
1118
|
-
path: string;
|
|
1119
|
-
type: string;
|
|
1120
|
-
id: string;
|
|
1121
|
-
name: string;
|
|
1122
|
-
size: number | null;
|
|
1123
|
-
uploadedAt: Date | null;
|
|
1124
|
-
thumbnailId: string | null;
|
|
1125
|
-
}[];
|
|
1126
1130
|
}[];
|
|
1127
1131
|
};
|
|
1128
1132
|
meta: object;
|
|
@@ -1138,6 +1142,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1138
1142
|
id: string;
|
|
1139
1143
|
createdAt: Date;
|
|
1140
1144
|
remarks: string;
|
|
1145
|
+
attachments: {
|
|
1146
|
+
path: string;
|
|
1147
|
+
type: string;
|
|
1148
|
+
id: string;
|
|
1149
|
+
name: string;
|
|
1150
|
+
size: number | null;
|
|
1151
|
+
uploadedAt: Date | null;
|
|
1152
|
+
thumbnailId: string | null;
|
|
1153
|
+
}[];
|
|
1141
1154
|
modifiedAt: Date | null;
|
|
1142
1155
|
teacher: {
|
|
1143
1156
|
id: string;
|
|
@@ -1148,15 +1161,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1148
1161
|
profilePictureThumbnail: string | null;
|
|
1149
1162
|
} | null;
|
|
1150
1163
|
};
|
|
1151
|
-
attachments: {
|
|
1152
|
-
path: string;
|
|
1153
|
-
type: string;
|
|
1154
|
-
id: string;
|
|
1155
|
-
name: string;
|
|
1156
|
-
size: number | null;
|
|
1157
|
-
uploadedAt: Date | null;
|
|
1158
|
-
thumbnailId: string | null;
|
|
1159
|
-
}[];
|
|
1160
1164
|
};
|
|
1161
1165
|
};
|
|
1162
1166
|
meta: object;
|
|
@@ -1178,6 +1182,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1178
1182
|
id: string;
|
|
1179
1183
|
createdAt: Date;
|
|
1180
1184
|
remarks: string;
|
|
1185
|
+
attachments: {
|
|
1186
|
+
path: string;
|
|
1187
|
+
type: string;
|
|
1188
|
+
id: string;
|
|
1189
|
+
name: string;
|
|
1190
|
+
size: number | null;
|
|
1191
|
+
uploadedAt: Date | null;
|
|
1192
|
+
thumbnailId: string | null;
|
|
1193
|
+
}[];
|
|
1181
1194
|
modifiedAt: Date | null;
|
|
1182
1195
|
teacher: {
|
|
1183
1196
|
id: string;
|
|
@@ -1188,15 +1201,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1188
1201
|
profilePictureThumbnail: string | null;
|
|
1189
1202
|
} | null;
|
|
1190
1203
|
};
|
|
1191
|
-
attachments: {
|
|
1192
|
-
path: string;
|
|
1193
|
-
type: string;
|
|
1194
|
-
id: string;
|
|
1195
|
-
name: string;
|
|
1196
|
-
size: number | null;
|
|
1197
|
-
uploadedAt: Date | null;
|
|
1198
|
-
thumbnailId: string | null;
|
|
1199
|
-
}[];
|
|
1200
1204
|
};
|
|
1201
1205
|
uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
|
|
1202
1206
|
};
|
|
@@ -1223,6 +1227,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1223
1227
|
id: string;
|
|
1224
1228
|
createdAt: Date;
|
|
1225
1229
|
remarks: string;
|
|
1230
|
+
attachments: {
|
|
1231
|
+
path: string;
|
|
1232
|
+
type: string;
|
|
1233
|
+
id: string;
|
|
1234
|
+
name: string;
|
|
1235
|
+
size: number | null;
|
|
1236
|
+
uploadedAt: Date | null;
|
|
1237
|
+
thumbnailId: string | null;
|
|
1238
|
+
}[];
|
|
1226
1239
|
modifiedAt: Date | null;
|
|
1227
1240
|
teacher: {
|
|
1228
1241
|
id: string;
|
|
@@ -1233,15 +1246,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1233
1246
|
profilePictureThumbnail: string | null;
|
|
1234
1247
|
} | null;
|
|
1235
1248
|
};
|
|
1236
|
-
attachments: {
|
|
1237
|
-
path: string;
|
|
1238
|
-
type: string;
|
|
1239
|
-
id: string;
|
|
1240
|
-
name: string;
|
|
1241
|
-
size: number | null;
|
|
1242
|
-
uploadedAt: Date | null;
|
|
1243
|
-
thumbnailId: string | null;
|
|
1244
|
-
}[];
|
|
1245
1249
|
};
|
|
1246
1250
|
uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
|
|
1247
1251
|
};
|
|
@@ -1314,8 +1318,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1314
1318
|
content: string;
|
|
1315
1319
|
assignmentId: string | null;
|
|
1316
1320
|
submissionId: string | null;
|
|
1317
|
-
modifiedAt: Date | null;
|
|
1318
1321
|
announcementId: string | null;
|
|
1322
|
+
modifiedAt: Date | null;
|
|
1319
1323
|
authorId: string;
|
|
1320
1324
|
isPinned: boolean;
|
|
1321
1325
|
parentCommentId: string | null;
|
|
@@ -1346,8 +1350,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1346
1350
|
content: string;
|
|
1347
1351
|
assignmentId: string | null;
|
|
1348
1352
|
submissionId: string | null;
|
|
1349
|
-
modifiedAt: Date | null;
|
|
1350
1353
|
announcementId: string | null;
|
|
1354
|
+
modifiedAt: Date | null;
|
|
1351
1355
|
authorId: string;
|
|
1352
1356
|
isPinned: boolean;
|
|
1353
1357
|
parentCommentId: string | null;
|
|
@@ -1398,8 +1402,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1398
1402
|
content: string;
|
|
1399
1403
|
assignmentId: string | null;
|
|
1400
1404
|
submissionId: string | null;
|
|
1401
|
-
modifiedAt: Date | null;
|
|
1402
1405
|
announcementId: string | null;
|
|
1406
|
+
modifiedAt: Date | null;
|
|
1403
1407
|
authorId: string;
|
|
1404
1408
|
isPinned: boolean;
|
|
1405
1409
|
parentCommentId: string | null;
|
|
@@ -1411,8 +1415,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1411
1415
|
content: string;
|
|
1412
1416
|
assignmentId: string | null;
|
|
1413
1417
|
submissionId: string | null;
|
|
1414
|
-
modifiedAt: Date | null;
|
|
1415
1418
|
announcementId: string | null;
|
|
1419
|
+
modifiedAt: Date | null;
|
|
1416
1420
|
authorId: string;
|
|
1417
1421
|
isPinned: boolean;
|
|
1418
1422
|
parentCommentId: string | null;
|
|
@@ -1589,7 +1593,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1589
1593
|
title: string;
|
|
1590
1594
|
dueDate: string;
|
|
1591
1595
|
instructions: string;
|
|
1592
|
-
type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "
|
|
1596
|
+
type?: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
|
|
1593
1597
|
id?: string | undefined;
|
|
1594
1598
|
files?: {
|
|
1595
1599
|
type: string;
|
|
@@ -1627,6 +1631,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1627
1631
|
title: string;
|
|
1628
1632
|
dueDate: Date;
|
|
1629
1633
|
maxGrade: number | null;
|
|
1634
|
+
attachments: {
|
|
1635
|
+
type: string;
|
|
1636
|
+
id: string;
|
|
1637
|
+
name: string;
|
|
1638
|
+
}[];
|
|
1630
1639
|
instructions: string;
|
|
1631
1640
|
graded: boolean;
|
|
1632
1641
|
weight: number;
|
|
@@ -1634,11 +1643,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1634
1643
|
id: string;
|
|
1635
1644
|
username: string;
|
|
1636
1645
|
};
|
|
1637
|
-
attachments: {
|
|
1638
|
-
type: string;
|
|
1639
|
-
id: string;
|
|
1640
|
-
name: string;
|
|
1641
|
-
}[];
|
|
1642
1646
|
};
|
|
1643
1647
|
meta: object;
|
|
1644
1648
|
}>;
|
|
@@ -1682,7 +1686,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1682
1686
|
[x: string]: unknown;
|
|
1683
1687
|
classId: string;
|
|
1684
1688
|
id: string;
|
|
1685
|
-
type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "
|
|
1689
|
+
type?: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
|
|
1686
1690
|
files?: {
|
|
1687
1691
|
type: string;
|
|
1688
1692
|
name: string;
|
|
@@ -1739,18 +1743,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1739
1743
|
title: string;
|
|
1740
1744
|
dueDate: Date;
|
|
1741
1745
|
maxGrade: number | null;
|
|
1742
|
-
instructions: string;
|
|
1743
|
-
graded: boolean;
|
|
1744
|
-
weight: number;
|
|
1745
|
-
markSchemeId: string | null;
|
|
1746
|
-
teacher: {
|
|
1747
|
-
id: string;
|
|
1748
|
-
username: string;
|
|
1749
|
-
email: string;
|
|
1750
|
-
password: string;
|
|
1751
|
-
verified: boolean;
|
|
1752
|
-
schoolId: string | null;
|
|
1753
|
-
};
|
|
1754
1746
|
attachments: {
|
|
1755
1747
|
path: string;
|
|
1756
1748
|
type: string;
|
|
@@ -1770,6 +1762,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1770
1762
|
submissionId: string | null;
|
|
1771
1763
|
thumbnailId: string | null;
|
|
1772
1764
|
annotationId: string | null;
|
|
1765
|
+
conversationId: string | null;
|
|
1773
1766
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1774
1767
|
uploadUrl: string | null;
|
|
1775
1768
|
uploadExpiresAt: Date | null;
|
|
@@ -1781,7 +1774,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1781
1774
|
cleanupAt: Date | null;
|
|
1782
1775
|
classDraftId: string | null;
|
|
1783
1776
|
folderId: string | null;
|
|
1784
|
-
conversationId: string | null;
|
|
1785
1777
|
messageId: string | null;
|
|
1786
1778
|
announcementId: string | null;
|
|
1787
1779
|
discussionId: string | null;
|
|
@@ -1790,6 +1782,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1790
1782
|
} | null;
|
|
1791
1783
|
thumbnailId: string | null;
|
|
1792
1784
|
}[];
|
|
1785
|
+
instructions: string;
|
|
1786
|
+
graded: boolean;
|
|
1787
|
+
weight: number;
|
|
1788
|
+
markSchemeId: string | null;
|
|
1789
|
+
teacher: {
|
|
1790
|
+
id: string;
|
|
1791
|
+
username: string;
|
|
1792
|
+
email: string;
|
|
1793
|
+
password: string;
|
|
1794
|
+
verified: boolean;
|
|
1795
|
+
termsAcceptedAt: Date | null;
|
|
1796
|
+
termsVersion: string | null;
|
|
1797
|
+
schoolId: string | null;
|
|
1798
|
+
};
|
|
1793
1799
|
};
|
|
1794
1800
|
meta: object;
|
|
1795
1801
|
}>;
|
|
@@ -1840,10 +1846,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1840
1846
|
id: string;
|
|
1841
1847
|
name: string;
|
|
1842
1848
|
}[];
|
|
1843
|
-
teacher: {
|
|
1844
|
-
id: string;
|
|
1845
|
-
username: string;
|
|
1846
|
-
};
|
|
1847
1849
|
attachments: {
|
|
1848
1850
|
path: string;
|
|
1849
1851
|
type: string;
|
|
@@ -1853,6 +1855,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1853
1855
|
uploadedAt: Date | null;
|
|
1854
1856
|
thumbnailId: string | null;
|
|
1855
1857
|
}[];
|
|
1858
|
+
teacher: {
|
|
1859
|
+
id: string;
|
|
1860
|
+
username: string;
|
|
1861
|
+
};
|
|
1856
1862
|
eventAttached: {
|
|
1857
1863
|
id: string;
|
|
1858
1864
|
location: string | null;
|
|
@@ -1961,6 +1967,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1961
1967
|
submissionId: string | null;
|
|
1962
1968
|
thumbnailId: string | null;
|
|
1963
1969
|
annotationId: string | null;
|
|
1970
|
+
conversationId: string | null;
|
|
1964
1971
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1965
1972
|
uploadUrl: string | null;
|
|
1966
1973
|
uploadExpiresAt: Date | null;
|
|
@@ -1972,17 +1979,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1972
1979
|
cleanupAt: Date | null;
|
|
1973
1980
|
classDraftId: string | null;
|
|
1974
1981
|
folderId: string | null;
|
|
1975
|
-
conversationId: string | null;
|
|
1976
1982
|
messageId: string | null;
|
|
1977
1983
|
announcementId: string | null;
|
|
1978
1984
|
discussionId: string | null;
|
|
1979
1985
|
discussionReplyId: string | null;
|
|
1980
1986
|
schoolDevelopementProgramId: string | null;
|
|
1981
1987
|
}[];
|
|
1982
|
-
student: {
|
|
1983
|
-
id: string;
|
|
1984
|
-
username: string;
|
|
1985
|
-
};
|
|
1986
1988
|
annotations: {
|
|
1987
1989
|
path: string;
|
|
1988
1990
|
type: string;
|
|
@@ -1995,6 +1997,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1995
1997
|
submissionId: string | null;
|
|
1996
1998
|
thumbnailId: string | null;
|
|
1997
1999
|
annotationId: string | null;
|
|
2000
|
+
conversationId: string | null;
|
|
1998
2001
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1999
2002
|
uploadUrl: string | null;
|
|
2000
2003
|
uploadExpiresAt: Date | null;
|
|
@@ -2006,18 +2009,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2006
2009
|
cleanupAt: Date | null;
|
|
2007
2010
|
classDraftId: string | null;
|
|
2008
2011
|
folderId: string | null;
|
|
2009
|
-
conversationId: string | null;
|
|
2010
2012
|
messageId: string | null;
|
|
2011
2013
|
announcementId: string | null;
|
|
2012
2014
|
discussionId: string | null;
|
|
2013
2015
|
discussionReplyId: string | null;
|
|
2014
2016
|
schoolDevelopementProgramId: string | null;
|
|
2015
2017
|
}[];
|
|
2018
|
+
student: {
|
|
2019
|
+
id: string;
|
|
2020
|
+
username: string;
|
|
2021
|
+
};
|
|
2016
2022
|
id: string;
|
|
2017
2023
|
createdAt: Date;
|
|
2018
2024
|
assignmentId: string;
|
|
2019
|
-
modifiedAt: Date;
|
|
2020
2025
|
studentId: string;
|
|
2026
|
+
modifiedAt: Date;
|
|
2021
2027
|
extendedResponse: string | null;
|
|
2022
2028
|
gradeReceived: number | null;
|
|
2023
2029
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -2103,6 +2109,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2103
2109
|
submissionId: string | null;
|
|
2104
2110
|
thumbnailId: string | null;
|
|
2105
2111
|
annotationId: string | null;
|
|
2112
|
+
conversationId: string | null;
|
|
2106
2113
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2107
2114
|
uploadUrl: string | null;
|
|
2108
2115
|
uploadExpiresAt: Date | null;
|
|
@@ -2114,29 +2121,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2114
2121
|
cleanupAt: Date | null;
|
|
2115
2122
|
classDraftId: string | null;
|
|
2116
2123
|
folderId: string | null;
|
|
2117
|
-
conversationId: string | null;
|
|
2118
2124
|
messageId: string | null;
|
|
2119
2125
|
announcementId: string | null;
|
|
2120
2126
|
discussionId: string | null;
|
|
2121
2127
|
discussionReplyId: string | null;
|
|
2122
2128
|
schoolDevelopementProgramId: string | null;
|
|
2123
2129
|
}[];
|
|
2124
|
-
student: {
|
|
2125
|
-
id: string;
|
|
2126
|
-
username: string;
|
|
2127
|
-
profile: {
|
|
2128
|
-
id: string;
|
|
2129
|
-
userId: string;
|
|
2130
|
-
displayName: string | null;
|
|
2131
|
-
bio: string | null;
|
|
2132
|
-
location: string | null;
|
|
2133
|
-
website: string | null;
|
|
2134
|
-
createdAt: Date;
|
|
2135
|
-
updatedAt: Date;
|
|
2136
|
-
profilePicture: string | null;
|
|
2137
|
-
profilePictureThumbnail: string | null;
|
|
2138
|
-
} | null;
|
|
2139
|
-
};
|
|
2140
2130
|
annotations: {
|
|
2141
2131
|
path: string;
|
|
2142
2132
|
type: string;
|
|
@@ -2149,6 +2139,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2149
2139
|
submissionId: string | null;
|
|
2150
2140
|
thumbnailId: string | null;
|
|
2151
2141
|
annotationId: string | null;
|
|
2142
|
+
conversationId: string | null;
|
|
2152
2143
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2153
2144
|
uploadUrl: string | null;
|
|
2154
2145
|
uploadExpiresAt: Date | null;
|
|
@@ -2160,18 +2151,33 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2160
2151
|
cleanupAt: Date | null;
|
|
2161
2152
|
classDraftId: string | null;
|
|
2162
2153
|
folderId: string | null;
|
|
2163
|
-
conversationId: string | null;
|
|
2164
2154
|
messageId: string | null;
|
|
2165
2155
|
announcementId: string | null;
|
|
2166
2156
|
discussionId: string | null;
|
|
2167
2157
|
discussionReplyId: string | null;
|
|
2168
2158
|
schoolDevelopementProgramId: string | null;
|
|
2169
2159
|
}[];
|
|
2160
|
+
student: {
|
|
2161
|
+
id: string;
|
|
2162
|
+
username: string;
|
|
2163
|
+
profile: {
|
|
2164
|
+
id: string;
|
|
2165
|
+
userId: string;
|
|
2166
|
+
displayName: string | null;
|
|
2167
|
+
bio: string | null;
|
|
2168
|
+
location: string | null;
|
|
2169
|
+
website: string | null;
|
|
2170
|
+
createdAt: Date;
|
|
2171
|
+
updatedAt: Date;
|
|
2172
|
+
profilePicture: string | null;
|
|
2173
|
+
profilePictureThumbnail: string | null;
|
|
2174
|
+
} | null;
|
|
2175
|
+
};
|
|
2170
2176
|
id: string;
|
|
2171
2177
|
createdAt: Date;
|
|
2172
2178
|
assignmentId: string;
|
|
2173
|
-
modifiedAt: Date;
|
|
2174
2179
|
studentId: string;
|
|
2180
|
+
modifiedAt: Date;
|
|
2175
2181
|
extendedResponse: string | null;
|
|
2176
2182
|
gradeReceived: number | null;
|
|
2177
2183
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -2262,6 +2268,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2262
2268
|
submissionId: string | null;
|
|
2263
2269
|
thumbnailId: string | null;
|
|
2264
2270
|
annotationId: string | null;
|
|
2271
|
+
conversationId: string | null;
|
|
2265
2272
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2266
2273
|
uploadUrl: string | null;
|
|
2267
2274
|
uploadExpiresAt: Date | null;
|
|
@@ -2273,7 +2280,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2273
2280
|
cleanupAt: Date | null;
|
|
2274
2281
|
classDraftId: string | null;
|
|
2275
2282
|
folderId: string | null;
|
|
2276
|
-
conversationId: string | null;
|
|
2277
2283
|
messageId: string | null;
|
|
2278
2284
|
announcementId: string | null;
|
|
2279
2285
|
discussionId: string | null;
|
|
@@ -2288,8 +2294,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2288
2294
|
id: string;
|
|
2289
2295
|
createdAt: Date;
|
|
2290
2296
|
assignmentId: string;
|
|
2291
|
-
modifiedAt: Date;
|
|
2292
2297
|
studentId: string;
|
|
2298
|
+
modifiedAt: Date;
|
|
2293
2299
|
extendedResponse: string | null;
|
|
2294
2300
|
gradeReceived: number | null;
|
|
2295
2301
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -2372,6 +2378,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2372
2378
|
submissionId: string | null;
|
|
2373
2379
|
thumbnailId: string | null;
|
|
2374
2380
|
annotationId: string | null;
|
|
2381
|
+
conversationId: string | null;
|
|
2375
2382
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2376
2383
|
uploadUrl: string | null;
|
|
2377
2384
|
uploadExpiresAt: Date | null;
|
|
@@ -2383,7 +2390,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2383
2390
|
cleanupAt: Date | null;
|
|
2384
2391
|
classDraftId: string | null;
|
|
2385
2392
|
folderId: string | null;
|
|
2386
|
-
conversationId: string | null;
|
|
2387
2393
|
messageId: string | null;
|
|
2388
2394
|
announcementId: string | null;
|
|
2389
2395
|
discussionId: string | null;
|
|
@@ -2402,6 +2408,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2402
2408
|
submissionId: string | null;
|
|
2403
2409
|
thumbnailId: string | null;
|
|
2404
2410
|
annotationId: string | null;
|
|
2411
|
+
conversationId: string | null;
|
|
2405
2412
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2406
2413
|
uploadUrl: string | null;
|
|
2407
2414
|
uploadExpiresAt: Date | null;
|
|
@@ -2413,7 +2420,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2413
2420
|
cleanupAt: Date | null;
|
|
2414
2421
|
classDraftId: string | null;
|
|
2415
2422
|
folderId: string | null;
|
|
2416
|
-
conversationId: string | null;
|
|
2417
2423
|
messageId: string | null;
|
|
2418
2424
|
announcementId: string | null;
|
|
2419
2425
|
discussionId: string | null;
|
|
@@ -2432,8 +2438,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2432
2438
|
id: string;
|
|
2433
2439
|
createdAt: Date;
|
|
2434
2440
|
assignmentId: string;
|
|
2435
|
-
modifiedAt: Date;
|
|
2436
2441
|
studentId: string;
|
|
2442
|
+
modifiedAt: Date;
|
|
2437
2443
|
extendedResponse: string | null;
|
|
2438
2444
|
gradeReceived: number | null;
|
|
2439
2445
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -2480,8 +2486,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2480
2486
|
content: string;
|
|
2481
2487
|
assignmentId: string | null;
|
|
2482
2488
|
submissionId: string | null;
|
|
2483
|
-
modifiedAt: Date | null;
|
|
2484
2489
|
announcementId: string | null;
|
|
2490
|
+
modifiedAt: Date | null;
|
|
2485
2491
|
authorId: string;
|
|
2486
2492
|
isPinned: boolean;
|
|
2487
2493
|
parentCommentId: string | null;
|
|
@@ -2493,8 +2499,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2493
2499
|
content: string;
|
|
2494
2500
|
assignmentId: string | null;
|
|
2495
2501
|
submissionId: string | null;
|
|
2496
|
-
modifiedAt: Date | null;
|
|
2497
2502
|
announcementId: string | null;
|
|
2503
|
+
modifiedAt: Date | null;
|
|
2498
2504
|
authorId: string;
|
|
2499
2505
|
isPinned: boolean;
|
|
2500
2506
|
parentCommentId: string | null;
|
|
@@ -2538,8 +2544,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2538
2544
|
content: string;
|
|
2539
2545
|
assignmentId: string | null;
|
|
2540
2546
|
submissionId: string | null;
|
|
2541
|
-
modifiedAt: Date | null;
|
|
2542
2547
|
announcementId: string | null;
|
|
2548
|
+
modifiedAt: Date | null;
|
|
2543
2549
|
authorId: string;
|
|
2544
2550
|
isPinned: boolean;
|
|
2545
2551
|
parentCommentId: string | null;
|
|
@@ -2551,8 +2557,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2551
2557
|
content: string;
|
|
2552
2558
|
assignmentId: string | null;
|
|
2553
2559
|
submissionId: string | null;
|
|
2554
|
-
modifiedAt: Date | null;
|
|
2555
2560
|
announcementId: string | null;
|
|
2561
|
+
modifiedAt: Date | null;
|
|
2556
2562
|
authorId: string;
|
|
2557
2563
|
isPinned: boolean;
|
|
2558
2564
|
parentCommentId: string | null;
|
|
@@ -2595,8 +2601,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2595
2601
|
content: string;
|
|
2596
2602
|
assignmentId: string | null;
|
|
2597
2603
|
submissionId: string | null;
|
|
2598
|
-
modifiedAt: Date | null;
|
|
2599
2604
|
announcementId: string | null;
|
|
2605
|
+
modifiedAt: Date | null;
|
|
2600
2606
|
authorId: string;
|
|
2601
2607
|
isPinned: boolean;
|
|
2602
2608
|
parentCommentId: string | null;
|
|
@@ -2608,8 +2614,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2608
2614
|
content: string;
|
|
2609
2615
|
assignmentId: string | null;
|
|
2610
2616
|
submissionId: string | null;
|
|
2611
|
-
modifiedAt: Date | null;
|
|
2612
2617
|
announcementId: string | null;
|
|
2618
|
+
modifiedAt: Date | null;
|
|
2613
2619
|
authorId: string;
|
|
2614
2620
|
isPinned: boolean;
|
|
2615
2621
|
parentCommentId: string | null;
|
|
@@ -2654,8 +2660,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2654
2660
|
content: string;
|
|
2655
2661
|
assignmentId: string | null;
|
|
2656
2662
|
submissionId: string | null;
|
|
2657
|
-
modifiedAt: Date | null;
|
|
2658
2663
|
announcementId: string | null;
|
|
2664
|
+
modifiedAt: Date | null;
|
|
2659
2665
|
authorId: string;
|
|
2660
2666
|
isPinned: boolean;
|
|
2661
2667
|
parentCommentId: string | null;
|
|
@@ -2667,8 +2673,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2667
2673
|
content: string;
|
|
2668
2674
|
assignmentId: string | null;
|
|
2669
2675
|
submissionId: string | null;
|
|
2670
|
-
modifiedAt: Date | null;
|
|
2671
2676
|
announcementId: string | null;
|
|
2677
|
+
modifiedAt: Date | null;
|
|
2672
2678
|
authorId: string;
|
|
2673
2679
|
isPinned: boolean;
|
|
2674
2680
|
parentCommentId: string | null;
|
|
@@ -2762,6 +2768,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2762
2768
|
submissionId: string | null;
|
|
2763
2769
|
thumbnailId: string | null;
|
|
2764
2770
|
annotationId: string | null;
|
|
2771
|
+
conversationId: string | null;
|
|
2765
2772
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2766
2773
|
uploadUrl: string | null;
|
|
2767
2774
|
uploadExpiresAt: Date | null;
|
|
@@ -2773,7 +2780,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2773
2780
|
cleanupAt: Date | null;
|
|
2774
2781
|
classDraftId: string | null;
|
|
2775
2782
|
folderId: string | null;
|
|
2776
|
-
conversationId: string | null;
|
|
2777
2783
|
messageId: string | null;
|
|
2778
2784
|
announcementId: string | null;
|
|
2779
2785
|
discussionId: string | null;
|
|
@@ -2792,6 +2798,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2792
2798
|
submissionId: string | null;
|
|
2793
2799
|
thumbnailId: string | null;
|
|
2794
2800
|
annotationId: string | null;
|
|
2801
|
+
conversationId: string | null;
|
|
2795
2802
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2796
2803
|
uploadUrl: string | null;
|
|
2797
2804
|
uploadExpiresAt: Date | null;
|
|
@@ -2803,22 +2810,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2803
2810
|
cleanupAt: Date | null;
|
|
2804
2811
|
classDraftId: string | null;
|
|
2805
2812
|
folderId: string | null;
|
|
2806
|
-
conversationId: string | null;
|
|
2807
2813
|
messageId: string | null;
|
|
2808
2814
|
announcementId: string | null;
|
|
2809
2815
|
discussionId: string | null;
|
|
2810
2816
|
discussionReplyId: string | null;
|
|
2811
2817
|
schoolDevelopementProgramId: string | null;
|
|
2812
2818
|
})[];
|
|
2813
|
-
student: {
|
|
2814
|
-
id: string;
|
|
2815
|
-
username: string;
|
|
2816
|
-
profile: {
|
|
2817
|
-
profilePicture: string | null;
|
|
2818
|
-
displayName: string | null;
|
|
2819
|
-
profilePictureThumbnail: string | null;
|
|
2820
|
-
} | null;
|
|
2821
|
-
};
|
|
2822
2819
|
annotations: ({
|
|
2823
2820
|
thumbnail: {
|
|
2824
2821
|
path: string;
|
|
@@ -2832,6 +2829,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2832
2829
|
submissionId: string | null;
|
|
2833
2830
|
thumbnailId: string | null;
|
|
2834
2831
|
annotationId: string | null;
|
|
2832
|
+
conversationId: string | null;
|
|
2835
2833
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2836
2834
|
uploadUrl: string | null;
|
|
2837
2835
|
uploadExpiresAt: Date | null;
|
|
@@ -2843,7 +2841,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2843
2841
|
cleanupAt: Date | null;
|
|
2844
2842
|
classDraftId: string | null;
|
|
2845
2843
|
folderId: string | null;
|
|
2846
|
-
conversationId: string | null;
|
|
2847
2844
|
messageId: string | null;
|
|
2848
2845
|
announcementId: string | null;
|
|
2849
2846
|
discussionId: string | null;
|
|
@@ -2862,6 +2859,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2862
2859
|
submissionId: string | null;
|
|
2863
2860
|
thumbnailId: string | null;
|
|
2864
2861
|
annotationId: string | null;
|
|
2862
|
+
conversationId: string | null;
|
|
2865
2863
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
2866
2864
|
uploadUrl: string | null;
|
|
2867
2865
|
uploadExpiresAt: Date | null;
|
|
@@ -2873,19 +2871,27 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2873
2871
|
cleanupAt: Date | null;
|
|
2874
2872
|
classDraftId: string | null;
|
|
2875
2873
|
folderId: string | null;
|
|
2876
|
-
conversationId: string | null;
|
|
2877
2874
|
messageId: string | null;
|
|
2878
2875
|
announcementId: string | null;
|
|
2879
2876
|
discussionId: string | null;
|
|
2880
2877
|
discussionReplyId: string | null;
|
|
2881
2878
|
schoolDevelopementProgramId: string | null;
|
|
2882
2879
|
})[];
|
|
2880
|
+
student: {
|
|
2881
|
+
id: string;
|
|
2882
|
+
username: string;
|
|
2883
|
+
profile: {
|
|
2884
|
+
profilePicture: string | null;
|
|
2885
|
+
displayName: string | null;
|
|
2886
|
+
profilePictureThumbnail: string | null;
|
|
2887
|
+
} | null;
|
|
2888
|
+
};
|
|
2883
2889
|
} & {
|
|
2884
2890
|
id: string;
|
|
2885
2891
|
createdAt: Date;
|
|
2886
2892
|
assignmentId: string;
|
|
2887
|
-
modifiedAt: Date;
|
|
2888
2893
|
studentId: string;
|
|
2894
|
+
modifiedAt: Date;
|
|
2889
2895
|
extendedResponse: string | null;
|
|
2890
2896
|
gradeReceived: number | null;
|
|
2891
2897
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -2912,15 +2918,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2912
2918
|
id: string;
|
|
2913
2919
|
name: string;
|
|
2914
2920
|
} | null;
|
|
2915
|
-
teacher: {
|
|
2916
|
-
id: string;
|
|
2917
|
-
username: string;
|
|
2918
|
-
};
|
|
2919
2921
|
attachments: {
|
|
2920
2922
|
type: string;
|
|
2921
2923
|
id: string;
|
|
2922
2924
|
name: string;
|
|
2923
2925
|
}[];
|
|
2926
|
+
teacher: {
|
|
2927
|
+
id: string;
|
|
2928
|
+
username: string;
|
|
2929
|
+
};
|
|
2924
2930
|
eventAttached: {
|
|
2925
2931
|
id: string;
|
|
2926
2932
|
name: string | null;
|
|
@@ -2969,15 +2975,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2969
2975
|
id: string;
|
|
2970
2976
|
name: string;
|
|
2971
2977
|
} | null;
|
|
2972
|
-
teacher: {
|
|
2973
|
-
id: string;
|
|
2974
|
-
username: string;
|
|
2975
|
-
};
|
|
2976
2978
|
attachments: {
|
|
2977
2979
|
type: string;
|
|
2978
2980
|
id: string;
|
|
2979
2981
|
name: string;
|
|
2980
2982
|
}[];
|
|
2983
|
+
teacher: {
|
|
2984
|
+
id: string;
|
|
2985
|
+
username: string;
|
|
2986
|
+
};
|
|
2981
2987
|
eventAttached: {
|
|
2982
2988
|
id: string;
|
|
2983
2989
|
name: string | null;
|
|
@@ -3071,14 +3077,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3071
3077
|
classId: string;
|
|
3072
3078
|
order: number | null;
|
|
3073
3079
|
} | null;
|
|
3074
|
-
teacher: {
|
|
3075
|
-
id: string;
|
|
3076
|
-
username: string;
|
|
3077
|
-
email: string;
|
|
3078
|
-
password: string;
|
|
3079
|
-
verified: boolean;
|
|
3080
|
-
schoolId: string | null;
|
|
3081
|
-
};
|
|
3082
3080
|
attachments: {
|
|
3083
3081
|
path: string;
|
|
3084
3082
|
type: string;
|
|
@@ -3091,6 +3089,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3091
3089
|
submissionId: string | null;
|
|
3092
3090
|
thumbnailId: string | null;
|
|
3093
3091
|
annotationId: string | null;
|
|
3092
|
+
conversationId: string | null;
|
|
3094
3093
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
3095
3094
|
uploadUrl: string | null;
|
|
3096
3095
|
uploadExpiresAt: Date | null;
|
|
@@ -3102,13 +3101,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3102
3101
|
cleanupAt: Date | null;
|
|
3103
3102
|
classDraftId: string | null;
|
|
3104
3103
|
folderId: string | null;
|
|
3105
|
-
conversationId: string | null;
|
|
3106
3104
|
messageId: string | null;
|
|
3107
3105
|
announcementId: string | null;
|
|
3108
3106
|
discussionId: string | null;
|
|
3109
3107
|
discussionReplyId: string | null;
|
|
3110
3108
|
schoolDevelopementProgramId: string | null;
|
|
3111
3109
|
}[];
|
|
3110
|
+
teacher: {
|
|
3111
|
+
id: string;
|
|
3112
|
+
username: string;
|
|
3113
|
+
email: string;
|
|
3114
|
+
password: string;
|
|
3115
|
+
verified: boolean;
|
|
3116
|
+
termsAcceptedAt: Date | null;
|
|
3117
|
+
termsVersion: string | null;
|
|
3118
|
+
schoolId: string | null;
|
|
3119
|
+
};
|
|
3112
3120
|
eventAttached: {
|
|
3113
3121
|
id: string;
|
|
3114
3122
|
userId: string | null;
|
|
@@ -3169,14 +3177,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3169
3177
|
classId: string;
|
|
3170
3178
|
order: number | null;
|
|
3171
3179
|
} | null;
|
|
3172
|
-
teacher: {
|
|
3173
|
-
id: string;
|
|
3174
|
-
username: string;
|
|
3175
|
-
email: string;
|
|
3176
|
-
password: string;
|
|
3177
|
-
verified: boolean;
|
|
3178
|
-
schoolId: string | null;
|
|
3179
|
-
};
|
|
3180
3180
|
attachments: {
|
|
3181
3181
|
path: string;
|
|
3182
3182
|
type: string;
|
|
@@ -3189,6 +3189,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3189
3189
|
submissionId: string | null;
|
|
3190
3190
|
thumbnailId: string | null;
|
|
3191
3191
|
annotationId: string | null;
|
|
3192
|
+
conversationId: string | null;
|
|
3192
3193
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
3193
3194
|
uploadUrl: string | null;
|
|
3194
3195
|
uploadExpiresAt: Date | null;
|
|
@@ -3200,13 +3201,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3200
3201
|
cleanupAt: Date | null;
|
|
3201
3202
|
classDraftId: string | null;
|
|
3202
3203
|
folderId: string | null;
|
|
3203
|
-
conversationId: string | null;
|
|
3204
3204
|
messageId: string | null;
|
|
3205
3205
|
announcementId: string | null;
|
|
3206
3206
|
discussionId: string | null;
|
|
3207
3207
|
discussionReplyId: string | null;
|
|
3208
3208
|
schoolDevelopementProgramId: string | null;
|
|
3209
3209
|
}[];
|
|
3210
|
+
teacher: {
|
|
3211
|
+
id: string;
|
|
3212
|
+
username: string;
|
|
3213
|
+
email: string;
|
|
3214
|
+
password: string;
|
|
3215
|
+
verified: boolean;
|
|
3216
|
+
termsAcceptedAt: Date | null;
|
|
3217
|
+
termsVersion: string | null;
|
|
3218
|
+
schoolId: string | null;
|
|
3219
|
+
};
|
|
3210
3220
|
eventAttached: {
|
|
3211
3221
|
id: string;
|
|
3212
3222
|
userId: string | null;
|
|
@@ -3268,14 +3278,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3268
3278
|
classId: string;
|
|
3269
3279
|
order: number | null;
|
|
3270
3280
|
} | null;
|
|
3271
|
-
teacher: {
|
|
3272
|
-
id: string;
|
|
3273
|
-
username: string;
|
|
3274
|
-
email: string;
|
|
3275
|
-
password: string;
|
|
3276
|
-
verified: boolean;
|
|
3277
|
-
schoolId: string | null;
|
|
3278
|
-
};
|
|
3279
3281
|
attachments: {
|
|
3280
3282
|
path: string;
|
|
3281
3283
|
type: string;
|
|
@@ -3288,6 +3290,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3288
3290
|
submissionId: string | null;
|
|
3289
3291
|
thumbnailId: string | null;
|
|
3290
3292
|
annotationId: string | null;
|
|
3293
|
+
conversationId: string | null;
|
|
3291
3294
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
3292
3295
|
uploadUrl: string | null;
|
|
3293
3296
|
uploadExpiresAt: Date | null;
|
|
@@ -3299,13 +3302,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3299
3302
|
cleanupAt: Date | null;
|
|
3300
3303
|
classDraftId: string | null;
|
|
3301
3304
|
folderId: string | null;
|
|
3302
|
-
conversationId: string | null;
|
|
3303
3305
|
messageId: string | null;
|
|
3304
3306
|
announcementId: string | null;
|
|
3305
3307
|
discussionId: string | null;
|
|
3306
3308
|
discussionReplyId: string | null;
|
|
3307
3309
|
schoolDevelopementProgramId: string | null;
|
|
3308
3310
|
}[];
|
|
3311
|
+
teacher: {
|
|
3312
|
+
id: string;
|
|
3313
|
+
username: string;
|
|
3314
|
+
email: string;
|
|
3315
|
+
password: string;
|
|
3316
|
+
verified: boolean;
|
|
3317
|
+
termsAcceptedAt: Date | null;
|
|
3318
|
+
termsVersion: string | null;
|
|
3319
|
+
schoolId: string | null;
|
|
3320
|
+
};
|
|
3309
3321
|
eventAttached: {
|
|
3310
3322
|
id: string;
|
|
3311
3323
|
userId: string | null;
|
|
@@ -3366,14 +3378,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3366
3378
|
classId: string;
|
|
3367
3379
|
order: number | null;
|
|
3368
3380
|
} | null;
|
|
3369
|
-
teacher: {
|
|
3370
|
-
id: string;
|
|
3371
|
-
username: string;
|
|
3372
|
-
email: string;
|
|
3373
|
-
password: string;
|
|
3374
|
-
verified: boolean;
|
|
3375
|
-
schoolId: string | null;
|
|
3376
|
-
};
|
|
3377
3381
|
attachments: {
|
|
3378
3382
|
path: string;
|
|
3379
3383
|
type: string;
|
|
@@ -3386,6 +3390,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3386
3390
|
submissionId: string | null;
|
|
3387
3391
|
thumbnailId: string | null;
|
|
3388
3392
|
annotationId: string | null;
|
|
3393
|
+
conversationId: string | null;
|
|
3389
3394
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
3390
3395
|
uploadUrl: string | null;
|
|
3391
3396
|
uploadExpiresAt: Date | null;
|
|
@@ -3397,13 +3402,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3397
3402
|
cleanupAt: Date | null;
|
|
3398
3403
|
classDraftId: string | null;
|
|
3399
3404
|
folderId: string | null;
|
|
3400
|
-
conversationId: string | null;
|
|
3401
3405
|
messageId: string | null;
|
|
3402
3406
|
announcementId: string | null;
|
|
3403
3407
|
discussionId: string | null;
|
|
3404
3408
|
discussionReplyId: string | null;
|
|
3405
3409
|
schoolDevelopementProgramId: string | null;
|
|
3406
3410
|
}[];
|
|
3411
|
+
teacher: {
|
|
3412
|
+
id: string;
|
|
3413
|
+
username: string;
|
|
3414
|
+
email: string;
|
|
3415
|
+
password: string;
|
|
3416
|
+
verified: boolean;
|
|
3417
|
+
termsAcceptedAt: Date | null;
|
|
3418
|
+
termsVersion: string | null;
|
|
3419
|
+
schoolId: string | null;
|
|
3420
|
+
};
|
|
3407
3421
|
eventAttached: {
|
|
3408
3422
|
id: string;
|
|
3409
3423
|
userId: string | null;
|
|
@@ -3625,6 +3639,95 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3625
3639
|
};
|
|
3626
3640
|
meta: object;
|
|
3627
3641
|
}>;
|
|
3642
|
+
exportData: import("@trpc/server").TRPCQueryProcedure<{
|
|
3643
|
+
input: void;
|
|
3644
|
+
output: {
|
|
3645
|
+
exportedAt: string;
|
|
3646
|
+
user: {
|
|
3647
|
+
id: string;
|
|
3648
|
+
username: string;
|
|
3649
|
+
email: string;
|
|
3650
|
+
verified: boolean;
|
|
3651
|
+
termsAcceptedAt: Date | null;
|
|
3652
|
+
termsVersion: string | null;
|
|
3653
|
+
profile: {
|
|
3654
|
+
id: string;
|
|
3655
|
+
userId: string;
|
|
3656
|
+
displayName: string | null;
|
|
3657
|
+
bio: string | null;
|
|
3658
|
+
location: string | null;
|
|
3659
|
+
website: string | null;
|
|
3660
|
+
createdAt: Date;
|
|
3661
|
+
updatedAt: Date;
|
|
3662
|
+
profilePicture: string | null;
|
|
3663
|
+
profilePictureThumbnail: string | null;
|
|
3664
|
+
} | null;
|
|
3665
|
+
teacherIn: {
|
|
3666
|
+
section: string;
|
|
3667
|
+
id: string;
|
|
3668
|
+
name: string;
|
|
3669
|
+
subject: string;
|
|
3670
|
+
}[];
|
|
3671
|
+
studentIn: {
|
|
3672
|
+
section: string;
|
|
3673
|
+
id: string;
|
|
3674
|
+
name: string;
|
|
3675
|
+
subject: string;
|
|
3676
|
+
}[];
|
|
3677
|
+
submissions: {
|
|
3678
|
+
assignment: {
|
|
3679
|
+
id: string;
|
|
3680
|
+
classId: string;
|
|
3681
|
+
title: string;
|
|
3682
|
+
};
|
|
3683
|
+
id: string;
|
|
3684
|
+
createdAt: Date;
|
|
3685
|
+
extendedResponse: string | null;
|
|
3686
|
+
gradeReceived: number | null;
|
|
3687
|
+
submittedAt: Date | null;
|
|
3688
|
+
}[];
|
|
3689
|
+
events: {
|
|
3690
|
+
id: string;
|
|
3691
|
+
location: string | null;
|
|
3692
|
+
name: string | null;
|
|
3693
|
+
startTime: Date;
|
|
3694
|
+
endTime: Date;
|
|
3695
|
+
remarks: string | null;
|
|
3696
|
+
}[];
|
|
3697
|
+
notificationsReceived: {
|
|
3698
|
+
id: string;
|
|
3699
|
+
createdAt: Date;
|
|
3700
|
+
title: string;
|
|
3701
|
+
content: string;
|
|
3702
|
+
read: boolean;
|
|
3703
|
+
}[];
|
|
3704
|
+
schoolMemberships: {
|
|
3705
|
+
status: import(".prisma/client").$Enums.SchoolMembershipStatus;
|
|
3706
|
+
school: {
|
|
3707
|
+
id: string;
|
|
3708
|
+
name: string;
|
|
3709
|
+
};
|
|
3710
|
+
role: import(".prisma/client").$Enums.SchoolMembershipRole;
|
|
3711
|
+
}[];
|
|
3712
|
+
sentMessages: {
|
|
3713
|
+
id: string;
|
|
3714
|
+
createdAt: Date;
|
|
3715
|
+
content: string;
|
|
3716
|
+
conversationId: string;
|
|
3717
|
+
}[];
|
|
3718
|
+
};
|
|
3719
|
+
};
|
|
3720
|
+
meta: object;
|
|
3721
|
+
}>;
|
|
3722
|
+
deleteAccount: import("@trpc/server").TRPCMutationProcedure<{
|
|
3723
|
+
input: {
|
|
3724
|
+
confirmUsername: string;
|
|
3725
|
+
};
|
|
3726
|
+
output: {
|
|
3727
|
+
success: boolean;
|
|
3728
|
+
};
|
|
3729
|
+
meta: object;
|
|
3730
|
+
}>;
|
|
3628
3731
|
}>>;
|
|
3629
3732
|
section: import("@trpc/server").TRPCBuiltRouter<{
|
|
3630
3733
|
ctx: import("../trpc.js").Context;
|
|
@@ -3882,6 +3985,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3882
3985
|
email: string;
|
|
3883
3986
|
password: string;
|
|
3884
3987
|
verified: boolean;
|
|
3988
|
+
termsAcceptedAt: Date | null;
|
|
3989
|
+
termsVersion: string | null;
|
|
3885
3990
|
schoolId: string | null;
|
|
3886
3991
|
} | null;
|
|
3887
3992
|
class: ({
|
|
@@ -3927,6 +4032,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3927
4032
|
title: string;
|
|
3928
4033
|
dueDate: Date;
|
|
3929
4034
|
maxGrade: number | null;
|
|
4035
|
+
attachments: {
|
|
4036
|
+
type: string;
|
|
4037
|
+
id: string;
|
|
4038
|
+
name: string;
|
|
4039
|
+
}[];
|
|
3930
4040
|
instructions: string;
|
|
3931
4041
|
graded: boolean;
|
|
3932
4042
|
weight: number;
|
|
@@ -3934,11 +4044,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3934
4044
|
id: string;
|
|
3935
4045
|
username: string;
|
|
3936
4046
|
};
|
|
3937
|
-
attachments: {
|
|
3938
|
-
type: string;
|
|
3939
|
-
id: string;
|
|
3940
|
-
name: string;
|
|
3941
|
-
}[];
|
|
3942
4047
|
}[];
|
|
3943
4048
|
} & {
|
|
3944
4049
|
id: string;
|
|
@@ -4031,15 +4136,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4031
4136
|
id: string;
|
|
4032
4137
|
name: string;
|
|
4033
4138
|
} | null;
|
|
4034
|
-
teacher: {
|
|
4035
|
-
id: string;
|
|
4036
|
-
username: string;
|
|
4037
|
-
};
|
|
4038
4139
|
attachments: {
|
|
4039
4140
|
type: string;
|
|
4040
4141
|
id: string;
|
|
4041
4142
|
name: string;
|
|
4042
4143
|
}[];
|
|
4144
|
+
teacher: {
|
|
4145
|
+
id: string;
|
|
4146
|
+
username: string;
|
|
4147
|
+
};
|
|
4043
4148
|
} & {
|
|
4044
4149
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
4045
4150
|
id: string;
|
|
@@ -4080,15 +4185,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4080
4185
|
id: string;
|
|
4081
4186
|
name: string;
|
|
4082
4187
|
} | null;
|
|
4083
|
-
teacher: {
|
|
4084
|
-
id: string;
|
|
4085
|
-
username: string;
|
|
4086
|
-
};
|
|
4087
4188
|
attachments: {
|
|
4088
4189
|
type: string;
|
|
4089
4190
|
id: string;
|
|
4090
4191
|
name: string;
|
|
4091
4192
|
}[];
|
|
4193
|
+
teacher: {
|
|
4194
|
+
id: string;
|
|
4195
|
+
username: string;
|
|
4196
|
+
};
|
|
4092
4197
|
} & {
|
|
4093
4198
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
4094
4199
|
id: string;
|
|
@@ -4133,6 +4238,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4133
4238
|
title: string;
|
|
4134
4239
|
dueDate: Date;
|
|
4135
4240
|
maxGrade: number | null;
|
|
4241
|
+
attachments: {
|
|
4242
|
+
type: string;
|
|
4243
|
+
id: string;
|
|
4244
|
+
name: string;
|
|
4245
|
+
}[];
|
|
4136
4246
|
instructions: string;
|
|
4137
4247
|
graded: boolean;
|
|
4138
4248
|
weight: number;
|
|
@@ -4140,11 +4250,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4140
4250
|
id: string;
|
|
4141
4251
|
username: string;
|
|
4142
4252
|
};
|
|
4143
|
-
attachments: {
|
|
4144
|
-
type: string;
|
|
4145
|
-
id: string;
|
|
4146
|
-
name: string;
|
|
4147
|
-
}[];
|
|
4148
4253
|
}[];
|
|
4149
4254
|
};
|
|
4150
4255
|
meta: object;
|
|
@@ -4172,7 +4277,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4172
4277
|
username: string;
|
|
4173
4278
|
email: string;
|
|
4174
4279
|
password: string;
|
|
4280
|
+
termsVersion: "2025-11";
|
|
4175
4281
|
confirmPassword: string;
|
|
4282
|
+
agreeToTerms: true;
|
|
4176
4283
|
};
|
|
4177
4284
|
output: {
|
|
4178
4285
|
user: {
|
|
@@ -4449,6 +4556,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4449
4556
|
submissionId: string | null;
|
|
4450
4557
|
thumbnailId: string | null;
|
|
4451
4558
|
annotationId: string | null;
|
|
4559
|
+
conversationId: string | null;
|
|
4452
4560
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
4453
4561
|
uploadUrl: string | null;
|
|
4454
4562
|
uploadExpiresAt: Date | null;
|
|
@@ -4460,7 +4568,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4460
4568
|
cleanupAt: Date | null;
|
|
4461
4569
|
classDraftId: string | null;
|
|
4462
4570
|
folderId: string | null;
|
|
4463
|
-
conversationId: string | null;
|
|
4464
4571
|
messageId: string | null;
|
|
4465
4572
|
announcementId: string | null;
|
|
4466
4573
|
discussionId: string | null;
|
|
@@ -4491,6 +4598,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4491
4598
|
submissionId: string | null;
|
|
4492
4599
|
thumbnailId: string | null;
|
|
4493
4600
|
annotationId: string | null;
|
|
4601
|
+
conversationId: string | null;
|
|
4494
4602
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
4495
4603
|
uploadUrl: string | null;
|
|
4496
4604
|
uploadExpiresAt: Date | null;
|
|
@@ -4502,7 +4610,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4502
4610
|
cleanupAt: Date | null;
|
|
4503
4611
|
classDraftId: string | null;
|
|
4504
4612
|
folderId: string | null;
|
|
4505
|
-
conversationId: string | null;
|
|
4506
4613
|
messageId: string | null;
|
|
4507
4614
|
announcementId: string | null;
|
|
4508
4615
|
discussionId: string | null;
|
|
@@ -4875,9 +4982,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4875
4982
|
createdAt: Date;
|
|
4876
4983
|
title: string;
|
|
4877
4984
|
content: string;
|
|
4985
|
+
senderId: string | null;
|
|
4878
4986
|
read: boolean;
|
|
4879
4987
|
receiverId: string;
|
|
4880
|
-
senderId: string | null;
|
|
4881
4988
|
})[];
|
|
4882
4989
|
meta: object;
|
|
4883
4990
|
}>;
|
|
@@ -4897,9 +5004,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4897
5004
|
createdAt: Date;
|
|
4898
5005
|
title: string;
|
|
4899
5006
|
content: string;
|
|
5007
|
+
senderId: string | null;
|
|
4900
5008
|
read: boolean;
|
|
4901
5009
|
receiverId: string;
|
|
4902
|
-
senderId: string | null;
|
|
4903
5010
|
};
|
|
4904
5011
|
meta: object;
|
|
4905
5012
|
}>;
|
|
@@ -4914,9 +5021,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4914
5021
|
createdAt: Date;
|
|
4915
5022
|
title: string;
|
|
4916
5023
|
content: string;
|
|
5024
|
+
senderId: string | null;
|
|
4917
5025
|
read: boolean;
|
|
4918
5026
|
receiverId: string;
|
|
4919
|
-
senderId: string | null;
|
|
4920
5027
|
};
|
|
4921
5028
|
meta: object;
|
|
4922
5029
|
}>;
|
|
@@ -4945,9 +5052,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4945
5052
|
createdAt: Date;
|
|
4946
5053
|
title: string;
|
|
4947
5054
|
content: string;
|
|
5055
|
+
senderId: string | null;
|
|
4948
5056
|
read: boolean;
|
|
4949
5057
|
receiverId: string;
|
|
4950
|
-
senderId: string | null;
|
|
4951
5058
|
};
|
|
4952
5059
|
meta: object;
|
|
4953
5060
|
}>;
|
|
@@ -4993,8 +5100,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4993
5100
|
} & {
|
|
4994
5101
|
id: string;
|
|
4995
5102
|
userId: string;
|
|
4996
|
-
conversationId: string;
|
|
4997
5103
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
5104
|
+
conversationId: string;
|
|
4998
5105
|
joinedAt: Date;
|
|
4999
5106
|
hiddenAt: Date | null;
|
|
5000
5107
|
lastViewedAt: Date | null;
|
|
@@ -5014,9 +5121,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5014
5121
|
id: string;
|
|
5015
5122
|
createdAt: Date;
|
|
5016
5123
|
content: string;
|
|
5124
|
+
senderId: string;
|
|
5017
5125
|
conversationId: string;
|
|
5018
5126
|
runJobId: string | null;
|
|
5019
|
-
senderId: string;
|
|
5020
5127
|
};
|
|
5021
5128
|
unreadCount: number;
|
|
5022
5129
|
unreadMentionCount: number;
|
|
@@ -5057,8 +5164,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5057
5164
|
} & {
|
|
5058
5165
|
id: string;
|
|
5059
5166
|
userId: string;
|
|
5060
|
-
conversationId: string;
|
|
5061
5167
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
5168
|
+
conversationId: string;
|
|
5062
5169
|
joinedAt: Date;
|
|
5063
5170
|
hiddenAt: Date | null;
|
|
5064
5171
|
lastViewedAt: Date | null;
|
|
@@ -5091,8 +5198,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5091
5198
|
} & {
|
|
5092
5199
|
id: string;
|
|
5093
5200
|
userId: string;
|
|
5094
|
-
conversationId: string;
|
|
5095
5201
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
5202
|
+
conversationId: string;
|
|
5096
5203
|
joinedAt: Date;
|
|
5097
5204
|
hiddenAt: Date | null;
|
|
5098
5205
|
lastViewedAt: Date | null;
|
|
@@ -5135,8 +5242,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5135
5242
|
} & {
|
|
5136
5243
|
id: string;
|
|
5137
5244
|
userId: string;
|
|
5138
|
-
conversationId: string;
|
|
5139
5245
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
5246
|
+
conversationId: string;
|
|
5140
5247
|
joinedAt: Date;
|
|
5141
5248
|
hiddenAt: Date | null;
|
|
5142
5249
|
lastViewedAt: Date | null;
|
|
@@ -5170,8 +5277,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5170
5277
|
} & {
|
|
5171
5278
|
id: string;
|
|
5172
5279
|
userId: string;
|
|
5173
|
-
conversationId: string;
|
|
5174
5280
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
5281
|
+
conversationId: string;
|
|
5175
5282
|
joinedAt: Date;
|
|
5176
5283
|
hiddenAt: Date | null;
|
|
5177
5284
|
lastViewedAt: Date | null;
|
|
@@ -5440,8 +5547,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5440
5547
|
} & {
|
|
5441
5548
|
id: string;
|
|
5442
5549
|
userId: string;
|
|
5443
|
-
conversationId: string;
|
|
5444
5550
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
5551
|
+
conversationId: string;
|
|
5445
5552
|
joinedAt: Date;
|
|
5446
5553
|
hiddenAt: Date | null;
|
|
5447
5554
|
lastViewedAt: Date | null;
|
|
@@ -5499,8 +5606,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5499
5606
|
} & {
|
|
5500
5607
|
id: string;
|
|
5501
5608
|
userId: string;
|
|
5502
|
-
conversationId: string;
|
|
5503
5609
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
5610
|
+
conversationId: string;
|
|
5504
5611
|
joinedAt: Date;
|
|
5505
5612
|
hiddenAt: Date | null;
|
|
5506
5613
|
lastViewedAt: Date | null;
|
|
@@ -5565,9 +5672,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5565
5672
|
id: string;
|
|
5566
5673
|
createdAt: Date;
|
|
5567
5674
|
content: string;
|
|
5675
|
+
senderId: string;
|
|
5568
5676
|
conversationId: string;
|
|
5569
5677
|
runJobId: string | null;
|
|
5570
|
-
senderId: string;
|
|
5571
5678
|
};
|
|
5572
5679
|
messageCount: number;
|
|
5573
5680
|
}[];
|
|
@@ -5746,25 +5853,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5746
5853
|
id: string;
|
|
5747
5854
|
};
|
|
5748
5855
|
output: {
|
|
5749
|
-
type: string;
|
|
5750
5856
|
status: string;
|
|
5751
5857
|
id: string;
|
|
5752
|
-
website: string | null;
|
|
5753
5858
|
name: string;
|
|
5754
5859
|
submittedAt: Date | null;
|
|
5755
|
-
address: string;
|
|
5756
5860
|
city: string;
|
|
5757
5861
|
country: string;
|
|
5758
|
-
numberOfStudents: number;
|
|
5759
|
-
numberOfTeachers: number;
|
|
5760
|
-
contactName: string | null;
|
|
5761
|
-
contactRole: string | null;
|
|
5762
|
-
contactEmail: string | null;
|
|
5763
|
-
contactPhone: string | null;
|
|
5764
|
-
eligibilityInformation: string | null;
|
|
5765
|
-
whyHelp: string | null;
|
|
5766
|
-
additionalInformation: string | null;
|
|
5767
|
-
reviewedAt: Date | null;
|
|
5768
5862
|
} | null;
|
|
5769
5863
|
meta: object;
|
|
5770
5864
|
}>;
|
|
@@ -5827,11 +5921,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5827
5921
|
id: string;
|
|
5828
5922
|
createdAt: Date;
|
|
5829
5923
|
updatedAt: Date;
|
|
5830
|
-
|
|
5831
|
-
worksheetId: string;
|
|
5924
|
+
points: number;
|
|
5832
5925
|
question: string;
|
|
5926
|
+
worksheetId: string;
|
|
5927
|
+
order: number | null;
|
|
5833
5928
|
answer: string;
|
|
5834
|
-
points: number;
|
|
5835
5929
|
}[];
|
|
5836
5930
|
} & {
|
|
5837
5931
|
status: import(".prisma/client").$Enums.JobStatus | null;
|
|
@@ -5840,8 +5934,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5840
5934
|
updatedAt: Date;
|
|
5841
5935
|
name: string;
|
|
5842
5936
|
classId: string;
|
|
5843
|
-
sourceUrl: string | null;
|
|
5844
5937
|
runJobId: string | null;
|
|
5938
|
+
sourceUrl: string | null;
|
|
5845
5939
|
};
|
|
5846
5940
|
meta: object;
|
|
5847
5941
|
}>;
|
|
@@ -5876,8 +5970,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5876
5970
|
updatedAt: Date;
|
|
5877
5971
|
name: string;
|
|
5878
5972
|
classId: string;
|
|
5879
|
-
sourceUrl: string | null;
|
|
5880
5973
|
runJobId: string | null;
|
|
5974
|
+
sourceUrl: string | null;
|
|
5881
5975
|
}[];
|
|
5882
5976
|
meta: object;
|
|
5883
5977
|
}>;
|
|
@@ -5893,8 +5987,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5893
5987
|
updatedAt: Date;
|
|
5894
5988
|
name: string;
|
|
5895
5989
|
classId: string;
|
|
5896
|
-
sourceUrl: string | null;
|
|
5897
5990
|
runJobId: string | null;
|
|
5991
|
+
sourceUrl: string | null;
|
|
5898
5992
|
};
|
|
5899
5993
|
meta: object;
|
|
5900
5994
|
}>;
|
|
@@ -5909,8 +6003,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5909
6003
|
updatedAt: Date;
|
|
5910
6004
|
name: string;
|
|
5911
6005
|
classId: string;
|
|
5912
|
-
sourceUrl: string | null;
|
|
5913
6006
|
runJobId: string | null;
|
|
6007
|
+
sourceUrl: string | null;
|
|
5914
6008
|
};
|
|
5915
6009
|
meta: object;
|
|
5916
6010
|
}>;
|
|
@@ -5927,8 +6021,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5927
6021
|
updatedAt: Date;
|
|
5928
6022
|
name: string;
|
|
5929
6023
|
classId: string;
|
|
5930
|
-
sourceUrl: string | null;
|
|
5931
6024
|
runJobId: string | null;
|
|
6025
|
+
sourceUrl: string | null;
|
|
5932
6026
|
};
|
|
5933
6027
|
meta: object;
|
|
5934
6028
|
}>;
|
|
@@ -5946,8 +6040,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5946
6040
|
updatedAt: Date;
|
|
5947
6041
|
name: string;
|
|
5948
6042
|
classId: string;
|
|
5949
|
-
sourceUrl: string | null;
|
|
5950
6043
|
runJobId: string | null;
|
|
6044
|
+
sourceUrl: string | null;
|
|
5951
6045
|
};
|
|
5952
6046
|
meta: object;
|
|
5953
6047
|
}>;
|
|
@@ -6022,13 +6116,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6022
6116
|
addQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
6023
6117
|
input: {
|
|
6024
6118
|
type: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION";
|
|
6025
|
-
worksheetId: string;
|
|
6026
6119
|
question: string;
|
|
6120
|
+
worksheetId: string;
|
|
6027
6121
|
answer: string;
|
|
6028
6122
|
options?: any;
|
|
6029
6123
|
markScheme?: any;
|
|
6030
|
-
order?: number | undefined;
|
|
6031
6124
|
points?: number | undefined;
|
|
6125
|
+
order?: number | undefined;
|
|
6032
6126
|
};
|
|
6033
6127
|
output: {
|
|
6034
6128
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
@@ -6037,11 +6131,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6037
6131
|
id: string;
|
|
6038
6132
|
createdAt: Date;
|
|
6039
6133
|
updatedAt: Date;
|
|
6040
|
-
|
|
6041
|
-
worksheetId: string;
|
|
6134
|
+
points: number;
|
|
6042
6135
|
question: string;
|
|
6136
|
+
worksheetId: string;
|
|
6137
|
+
order: number | null;
|
|
6043
6138
|
answer: string;
|
|
6044
|
-
points: number;
|
|
6045
6139
|
};
|
|
6046
6140
|
meta: object;
|
|
6047
6141
|
}>;
|
|
@@ -6059,14 +6153,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6059
6153
|
}>;
|
|
6060
6154
|
updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
6061
6155
|
input: {
|
|
6062
|
-
worksheetId: string;
|
|
6063
6156
|
questionId: string;
|
|
6157
|
+
worksheetId: string;
|
|
6064
6158
|
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
6065
6159
|
options?: any;
|
|
6066
6160
|
markScheme?: any;
|
|
6161
|
+
points?: number | undefined;
|
|
6067
6162
|
question?: string | undefined;
|
|
6068
6163
|
answer?: string | undefined;
|
|
6069
|
-
points?: number | undefined;
|
|
6070
6164
|
};
|
|
6071
6165
|
output: {
|
|
6072
6166
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
@@ -6075,18 +6169,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6075
6169
|
id: string;
|
|
6076
6170
|
createdAt: Date;
|
|
6077
6171
|
updatedAt: Date;
|
|
6078
|
-
|
|
6079
|
-
worksheetId: string;
|
|
6172
|
+
points: number;
|
|
6080
6173
|
question: string;
|
|
6174
|
+
worksheetId: string;
|
|
6175
|
+
order: number | null;
|
|
6081
6176
|
answer: string;
|
|
6082
|
-
points: number;
|
|
6083
6177
|
};
|
|
6084
6178
|
meta: object;
|
|
6085
6179
|
}>;
|
|
6086
6180
|
deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
6087
6181
|
input: {
|
|
6088
|
-
worksheetId: string;
|
|
6089
6182
|
questionId: string;
|
|
6183
|
+
worksheetId: string;
|
|
6090
6184
|
};
|
|
6091
6185
|
output: {
|
|
6092
6186
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
@@ -6095,11 +6189,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6095
6189
|
id: string;
|
|
6096
6190
|
createdAt: Date;
|
|
6097
6191
|
updatedAt: Date;
|
|
6098
|
-
|
|
6099
|
-
worksheetId: string;
|
|
6192
|
+
points: number;
|
|
6100
6193
|
question: string;
|
|
6194
|
+
worksheetId: string;
|
|
6195
|
+
order: number | null;
|
|
6101
6196
|
answer: string;
|
|
6102
|
-
points: number;
|
|
6103
6197
|
};
|
|
6104
6198
|
meta: object;
|
|
6105
6199
|
}>;
|
|
@@ -6120,14 +6214,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6120
6214
|
createdAt: Date;
|
|
6121
6215
|
updatedAt: Date | null;
|
|
6122
6216
|
feedback: string | null;
|
|
6123
|
-
studentId: string;
|
|
6124
6217
|
runJobId: string | null;
|
|
6125
|
-
points: number;
|
|
6126
6218
|
response: string;
|
|
6127
6219
|
isCorrect: boolean;
|
|
6128
6220
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
6129
|
-
|
|
6221
|
+
points: number;
|
|
6222
|
+
studentId: string;
|
|
6130
6223
|
questionId: string;
|
|
6224
|
+
studentWorksheetResponseId: string | null;
|
|
6131
6225
|
})[];
|
|
6132
6226
|
} & {
|
|
6133
6227
|
id: string;
|
|
@@ -6135,9 +6229,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6135
6229
|
updatedAt: Date;
|
|
6136
6230
|
submissionId: string | null;
|
|
6137
6231
|
studentId: string;
|
|
6232
|
+
worksheetId: string;
|
|
6138
6233
|
submittedAt: Date | null;
|
|
6139
6234
|
submitted: boolean;
|
|
6140
|
-
worksheetId: string;
|
|
6141
6235
|
};
|
|
6142
6236
|
meta: object;
|
|
6143
6237
|
}>;
|
|
@@ -6154,14 +6248,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6154
6248
|
createdAt: Date;
|
|
6155
6249
|
updatedAt: Date | null;
|
|
6156
6250
|
feedback: string | null;
|
|
6157
|
-
studentId: string;
|
|
6158
6251
|
runJobId: string | null;
|
|
6159
|
-
points: number;
|
|
6160
6252
|
response: string;
|
|
6161
6253
|
isCorrect: boolean;
|
|
6162
6254
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
6163
|
-
|
|
6255
|
+
points: number;
|
|
6256
|
+
studentId: string;
|
|
6164
6257
|
questionId: string;
|
|
6258
|
+
studentWorksheetResponseId: string | null;
|
|
6165
6259
|
}[];
|
|
6166
6260
|
} & {
|
|
6167
6261
|
id: string;
|
|
@@ -6169,9 +6263,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6169
6263
|
updatedAt: Date;
|
|
6170
6264
|
submissionId: string | null;
|
|
6171
6265
|
studentId: string;
|
|
6266
|
+
worksheetId: string;
|
|
6172
6267
|
submittedAt: Date | null;
|
|
6173
6268
|
submitted: boolean;
|
|
6174
|
-
worksheetId: string;
|
|
6175
6269
|
};
|
|
6176
6270
|
meta: object;
|
|
6177
6271
|
}>;
|
|
@@ -6186,14 +6280,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6186
6280
|
createdAt: Date;
|
|
6187
6281
|
updatedAt: Date | null;
|
|
6188
6282
|
feedback: string | null;
|
|
6189
|
-
studentId: string;
|
|
6190
6283
|
runJobId: string | null;
|
|
6191
|
-
points: number;
|
|
6192
6284
|
response: string;
|
|
6193
6285
|
isCorrect: boolean;
|
|
6194
6286
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
6195
|
-
|
|
6287
|
+
points: number;
|
|
6288
|
+
studentId: string;
|
|
6196
6289
|
questionId: string;
|
|
6290
|
+
studentWorksheetResponseId: string | null;
|
|
6197
6291
|
};
|
|
6198
6292
|
meta: object;
|
|
6199
6293
|
}>;
|
|
@@ -6208,26 +6302,26 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6208
6302
|
createdAt: Date;
|
|
6209
6303
|
updatedAt: Date | null;
|
|
6210
6304
|
feedback: string | null;
|
|
6211
|
-
studentId: string;
|
|
6212
6305
|
runJobId: string | null;
|
|
6213
|
-
points: number;
|
|
6214
6306
|
response: string;
|
|
6215
6307
|
isCorrect: boolean;
|
|
6216
6308
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
6217
|
-
|
|
6309
|
+
points: number;
|
|
6310
|
+
studentId: string;
|
|
6218
6311
|
questionId: string;
|
|
6312
|
+
studentWorksheetResponseId: string | null;
|
|
6219
6313
|
} | null;
|
|
6220
6314
|
meta: object;
|
|
6221
6315
|
}>;
|
|
6222
6316
|
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
6223
6317
|
input: {
|
|
6224
6318
|
isCorrect: boolean;
|
|
6225
|
-
studentWorksheetResponseId: string;
|
|
6226
6319
|
questionId: string;
|
|
6320
|
+
studentWorksheetResponseId: string;
|
|
6227
6321
|
feedback?: string | undefined;
|
|
6228
|
-
points?: number | undefined;
|
|
6229
6322
|
response?: string | undefined;
|
|
6230
6323
|
markschemeState?: any;
|
|
6324
|
+
points?: number | undefined;
|
|
6231
6325
|
responseId?: string | undefined;
|
|
6232
6326
|
};
|
|
6233
6327
|
output: {
|
|
@@ -6236,14 +6330,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6236
6330
|
createdAt: Date;
|
|
6237
6331
|
updatedAt: Date | null;
|
|
6238
6332
|
feedback: string | null;
|
|
6239
|
-
studentId: string;
|
|
6240
6333
|
runJobId: string | null;
|
|
6241
|
-
points: number;
|
|
6242
6334
|
response: string;
|
|
6243
6335
|
isCorrect: boolean;
|
|
6244
6336
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
6245
|
-
|
|
6337
|
+
points: number;
|
|
6338
|
+
studentId: string;
|
|
6246
6339
|
questionId: string;
|
|
6340
|
+
studentWorksheetResponseId: string | null;
|
|
6247
6341
|
};
|
|
6248
6342
|
meta: object;
|
|
6249
6343
|
}>;
|
|
@@ -6258,8 +6352,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6258
6352
|
content: string;
|
|
6259
6353
|
assignmentId: string | null;
|
|
6260
6354
|
submissionId: string | null;
|
|
6261
|
-
modifiedAt: Date | null;
|
|
6262
6355
|
announcementId: string | null;
|
|
6356
|
+
modifiedAt: Date | null;
|
|
6263
6357
|
authorId: string;
|
|
6264
6358
|
isPinned: boolean;
|
|
6265
6359
|
parentCommentId: string | null;
|
|
@@ -6299,8 +6393,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6299
6393
|
updatedAt: Date;
|
|
6300
6394
|
name: string;
|
|
6301
6395
|
classId: string;
|
|
6302
|
-
sourceUrl: string | null;
|
|
6303
6396
|
runJobId: string | null;
|
|
6397
|
+
sourceUrl: string | null;
|
|
6304
6398
|
};
|
|
6305
6399
|
meta: object;
|
|
6306
6400
|
}>;
|
|
@@ -6344,8 +6438,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6344
6438
|
content: string;
|
|
6345
6439
|
assignmentId: string | null;
|
|
6346
6440
|
submissionId: string | null;
|
|
6347
|
-
modifiedAt: Date | null;
|
|
6348
6441
|
announcementId: string | null;
|
|
6442
|
+
modifiedAt: Date | null;
|
|
6349
6443
|
isPinned: boolean;
|
|
6350
6444
|
author: {
|
|
6351
6445
|
id: string;
|
|
@@ -6380,8 +6474,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6380
6474
|
content: string;
|
|
6381
6475
|
assignmentId: string | null;
|
|
6382
6476
|
submissionId: string | null;
|
|
6383
|
-
modifiedAt: Date | null;
|
|
6384
6477
|
announcementId: string | null;
|
|
6478
|
+
modifiedAt: Date | null;
|
|
6385
6479
|
authorId: string;
|
|
6386
6480
|
isPinned: boolean;
|
|
6387
6481
|
parentCommentId: string | null;
|
|
@@ -6400,8 +6494,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6400
6494
|
content: string;
|
|
6401
6495
|
assignmentId: string | null;
|
|
6402
6496
|
submissionId: string | null;
|
|
6403
|
-
modifiedAt: Date | null;
|
|
6404
6497
|
announcementId: string | null;
|
|
6498
|
+
modifiedAt: Date | null;
|
|
6405
6499
|
authorId: string;
|
|
6406
6500
|
isPinned: boolean;
|
|
6407
6501
|
parentCommentId: string | null;
|
|
@@ -6420,8 +6514,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6420
6514
|
content: string;
|
|
6421
6515
|
assignmentId: string | null;
|
|
6422
6516
|
submissionId: string | null;
|
|
6423
|
-
modifiedAt: Date | null;
|
|
6424
6517
|
announcementId: string | null;
|
|
6518
|
+
modifiedAt: Date | null;
|
|
6425
6519
|
authorId: string;
|
|
6426
6520
|
isPinned: boolean;
|
|
6427
6521
|
parentCommentId: string | null;
|
|
@@ -6449,8 +6543,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6449
6543
|
content: string;
|
|
6450
6544
|
assignmentId: string | null;
|
|
6451
6545
|
submissionId: string | null;
|
|
6452
|
-
modifiedAt: Date | null;
|
|
6453
6546
|
announcementId: string | null;
|
|
6547
|
+
modifiedAt: Date | null;
|
|
6454
6548
|
authorId: string;
|
|
6455
6549
|
isPinned: boolean;
|
|
6456
6550
|
parentCommentId: string | null;
|
|
@@ -6745,7 +6839,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6745
6839
|
query: string;
|
|
6746
6840
|
results: {
|
|
6747
6841
|
id: string;
|
|
6748
|
-
type: "class" | "file" | "assignment" | "announcement" | "section" | "event" | "worksheet" | "syllabus";
|
|
6842
|
+
type: "class" | "file" | "assignment" | "announcement" | "discussion" | "submission" | "section" | "event" | "worksheet" | "syllabus";
|
|
6749
6843
|
title: string;
|
|
6750
6844
|
subtitle: string;
|
|
6751
6845
|
classId: string;
|
|
@@ -6766,7 +6860,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6766
6860
|
query: string;
|
|
6767
6861
|
results: {
|
|
6768
6862
|
id: string;
|
|
6769
|
-
type: "class" | "file" | "assignment" | "announcement" | "section" | "event" | "worksheet" | "syllabus";
|
|
6863
|
+
type: "class" | "file" | "assignment" | "announcement" | "discussion" | "submission" | "section" | "event" | "worksheet" | "syllabus";
|
|
6770
6864
|
title: string;
|
|
6771
6865
|
subtitle: string;
|
|
6772
6866
|
classId: string;
|
|
@@ -7097,6 +7191,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7097
7191
|
email: string;
|
|
7098
7192
|
password: string;
|
|
7099
7193
|
verified: boolean;
|
|
7194
|
+
termsAcceptedAt: Date | null;
|
|
7195
|
+
termsVersion: string | null;
|
|
7100
7196
|
schoolId: string | null;
|
|
7101
7197
|
}[];
|
|
7102
7198
|
students: {
|
|
@@ -7105,6 +7201,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7105
7201
|
email: string;
|
|
7106
7202
|
password: string;
|
|
7107
7203
|
verified: boolean;
|
|
7204
|
+
termsAcceptedAt: Date | null;
|
|
7205
|
+
termsVersion: string | null;
|
|
7108
7206
|
schoolId: string | null;
|
|
7109
7207
|
}[];
|
|
7110
7208
|
} & {
|
|
@@ -7847,7 +7945,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7847
7945
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
7848
7946
|
input: {
|
|
7849
7947
|
classId: string;
|
|
7850
|
-
type?: "
|
|
7948
|
+
type?: "ANNOUNCEMENT" | "DISCUSSION" | "QUESTION" | undefined;
|
|
7851
7949
|
sort?: "recent" | "activity" | "top" | undefined;
|
|
7852
7950
|
cursor?: string | undefined;
|
|
7853
7951
|
search?: string | undefined;
|
|
@@ -7993,7 +8091,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7993
8091
|
classId: string;
|
|
7994
8092
|
title: string;
|
|
7995
8093
|
body: string;
|
|
7996
|
-
type?: "
|
|
8094
|
+
type?: "ANNOUNCEMENT" | "DISCUSSION" | "QUESTION" | undefined;
|
|
7997
8095
|
tagIds?: string[] | undefined;
|
|
7998
8096
|
attachmentIds?: string[] | undefined;
|
|
7999
8097
|
};
|
|
@@ -8086,7 +8184,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8086
8184
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
8087
8185
|
input: {
|
|
8088
8186
|
discussionId: string;
|
|
8089
|
-
type?: "
|
|
8187
|
+
type?: "ANNOUNCEMENT" | "DISCUSSION" | "QUESTION" | undefined;
|
|
8090
8188
|
title?: string | undefined;
|
|
8091
8189
|
body?: string | undefined;
|
|
8092
8190
|
allowReplies?: boolean | undefined;
|
|
@@ -8870,7 +8968,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8870
8968
|
query: string;
|
|
8871
8969
|
classId: string;
|
|
8872
8970
|
limit?: number | undefined;
|
|
8873
|
-
sourceTypes?: ("
|
|
8971
|
+
sourceTypes?: ("FILE" | "ASSIGNMENT" | "WORKSHEET" | "ANNOUNCEMENT" | "SECTION" | "DISCUSSION" | "SUBMISSION" | "SYLLABUS")[] | undefined;
|
|
8874
8972
|
};
|
|
8875
8973
|
output: import("../services/embedding.js").EmbeddingSearchResult[];
|
|
8876
8974
|
meta: object;
|
|
@@ -8878,7 +8976,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8878
8976
|
reindex: import("@trpc/server").TRPCMutationProcedure<{
|
|
8879
8977
|
input: {
|
|
8880
8978
|
classId: string;
|
|
8881
|
-
sourceType: "
|
|
8979
|
+
sourceType: "FILE" | "ASSIGNMENT" | "WORKSHEET" | "ANNOUNCEMENT" | "SECTION" | "DISCUSSION" | "SUBMISSION" | "SYLLABUS";
|
|
8882
8980
|
sourceId: string;
|
|
8883
8981
|
};
|
|
8884
8982
|
output: {
|
|
@@ -8895,6 +8993,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8895
8993
|
assignments: number;
|
|
8896
8994
|
worksheets: number;
|
|
8897
8995
|
announcements: number;
|
|
8996
|
+
discussions: number;
|
|
8997
|
+
submissions: number;
|
|
8998
|
+
syllabus: number;
|
|
8999
|
+
files: number;
|
|
8898
9000
|
};
|
|
8899
9001
|
};
|
|
8900
9002
|
meta: object;
|
|
@@ -9219,6 +9321,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9219
9321
|
email: string;
|
|
9220
9322
|
password: string;
|
|
9221
9323
|
verified: boolean;
|
|
9324
|
+
termsAcceptedAt: Date | null;
|
|
9325
|
+
termsVersion: string | null;
|
|
9222
9326
|
schoolId: string | null;
|
|
9223
9327
|
}[];
|
|
9224
9328
|
students: {
|
|
@@ -9227,6 +9331,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9227
9331
|
email: string;
|
|
9228
9332
|
password: string;
|
|
9229
9333
|
verified: boolean;
|
|
9334
|
+
termsAcceptedAt: Date | null;
|
|
9335
|
+
termsVersion: string | null;
|
|
9230
9336
|
schoolId: string | null;
|
|
9231
9337
|
}[];
|
|
9232
9338
|
} & {
|
|
@@ -9281,7 +9387,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9281
9387
|
input: {
|
|
9282
9388
|
[x: string]: unknown;
|
|
9283
9389
|
classId: string;
|
|
9284
|
-
type: "
|
|
9390
|
+
type: "student" | "teacher";
|
|
9285
9391
|
userId: string;
|
|
9286
9392
|
};
|
|
9287
9393
|
output: {
|
|
@@ -9299,7 +9405,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9299
9405
|
studentsCanReply: boolean;
|
|
9300
9406
|
};
|
|
9301
9407
|
user: {
|
|
9302
|
-
type: "
|
|
9408
|
+
type: "student" | "teacher";
|
|
9303
9409
|
id: string;
|
|
9304
9410
|
username: string;
|
|
9305
9411
|
};
|
|
@@ -9401,8 +9507,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9401
9507
|
id: string;
|
|
9402
9508
|
createdAt: Date;
|
|
9403
9509
|
assignmentId: string;
|
|
9404
|
-
modifiedAt: Date;
|
|
9405
9510
|
studentId: string;
|
|
9511
|
+
modifiedAt: Date;
|
|
9406
9512
|
extendedResponse: string | null;
|
|
9407
9513
|
gradeReceived: number | null;
|
|
9408
9514
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -9437,8 +9543,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9437
9543
|
id: string;
|
|
9438
9544
|
createdAt: Date;
|
|
9439
9545
|
assignmentId: string;
|
|
9440
|
-
modifiedAt: Date;
|
|
9441
9546
|
studentId: string;
|
|
9547
|
+
modifiedAt: Date;
|
|
9442
9548
|
extendedResponse: string | null;
|
|
9443
9549
|
gradeReceived: number | null;
|
|
9444
9550
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -9666,7 +9772,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9666
9772
|
input: {
|
|
9667
9773
|
[x: string]: unknown;
|
|
9668
9774
|
classId: string;
|
|
9669
|
-
type: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "
|
|
9775
|
+
type: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER";
|
|
9670
9776
|
title: string;
|
|
9671
9777
|
instructions: string;
|
|
9672
9778
|
dueDate?: Date | undefined;
|
|
@@ -9939,11 +10045,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9939
10045
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
9940
10046
|
options: import("@prisma/client/runtime/library.js").JsonValue;
|
|
9941
10047
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue;
|
|
9942
|
-
|
|
9943
|
-
worksheetId: string;
|
|
10048
|
+
points: number;
|
|
9944
10049
|
question: string;
|
|
10050
|
+
worksheetId: string;
|
|
10051
|
+
order: number | null;
|
|
9945
10052
|
answer: string;
|
|
9946
|
-
points: number;
|
|
9947
10053
|
}[];
|
|
9948
10054
|
}[];
|
|
9949
10055
|
markSchemes: {
|
|
@@ -10009,6 +10115,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10009
10115
|
id: string;
|
|
10010
10116
|
createdAt: Date;
|
|
10011
10117
|
remarks: string;
|
|
10118
|
+
attachments: {
|
|
10119
|
+
path: string;
|
|
10120
|
+
type: string;
|
|
10121
|
+
id: string;
|
|
10122
|
+
name: string;
|
|
10123
|
+
size: number | null;
|
|
10124
|
+
uploadedAt: Date | null;
|
|
10125
|
+
thumbnailId: string | null;
|
|
10126
|
+
}[];
|
|
10012
10127
|
modifiedAt: Date | null;
|
|
10013
10128
|
teacher: {
|
|
10014
10129
|
id: string;
|
|
@@ -10019,15 +10134,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10019
10134
|
profilePictureThumbnail: string | null;
|
|
10020
10135
|
} | null;
|
|
10021
10136
|
};
|
|
10022
|
-
attachments: {
|
|
10023
|
-
path: string;
|
|
10024
|
-
type: string;
|
|
10025
|
-
id: string;
|
|
10026
|
-
name: string;
|
|
10027
|
-
size: number | null;
|
|
10028
|
-
uploadedAt: Date | null;
|
|
10029
|
-
thumbnailId: string | null;
|
|
10030
|
-
}[];
|
|
10031
10137
|
}[];
|
|
10032
10138
|
};
|
|
10033
10139
|
meta: object;
|
|
@@ -10043,6 +10149,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10043
10149
|
id: string;
|
|
10044
10150
|
createdAt: Date;
|
|
10045
10151
|
remarks: string;
|
|
10152
|
+
attachments: {
|
|
10153
|
+
path: string;
|
|
10154
|
+
type: string;
|
|
10155
|
+
id: string;
|
|
10156
|
+
name: string;
|
|
10157
|
+
size: number | null;
|
|
10158
|
+
uploadedAt: Date | null;
|
|
10159
|
+
thumbnailId: string | null;
|
|
10160
|
+
}[];
|
|
10046
10161
|
modifiedAt: Date | null;
|
|
10047
10162
|
teacher: {
|
|
10048
10163
|
id: string;
|
|
@@ -10053,15 +10168,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10053
10168
|
profilePictureThumbnail: string | null;
|
|
10054
10169
|
} | null;
|
|
10055
10170
|
};
|
|
10056
|
-
attachments: {
|
|
10057
|
-
path: string;
|
|
10058
|
-
type: string;
|
|
10059
|
-
id: string;
|
|
10060
|
-
name: string;
|
|
10061
|
-
size: number | null;
|
|
10062
|
-
uploadedAt: Date | null;
|
|
10063
|
-
thumbnailId: string | null;
|
|
10064
|
-
}[];
|
|
10065
10171
|
};
|
|
10066
10172
|
};
|
|
10067
10173
|
meta: object;
|
|
@@ -10083,6 +10189,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10083
10189
|
id: string;
|
|
10084
10190
|
createdAt: Date;
|
|
10085
10191
|
remarks: string;
|
|
10192
|
+
attachments: {
|
|
10193
|
+
path: string;
|
|
10194
|
+
type: string;
|
|
10195
|
+
id: string;
|
|
10196
|
+
name: string;
|
|
10197
|
+
size: number | null;
|
|
10198
|
+
uploadedAt: Date | null;
|
|
10199
|
+
thumbnailId: string | null;
|
|
10200
|
+
}[];
|
|
10086
10201
|
modifiedAt: Date | null;
|
|
10087
10202
|
teacher: {
|
|
10088
10203
|
id: string;
|
|
@@ -10093,15 +10208,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10093
10208
|
profilePictureThumbnail: string | null;
|
|
10094
10209
|
} | null;
|
|
10095
10210
|
};
|
|
10096
|
-
attachments: {
|
|
10097
|
-
path: string;
|
|
10098
|
-
type: string;
|
|
10099
|
-
id: string;
|
|
10100
|
-
name: string;
|
|
10101
|
-
size: number | null;
|
|
10102
|
-
uploadedAt: Date | null;
|
|
10103
|
-
thumbnailId: string | null;
|
|
10104
|
-
}[];
|
|
10105
10211
|
};
|
|
10106
10212
|
uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
|
|
10107
10213
|
};
|
|
@@ -10128,6 +10234,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10128
10234
|
id: string;
|
|
10129
10235
|
createdAt: Date;
|
|
10130
10236
|
remarks: string;
|
|
10237
|
+
attachments: {
|
|
10238
|
+
path: string;
|
|
10239
|
+
type: string;
|
|
10240
|
+
id: string;
|
|
10241
|
+
name: string;
|
|
10242
|
+
size: number | null;
|
|
10243
|
+
uploadedAt: Date | null;
|
|
10244
|
+
thumbnailId: string | null;
|
|
10245
|
+
}[];
|
|
10131
10246
|
modifiedAt: Date | null;
|
|
10132
10247
|
teacher: {
|
|
10133
10248
|
id: string;
|
|
@@ -10138,15 +10253,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10138
10253
|
profilePictureThumbnail: string | null;
|
|
10139
10254
|
} | null;
|
|
10140
10255
|
};
|
|
10141
|
-
attachments: {
|
|
10142
|
-
path: string;
|
|
10143
|
-
type: string;
|
|
10144
|
-
id: string;
|
|
10145
|
-
name: string;
|
|
10146
|
-
size: number | null;
|
|
10147
|
-
uploadedAt: Date | null;
|
|
10148
|
-
thumbnailId: string | null;
|
|
10149
|
-
}[];
|
|
10150
10256
|
};
|
|
10151
10257
|
uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
|
|
10152
10258
|
};
|
|
@@ -10219,8 +10325,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10219
10325
|
content: string;
|
|
10220
10326
|
assignmentId: string | null;
|
|
10221
10327
|
submissionId: string | null;
|
|
10222
|
-
modifiedAt: Date | null;
|
|
10223
10328
|
announcementId: string | null;
|
|
10329
|
+
modifiedAt: Date | null;
|
|
10224
10330
|
authorId: string;
|
|
10225
10331
|
isPinned: boolean;
|
|
10226
10332
|
parentCommentId: string | null;
|
|
@@ -10251,8 +10357,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10251
10357
|
content: string;
|
|
10252
10358
|
assignmentId: string | null;
|
|
10253
10359
|
submissionId: string | null;
|
|
10254
|
-
modifiedAt: Date | null;
|
|
10255
10360
|
announcementId: string | null;
|
|
10361
|
+
modifiedAt: Date | null;
|
|
10256
10362
|
authorId: string;
|
|
10257
10363
|
isPinned: boolean;
|
|
10258
10364
|
parentCommentId: string | null;
|
|
@@ -10303,8 +10409,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10303
10409
|
content: string;
|
|
10304
10410
|
assignmentId: string | null;
|
|
10305
10411
|
submissionId: string | null;
|
|
10306
|
-
modifiedAt: Date | null;
|
|
10307
10412
|
announcementId: string | null;
|
|
10413
|
+
modifiedAt: Date | null;
|
|
10308
10414
|
authorId: string;
|
|
10309
10415
|
isPinned: boolean;
|
|
10310
10416
|
parentCommentId: string | null;
|
|
@@ -10316,8 +10422,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10316
10422
|
content: string;
|
|
10317
10423
|
assignmentId: string | null;
|
|
10318
10424
|
submissionId: string | null;
|
|
10319
|
-
modifiedAt: Date | null;
|
|
10320
10425
|
announcementId: string | null;
|
|
10426
|
+
modifiedAt: Date | null;
|
|
10321
10427
|
authorId: string;
|
|
10322
10428
|
isPinned: boolean;
|
|
10323
10429
|
parentCommentId: string | null;
|
|
@@ -10494,7 +10600,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10494
10600
|
title: string;
|
|
10495
10601
|
dueDate: string;
|
|
10496
10602
|
instructions: string;
|
|
10497
|
-
type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "
|
|
10603
|
+
type?: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
|
|
10498
10604
|
id?: string | undefined;
|
|
10499
10605
|
files?: {
|
|
10500
10606
|
type: string;
|
|
@@ -10532,6 +10638,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10532
10638
|
title: string;
|
|
10533
10639
|
dueDate: Date;
|
|
10534
10640
|
maxGrade: number | null;
|
|
10641
|
+
attachments: {
|
|
10642
|
+
type: string;
|
|
10643
|
+
id: string;
|
|
10644
|
+
name: string;
|
|
10645
|
+
}[];
|
|
10535
10646
|
instructions: string;
|
|
10536
10647
|
graded: boolean;
|
|
10537
10648
|
weight: number;
|
|
@@ -10539,11 +10650,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10539
10650
|
id: string;
|
|
10540
10651
|
username: string;
|
|
10541
10652
|
};
|
|
10542
|
-
attachments: {
|
|
10543
|
-
type: string;
|
|
10544
|
-
id: string;
|
|
10545
|
-
name: string;
|
|
10546
|
-
}[];
|
|
10547
10653
|
};
|
|
10548
10654
|
meta: object;
|
|
10549
10655
|
}>;
|
|
@@ -10587,7 +10693,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10587
10693
|
[x: string]: unknown;
|
|
10588
10694
|
classId: string;
|
|
10589
10695
|
id: string;
|
|
10590
|
-
type?: "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "
|
|
10696
|
+
type?: "DISCUSSION" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "PRESENTATION" | "LAB" | "OTHER" | undefined;
|
|
10591
10697
|
files?: {
|
|
10592
10698
|
type: string;
|
|
10593
10699
|
name: string;
|
|
@@ -10644,18 +10750,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10644
10750
|
title: string;
|
|
10645
10751
|
dueDate: Date;
|
|
10646
10752
|
maxGrade: number | null;
|
|
10647
|
-
instructions: string;
|
|
10648
|
-
graded: boolean;
|
|
10649
|
-
weight: number;
|
|
10650
|
-
markSchemeId: string | null;
|
|
10651
|
-
teacher: {
|
|
10652
|
-
id: string;
|
|
10653
|
-
username: string;
|
|
10654
|
-
email: string;
|
|
10655
|
-
password: string;
|
|
10656
|
-
verified: boolean;
|
|
10657
|
-
schoolId: string | null;
|
|
10658
|
-
};
|
|
10659
10753
|
attachments: {
|
|
10660
10754
|
path: string;
|
|
10661
10755
|
type: string;
|
|
@@ -10675,6 +10769,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10675
10769
|
submissionId: string | null;
|
|
10676
10770
|
thumbnailId: string | null;
|
|
10677
10771
|
annotationId: string | null;
|
|
10772
|
+
conversationId: string | null;
|
|
10678
10773
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
10679
10774
|
uploadUrl: string | null;
|
|
10680
10775
|
uploadExpiresAt: Date | null;
|
|
@@ -10686,7 +10781,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10686
10781
|
cleanupAt: Date | null;
|
|
10687
10782
|
classDraftId: string | null;
|
|
10688
10783
|
folderId: string | null;
|
|
10689
|
-
conversationId: string | null;
|
|
10690
10784
|
messageId: string | null;
|
|
10691
10785
|
announcementId: string | null;
|
|
10692
10786
|
discussionId: string | null;
|
|
@@ -10695,6 +10789,20 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10695
10789
|
} | null;
|
|
10696
10790
|
thumbnailId: string | null;
|
|
10697
10791
|
}[];
|
|
10792
|
+
instructions: string;
|
|
10793
|
+
graded: boolean;
|
|
10794
|
+
weight: number;
|
|
10795
|
+
markSchemeId: string | null;
|
|
10796
|
+
teacher: {
|
|
10797
|
+
id: string;
|
|
10798
|
+
username: string;
|
|
10799
|
+
email: string;
|
|
10800
|
+
password: string;
|
|
10801
|
+
verified: boolean;
|
|
10802
|
+
termsAcceptedAt: Date | null;
|
|
10803
|
+
termsVersion: string | null;
|
|
10804
|
+
schoolId: string | null;
|
|
10805
|
+
};
|
|
10698
10806
|
};
|
|
10699
10807
|
meta: object;
|
|
10700
10808
|
}>;
|
|
@@ -10745,10 +10853,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10745
10853
|
id: string;
|
|
10746
10854
|
name: string;
|
|
10747
10855
|
}[];
|
|
10748
|
-
teacher: {
|
|
10749
|
-
id: string;
|
|
10750
|
-
username: string;
|
|
10751
|
-
};
|
|
10752
10856
|
attachments: {
|
|
10753
10857
|
path: string;
|
|
10754
10858
|
type: string;
|
|
@@ -10758,6 +10862,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10758
10862
|
uploadedAt: Date | null;
|
|
10759
10863
|
thumbnailId: string | null;
|
|
10760
10864
|
}[];
|
|
10865
|
+
teacher: {
|
|
10866
|
+
id: string;
|
|
10867
|
+
username: string;
|
|
10868
|
+
};
|
|
10761
10869
|
eventAttached: {
|
|
10762
10870
|
id: string;
|
|
10763
10871
|
location: string | null;
|
|
@@ -10866,6 +10974,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10866
10974
|
submissionId: string | null;
|
|
10867
10975
|
thumbnailId: string | null;
|
|
10868
10976
|
annotationId: string | null;
|
|
10977
|
+
conversationId: string | null;
|
|
10869
10978
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
10870
10979
|
uploadUrl: string | null;
|
|
10871
10980
|
uploadExpiresAt: Date | null;
|
|
@@ -10877,17 +10986,12 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10877
10986
|
cleanupAt: Date | null;
|
|
10878
10987
|
classDraftId: string | null;
|
|
10879
10988
|
folderId: string | null;
|
|
10880
|
-
conversationId: string | null;
|
|
10881
10989
|
messageId: string | null;
|
|
10882
10990
|
announcementId: string | null;
|
|
10883
10991
|
discussionId: string | null;
|
|
10884
10992
|
discussionReplyId: string | null;
|
|
10885
10993
|
schoolDevelopementProgramId: string | null;
|
|
10886
10994
|
}[];
|
|
10887
|
-
student: {
|
|
10888
|
-
id: string;
|
|
10889
|
-
username: string;
|
|
10890
|
-
};
|
|
10891
10995
|
annotations: {
|
|
10892
10996
|
path: string;
|
|
10893
10997
|
type: string;
|
|
@@ -10900,6 +11004,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10900
11004
|
submissionId: string | null;
|
|
10901
11005
|
thumbnailId: string | null;
|
|
10902
11006
|
annotationId: string | null;
|
|
11007
|
+
conversationId: string | null;
|
|
10903
11008
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
10904
11009
|
uploadUrl: string | null;
|
|
10905
11010
|
uploadExpiresAt: Date | null;
|
|
@@ -10911,18 +11016,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10911
11016
|
cleanupAt: Date | null;
|
|
10912
11017
|
classDraftId: string | null;
|
|
10913
11018
|
folderId: string | null;
|
|
10914
|
-
conversationId: string | null;
|
|
10915
11019
|
messageId: string | null;
|
|
10916
11020
|
announcementId: string | null;
|
|
10917
11021
|
discussionId: string | null;
|
|
10918
11022
|
discussionReplyId: string | null;
|
|
10919
11023
|
schoolDevelopementProgramId: string | null;
|
|
10920
11024
|
}[];
|
|
11025
|
+
student: {
|
|
11026
|
+
id: string;
|
|
11027
|
+
username: string;
|
|
11028
|
+
};
|
|
10921
11029
|
id: string;
|
|
10922
11030
|
createdAt: Date;
|
|
10923
11031
|
assignmentId: string;
|
|
10924
|
-
modifiedAt: Date;
|
|
10925
11032
|
studentId: string;
|
|
11033
|
+
modifiedAt: Date;
|
|
10926
11034
|
extendedResponse: string | null;
|
|
10927
11035
|
gradeReceived: number | null;
|
|
10928
11036
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -11008,6 +11116,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11008
11116
|
submissionId: string | null;
|
|
11009
11117
|
thumbnailId: string | null;
|
|
11010
11118
|
annotationId: string | null;
|
|
11119
|
+
conversationId: string | null;
|
|
11011
11120
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11012
11121
|
uploadUrl: string | null;
|
|
11013
11122
|
uploadExpiresAt: Date | null;
|
|
@@ -11019,29 +11128,12 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11019
11128
|
cleanupAt: Date | null;
|
|
11020
11129
|
classDraftId: string | null;
|
|
11021
11130
|
folderId: string | null;
|
|
11022
|
-
conversationId: string | null;
|
|
11023
11131
|
messageId: string | null;
|
|
11024
11132
|
announcementId: string | null;
|
|
11025
11133
|
discussionId: string | null;
|
|
11026
11134
|
discussionReplyId: string | null;
|
|
11027
11135
|
schoolDevelopementProgramId: string | null;
|
|
11028
11136
|
}[];
|
|
11029
|
-
student: {
|
|
11030
|
-
id: string;
|
|
11031
|
-
username: string;
|
|
11032
|
-
profile: {
|
|
11033
|
-
id: string;
|
|
11034
|
-
userId: string;
|
|
11035
|
-
displayName: string | null;
|
|
11036
|
-
bio: string | null;
|
|
11037
|
-
location: string | null;
|
|
11038
|
-
website: string | null;
|
|
11039
|
-
createdAt: Date;
|
|
11040
|
-
updatedAt: Date;
|
|
11041
|
-
profilePicture: string | null;
|
|
11042
|
-
profilePictureThumbnail: string | null;
|
|
11043
|
-
} | null;
|
|
11044
|
-
};
|
|
11045
11137
|
annotations: {
|
|
11046
11138
|
path: string;
|
|
11047
11139
|
type: string;
|
|
@@ -11054,6 +11146,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11054
11146
|
submissionId: string | null;
|
|
11055
11147
|
thumbnailId: string | null;
|
|
11056
11148
|
annotationId: string | null;
|
|
11149
|
+
conversationId: string | null;
|
|
11057
11150
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11058
11151
|
uploadUrl: string | null;
|
|
11059
11152
|
uploadExpiresAt: Date | null;
|
|
@@ -11065,18 +11158,33 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11065
11158
|
cleanupAt: Date | null;
|
|
11066
11159
|
classDraftId: string | null;
|
|
11067
11160
|
folderId: string | null;
|
|
11068
|
-
conversationId: string | null;
|
|
11069
11161
|
messageId: string | null;
|
|
11070
11162
|
announcementId: string | null;
|
|
11071
11163
|
discussionId: string | null;
|
|
11072
11164
|
discussionReplyId: string | null;
|
|
11073
11165
|
schoolDevelopementProgramId: string | null;
|
|
11074
11166
|
}[];
|
|
11167
|
+
student: {
|
|
11168
|
+
id: string;
|
|
11169
|
+
username: string;
|
|
11170
|
+
profile: {
|
|
11171
|
+
id: string;
|
|
11172
|
+
userId: string;
|
|
11173
|
+
displayName: string | null;
|
|
11174
|
+
bio: string | null;
|
|
11175
|
+
location: string | null;
|
|
11176
|
+
website: string | null;
|
|
11177
|
+
createdAt: Date;
|
|
11178
|
+
updatedAt: Date;
|
|
11179
|
+
profilePicture: string | null;
|
|
11180
|
+
profilePictureThumbnail: string | null;
|
|
11181
|
+
} | null;
|
|
11182
|
+
};
|
|
11075
11183
|
id: string;
|
|
11076
11184
|
createdAt: Date;
|
|
11077
11185
|
assignmentId: string;
|
|
11078
|
-
modifiedAt: Date;
|
|
11079
11186
|
studentId: string;
|
|
11187
|
+
modifiedAt: Date;
|
|
11080
11188
|
extendedResponse: string | null;
|
|
11081
11189
|
gradeReceived: number | null;
|
|
11082
11190
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -11167,6 +11275,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11167
11275
|
submissionId: string | null;
|
|
11168
11276
|
thumbnailId: string | null;
|
|
11169
11277
|
annotationId: string | null;
|
|
11278
|
+
conversationId: string | null;
|
|
11170
11279
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11171
11280
|
uploadUrl: string | null;
|
|
11172
11281
|
uploadExpiresAt: Date | null;
|
|
@@ -11178,7 +11287,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11178
11287
|
cleanupAt: Date | null;
|
|
11179
11288
|
classDraftId: string | null;
|
|
11180
11289
|
folderId: string | null;
|
|
11181
|
-
conversationId: string | null;
|
|
11182
11290
|
messageId: string | null;
|
|
11183
11291
|
announcementId: string | null;
|
|
11184
11292
|
discussionId: string | null;
|
|
@@ -11193,8 +11301,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11193
11301
|
id: string;
|
|
11194
11302
|
createdAt: Date;
|
|
11195
11303
|
assignmentId: string;
|
|
11196
|
-
modifiedAt: Date;
|
|
11197
11304
|
studentId: string;
|
|
11305
|
+
modifiedAt: Date;
|
|
11198
11306
|
extendedResponse: string | null;
|
|
11199
11307
|
gradeReceived: number | null;
|
|
11200
11308
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -11277,6 +11385,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11277
11385
|
submissionId: string | null;
|
|
11278
11386
|
thumbnailId: string | null;
|
|
11279
11387
|
annotationId: string | null;
|
|
11388
|
+
conversationId: string | null;
|
|
11280
11389
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11281
11390
|
uploadUrl: string | null;
|
|
11282
11391
|
uploadExpiresAt: Date | null;
|
|
@@ -11288,7 +11397,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11288
11397
|
cleanupAt: Date | null;
|
|
11289
11398
|
classDraftId: string | null;
|
|
11290
11399
|
folderId: string | null;
|
|
11291
|
-
conversationId: string | null;
|
|
11292
11400
|
messageId: string | null;
|
|
11293
11401
|
announcementId: string | null;
|
|
11294
11402
|
discussionId: string | null;
|
|
@@ -11307,6 +11415,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11307
11415
|
submissionId: string | null;
|
|
11308
11416
|
thumbnailId: string | null;
|
|
11309
11417
|
annotationId: string | null;
|
|
11418
|
+
conversationId: string | null;
|
|
11310
11419
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11311
11420
|
uploadUrl: string | null;
|
|
11312
11421
|
uploadExpiresAt: Date | null;
|
|
@@ -11318,7 +11427,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11318
11427
|
cleanupAt: Date | null;
|
|
11319
11428
|
classDraftId: string | null;
|
|
11320
11429
|
folderId: string | null;
|
|
11321
|
-
conversationId: string | null;
|
|
11322
11430
|
messageId: string | null;
|
|
11323
11431
|
announcementId: string | null;
|
|
11324
11432
|
discussionId: string | null;
|
|
@@ -11337,8 +11445,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11337
11445
|
id: string;
|
|
11338
11446
|
createdAt: Date;
|
|
11339
11447
|
assignmentId: string;
|
|
11340
|
-
modifiedAt: Date;
|
|
11341
11448
|
studentId: string;
|
|
11449
|
+
modifiedAt: Date;
|
|
11342
11450
|
extendedResponse: string | null;
|
|
11343
11451
|
gradeReceived: number | null;
|
|
11344
11452
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -11385,8 +11493,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11385
11493
|
content: string;
|
|
11386
11494
|
assignmentId: string | null;
|
|
11387
11495
|
submissionId: string | null;
|
|
11388
|
-
modifiedAt: Date | null;
|
|
11389
11496
|
announcementId: string | null;
|
|
11497
|
+
modifiedAt: Date | null;
|
|
11390
11498
|
authorId: string;
|
|
11391
11499
|
isPinned: boolean;
|
|
11392
11500
|
parentCommentId: string | null;
|
|
@@ -11398,8 +11506,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11398
11506
|
content: string;
|
|
11399
11507
|
assignmentId: string | null;
|
|
11400
11508
|
submissionId: string | null;
|
|
11401
|
-
modifiedAt: Date | null;
|
|
11402
11509
|
announcementId: string | null;
|
|
11510
|
+
modifiedAt: Date | null;
|
|
11403
11511
|
authorId: string;
|
|
11404
11512
|
isPinned: boolean;
|
|
11405
11513
|
parentCommentId: string | null;
|
|
@@ -11443,8 +11551,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11443
11551
|
content: string;
|
|
11444
11552
|
assignmentId: string | null;
|
|
11445
11553
|
submissionId: string | null;
|
|
11446
|
-
modifiedAt: Date | null;
|
|
11447
11554
|
announcementId: string | null;
|
|
11555
|
+
modifiedAt: Date | null;
|
|
11448
11556
|
authorId: string;
|
|
11449
11557
|
isPinned: boolean;
|
|
11450
11558
|
parentCommentId: string | null;
|
|
@@ -11456,8 +11564,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11456
11564
|
content: string;
|
|
11457
11565
|
assignmentId: string | null;
|
|
11458
11566
|
submissionId: string | null;
|
|
11459
|
-
modifiedAt: Date | null;
|
|
11460
11567
|
announcementId: string | null;
|
|
11568
|
+
modifiedAt: Date | null;
|
|
11461
11569
|
authorId: string;
|
|
11462
11570
|
isPinned: boolean;
|
|
11463
11571
|
parentCommentId: string | null;
|
|
@@ -11500,8 +11608,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11500
11608
|
content: string;
|
|
11501
11609
|
assignmentId: string | null;
|
|
11502
11610
|
submissionId: string | null;
|
|
11503
|
-
modifiedAt: Date | null;
|
|
11504
11611
|
announcementId: string | null;
|
|
11612
|
+
modifiedAt: Date | null;
|
|
11505
11613
|
authorId: string;
|
|
11506
11614
|
isPinned: boolean;
|
|
11507
11615
|
parentCommentId: string | null;
|
|
@@ -11513,8 +11621,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11513
11621
|
content: string;
|
|
11514
11622
|
assignmentId: string | null;
|
|
11515
11623
|
submissionId: string | null;
|
|
11516
|
-
modifiedAt: Date | null;
|
|
11517
11624
|
announcementId: string | null;
|
|
11625
|
+
modifiedAt: Date | null;
|
|
11518
11626
|
authorId: string;
|
|
11519
11627
|
isPinned: boolean;
|
|
11520
11628
|
parentCommentId: string | null;
|
|
@@ -11559,8 +11667,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11559
11667
|
content: string;
|
|
11560
11668
|
assignmentId: string | null;
|
|
11561
11669
|
submissionId: string | null;
|
|
11562
|
-
modifiedAt: Date | null;
|
|
11563
11670
|
announcementId: string | null;
|
|
11671
|
+
modifiedAt: Date | null;
|
|
11564
11672
|
authorId: string;
|
|
11565
11673
|
isPinned: boolean;
|
|
11566
11674
|
parentCommentId: string | null;
|
|
@@ -11572,8 +11680,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11572
11680
|
content: string;
|
|
11573
11681
|
assignmentId: string | null;
|
|
11574
11682
|
submissionId: string | null;
|
|
11575
|
-
modifiedAt: Date | null;
|
|
11576
11683
|
announcementId: string | null;
|
|
11684
|
+
modifiedAt: Date | null;
|
|
11577
11685
|
authorId: string;
|
|
11578
11686
|
isPinned: boolean;
|
|
11579
11687
|
parentCommentId: string | null;
|
|
@@ -11667,6 +11775,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11667
11775
|
submissionId: string | null;
|
|
11668
11776
|
thumbnailId: string | null;
|
|
11669
11777
|
annotationId: string | null;
|
|
11778
|
+
conversationId: string | null;
|
|
11670
11779
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11671
11780
|
uploadUrl: string | null;
|
|
11672
11781
|
uploadExpiresAt: Date | null;
|
|
@@ -11678,7 +11787,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11678
11787
|
cleanupAt: Date | null;
|
|
11679
11788
|
classDraftId: string | null;
|
|
11680
11789
|
folderId: string | null;
|
|
11681
|
-
conversationId: string | null;
|
|
11682
11790
|
messageId: string | null;
|
|
11683
11791
|
announcementId: string | null;
|
|
11684
11792
|
discussionId: string | null;
|
|
@@ -11697,6 +11805,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11697
11805
|
submissionId: string | null;
|
|
11698
11806
|
thumbnailId: string | null;
|
|
11699
11807
|
annotationId: string | null;
|
|
11808
|
+
conversationId: string | null;
|
|
11700
11809
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11701
11810
|
uploadUrl: string | null;
|
|
11702
11811
|
uploadExpiresAt: Date | null;
|
|
@@ -11708,22 +11817,12 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11708
11817
|
cleanupAt: Date | null;
|
|
11709
11818
|
classDraftId: string | null;
|
|
11710
11819
|
folderId: string | null;
|
|
11711
|
-
conversationId: string | null;
|
|
11712
11820
|
messageId: string | null;
|
|
11713
11821
|
announcementId: string | null;
|
|
11714
11822
|
discussionId: string | null;
|
|
11715
11823
|
discussionReplyId: string | null;
|
|
11716
11824
|
schoolDevelopementProgramId: string | null;
|
|
11717
11825
|
})[];
|
|
11718
|
-
student: {
|
|
11719
|
-
id: string;
|
|
11720
|
-
username: string;
|
|
11721
|
-
profile: {
|
|
11722
|
-
profilePicture: string | null;
|
|
11723
|
-
displayName: string | null;
|
|
11724
|
-
profilePictureThumbnail: string | null;
|
|
11725
|
-
} | null;
|
|
11726
|
-
};
|
|
11727
11826
|
annotations: ({
|
|
11728
11827
|
thumbnail: {
|
|
11729
11828
|
path: string;
|
|
@@ -11737,6 +11836,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11737
11836
|
submissionId: string | null;
|
|
11738
11837
|
thumbnailId: string | null;
|
|
11739
11838
|
annotationId: string | null;
|
|
11839
|
+
conversationId: string | null;
|
|
11740
11840
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11741
11841
|
uploadUrl: string | null;
|
|
11742
11842
|
uploadExpiresAt: Date | null;
|
|
@@ -11748,7 +11848,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11748
11848
|
cleanupAt: Date | null;
|
|
11749
11849
|
classDraftId: string | null;
|
|
11750
11850
|
folderId: string | null;
|
|
11751
|
-
conversationId: string | null;
|
|
11752
11851
|
messageId: string | null;
|
|
11753
11852
|
announcementId: string | null;
|
|
11754
11853
|
discussionId: string | null;
|
|
@@ -11767,6 +11866,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11767
11866
|
submissionId: string | null;
|
|
11768
11867
|
thumbnailId: string | null;
|
|
11769
11868
|
annotationId: string | null;
|
|
11869
|
+
conversationId: string | null;
|
|
11770
11870
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
11771
11871
|
uploadUrl: string | null;
|
|
11772
11872
|
uploadExpiresAt: Date | null;
|
|
@@ -11778,19 +11878,27 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11778
11878
|
cleanupAt: Date | null;
|
|
11779
11879
|
classDraftId: string | null;
|
|
11780
11880
|
folderId: string | null;
|
|
11781
|
-
conversationId: string | null;
|
|
11782
11881
|
messageId: string | null;
|
|
11783
11882
|
announcementId: string | null;
|
|
11784
11883
|
discussionId: string | null;
|
|
11785
11884
|
discussionReplyId: string | null;
|
|
11786
11885
|
schoolDevelopementProgramId: string | null;
|
|
11787
11886
|
})[];
|
|
11887
|
+
student: {
|
|
11888
|
+
id: string;
|
|
11889
|
+
username: string;
|
|
11890
|
+
profile: {
|
|
11891
|
+
profilePicture: string | null;
|
|
11892
|
+
displayName: string | null;
|
|
11893
|
+
profilePictureThumbnail: string | null;
|
|
11894
|
+
} | null;
|
|
11895
|
+
};
|
|
11788
11896
|
} & {
|
|
11789
11897
|
id: string;
|
|
11790
11898
|
createdAt: Date;
|
|
11791
11899
|
assignmentId: string;
|
|
11792
|
-
modifiedAt: Date;
|
|
11793
11900
|
studentId: string;
|
|
11901
|
+
modifiedAt: Date;
|
|
11794
11902
|
extendedResponse: string | null;
|
|
11795
11903
|
gradeReceived: number | null;
|
|
11796
11904
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -11817,15 +11925,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11817
11925
|
id: string;
|
|
11818
11926
|
name: string;
|
|
11819
11927
|
} | null;
|
|
11820
|
-
teacher: {
|
|
11821
|
-
id: string;
|
|
11822
|
-
username: string;
|
|
11823
|
-
};
|
|
11824
11928
|
attachments: {
|
|
11825
11929
|
type: string;
|
|
11826
11930
|
id: string;
|
|
11827
11931
|
name: string;
|
|
11828
11932
|
}[];
|
|
11933
|
+
teacher: {
|
|
11934
|
+
id: string;
|
|
11935
|
+
username: string;
|
|
11936
|
+
};
|
|
11829
11937
|
eventAttached: {
|
|
11830
11938
|
id: string;
|
|
11831
11939
|
name: string | null;
|
|
@@ -11874,15 +11982,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11874
11982
|
id: string;
|
|
11875
11983
|
name: string;
|
|
11876
11984
|
} | null;
|
|
11877
|
-
teacher: {
|
|
11878
|
-
id: string;
|
|
11879
|
-
username: string;
|
|
11880
|
-
};
|
|
11881
11985
|
attachments: {
|
|
11882
11986
|
type: string;
|
|
11883
11987
|
id: string;
|
|
11884
11988
|
name: string;
|
|
11885
11989
|
}[];
|
|
11990
|
+
teacher: {
|
|
11991
|
+
id: string;
|
|
11992
|
+
username: string;
|
|
11993
|
+
};
|
|
11886
11994
|
eventAttached: {
|
|
11887
11995
|
id: string;
|
|
11888
11996
|
name: string | null;
|
|
@@ -11976,14 +12084,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11976
12084
|
classId: string;
|
|
11977
12085
|
order: number | null;
|
|
11978
12086
|
} | null;
|
|
11979
|
-
teacher: {
|
|
11980
|
-
id: string;
|
|
11981
|
-
username: string;
|
|
11982
|
-
email: string;
|
|
11983
|
-
password: string;
|
|
11984
|
-
verified: boolean;
|
|
11985
|
-
schoolId: string | null;
|
|
11986
|
-
};
|
|
11987
12087
|
attachments: {
|
|
11988
12088
|
path: string;
|
|
11989
12089
|
type: string;
|
|
@@ -11996,6 +12096,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
11996
12096
|
submissionId: string | null;
|
|
11997
12097
|
thumbnailId: string | null;
|
|
11998
12098
|
annotationId: string | null;
|
|
12099
|
+
conversationId: string | null;
|
|
11999
12100
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
12000
12101
|
uploadUrl: string | null;
|
|
12001
12102
|
uploadExpiresAt: Date | null;
|
|
@@ -12007,13 +12108,22 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12007
12108
|
cleanupAt: Date | null;
|
|
12008
12109
|
classDraftId: string | null;
|
|
12009
12110
|
folderId: string | null;
|
|
12010
|
-
conversationId: string | null;
|
|
12011
12111
|
messageId: string | null;
|
|
12012
12112
|
announcementId: string | null;
|
|
12013
12113
|
discussionId: string | null;
|
|
12014
12114
|
discussionReplyId: string | null;
|
|
12015
12115
|
schoolDevelopementProgramId: string | null;
|
|
12016
12116
|
}[];
|
|
12117
|
+
teacher: {
|
|
12118
|
+
id: string;
|
|
12119
|
+
username: string;
|
|
12120
|
+
email: string;
|
|
12121
|
+
password: string;
|
|
12122
|
+
verified: boolean;
|
|
12123
|
+
termsAcceptedAt: Date | null;
|
|
12124
|
+
termsVersion: string | null;
|
|
12125
|
+
schoolId: string | null;
|
|
12126
|
+
};
|
|
12017
12127
|
eventAttached: {
|
|
12018
12128
|
id: string;
|
|
12019
12129
|
userId: string | null;
|
|
@@ -12074,14 +12184,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12074
12184
|
classId: string;
|
|
12075
12185
|
order: number | null;
|
|
12076
12186
|
} | null;
|
|
12077
|
-
teacher: {
|
|
12078
|
-
id: string;
|
|
12079
|
-
username: string;
|
|
12080
|
-
email: string;
|
|
12081
|
-
password: string;
|
|
12082
|
-
verified: boolean;
|
|
12083
|
-
schoolId: string | null;
|
|
12084
|
-
};
|
|
12085
12187
|
attachments: {
|
|
12086
12188
|
path: string;
|
|
12087
12189
|
type: string;
|
|
@@ -12094,6 +12196,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12094
12196
|
submissionId: string | null;
|
|
12095
12197
|
thumbnailId: string | null;
|
|
12096
12198
|
annotationId: string | null;
|
|
12199
|
+
conversationId: string | null;
|
|
12097
12200
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
12098
12201
|
uploadUrl: string | null;
|
|
12099
12202
|
uploadExpiresAt: Date | null;
|
|
@@ -12105,13 +12208,22 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12105
12208
|
cleanupAt: Date | null;
|
|
12106
12209
|
classDraftId: string | null;
|
|
12107
12210
|
folderId: string | null;
|
|
12108
|
-
conversationId: string | null;
|
|
12109
12211
|
messageId: string | null;
|
|
12110
12212
|
announcementId: string | null;
|
|
12111
12213
|
discussionId: string | null;
|
|
12112
12214
|
discussionReplyId: string | null;
|
|
12113
12215
|
schoolDevelopementProgramId: string | null;
|
|
12114
12216
|
}[];
|
|
12217
|
+
teacher: {
|
|
12218
|
+
id: string;
|
|
12219
|
+
username: string;
|
|
12220
|
+
email: string;
|
|
12221
|
+
password: string;
|
|
12222
|
+
verified: boolean;
|
|
12223
|
+
termsAcceptedAt: Date | null;
|
|
12224
|
+
termsVersion: string | null;
|
|
12225
|
+
schoolId: string | null;
|
|
12226
|
+
};
|
|
12115
12227
|
eventAttached: {
|
|
12116
12228
|
id: string;
|
|
12117
12229
|
userId: string | null;
|
|
@@ -12173,14 +12285,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12173
12285
|
classId: string;
|
|
12174
12286
|
order: number | null;
|
|
12175
12287
|
} | null;
|
|
12176
|
-
teacher: {
|
|
12177
|
-
id: string;
|
|
12178
|
-
username: string;
|
|
12179
|
-
email: string;
|
|
12180
|
-
password: string;
|
|
12181
|
-
verified: boolean;
|
|
12182
|
-
schoolId: string | null;
|
|
12183
|
-
};
|
|
12184
12288
|
attachments: {
|
|
12185
12289
|
path: string;
|
|
12186
12290
|
type: string;
|
|
@@ -12193,6 +12297,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12193
12297
|
submissionId: string | null;
|
|
12194
12298
|
thumbnailId: string | null;
|
|
12195
12299
|
annotationId: string | null;
|
|
12300
|
+
conversationId: string | null;
|
|
12196
12301
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
12197
12302
|
uploadUrl: string | null;
|
|
12198
12303
|
uploadExpiresAt: Date | null;
|
|
@@ -12204,13 +12309,22 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12204
12309
|
cleanupAt: Date | null;
|
|
12205
12310
|
classDraftId: string | null;
|
|
12206
12311
|
folderId: string | null;
|
|
12207
|
-
conversationId: string | null;
|
|
12208
12312
|
messageId: string | null;
|
|
12209
12313
|
announcementId: string | null;
|
|
12210
12314
|
discussionId: string | null;
|
|
12211
12315
|
discussionReplyId: string | null;
|
|
12212
12316
|
schoolDevelopementProgramId: string | null;
|
|
12213
12317
|
}[];
|
|
12318
|
+
teacher: {
|
|
12319
|
+
id: string;
|
|
12320
|
+
username: string;
|
|
12321
|
+
email: string;
|
|
12322
|
+
password: string;
|
|
12323
|
+
verified: boolean;
|
|
12324
|
+
termsAcceptedAt: Date | null;
|
|
12325
|
+
termsVersion: string | null;
|
|
12326
|
+
schoolId: string | null;
|
|
12327
|
+
};
|
|
12214
12328
|
eventAttached: {
|
|
12215
12329
|
id: string;
|
|
12216
12330
|
userId: string | null;
|
|
@@ -12267,18 +12381,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12267
12381
|
section: {
|
|
12268
12382
|
id: string;
|
|
12269
12383
|
name: string;
|
|
12270
|
-
color: string | null;
|
|
12271
|
-
classId: string;
|
|
12272
|
-
order: number | null;
|
|
12273
|
-
} | null;
|
|
12274
|
-
teacher: {
|
|
12275
|
-
id: string;
|
|
12276
|
-
username: string;
|
|
12277
|
-
email: string;
|
|
12278
|
-
password: string;
|
|
12279
|
-
verified: boolean;
|
|
12280
|
-
schoolId: string | null;
|
|
12281
|
-
};
|
|
12384
|
+
color: string | null;
|
|
12385
|
+
classId: string;
|
|
12386
|
+
order: number | null;
|
|
12387
|
+
} | null;
|
|
12282
12388
|
attachments: {
|
|
12283
12389
|
path: string;
|
|
12284
12390
|
type: string;
|
|
@@ -12291,6 +12397,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12291
12397
|
submissionId: string | null;
|
|
12292
12398
|
thumbnailId: string | null;
|
|
12293
12399
|
annotationId: string | null;
|
|
12400
|
+
conversationId: string | null;
|
|
12294
12401
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
12295
12402
|
uploadUrl: string | null;
|
|
12296
12403
|
uploadExpiresAt: Date | null;
|
|
@@ -12302,13 +12409,22 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12302
12409
|
cleanupAt: Date | null;
|
|
12303
12410
|
classDraftId: string | null;
|
|
12304
12411
|
folderId: string | null;
|
|
12305
|
-
conversationId: string | null;
|
|
12306
12412
|
messageId: string | null;
|
|
12307
12413
|
announcementId: string | null;
|
|
12308
12414
|
discussionId: string | null;
|
|
12309
12415
|
discussionReplyId: string | null;
|
|
12310
12416
|
schoolDevelopementProgramId: string | null;
|
|
12311
12417
|
}[];
|
|
12418
|
+
teacher: {
|
|
12419
|
+
id: string;
|
|
12420
|
+
username: string;
|
|
12421
|
+
email: string;
|
|
12422
|
+
password: string;
|
|
12423
|
+
verified: boolean;
|
|
12424
|
+
termsAcceptedAt: Date | null;
|
|
12425
|
+
termsVersion: string | null;
|
|
12426
|
+
schoolId: string | null;
|
|
12427
|
+
};
|
|
12312
12428
|
eventAttached: {
|
|
12313
12429
|
id: string;
|
|
12314
12430
|
userId: string | null;
|
|
@@ -12530,6 +12646,95 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12530
12646
|
};
|
|
12531
12647
|
meta: object;
|
|
12532
12648
|
}>;
|
|
12649
|
+
exportData: import("@trpc/server").TRPCQueryProcedure<{
|
|
12650
|
+
input: void;
|
|
12651
|
+
output: {
|
|
12652
|
+
exportedAt: string;
|
|
12653
|
+
user: {
|
|
12654
|
+
id: string;
|
|
12655
|
+
username: string;
|
|
12656
|
+
email: string;
|
|
12657
|
+
verified: boolean;
|
|
12658
|
+
termsAcceptedAt: Date | null;
|
|
12659
|
+
termsVersion: string | null;
|
|
12660
|
+
profile: {
|
|
12661
|
+
id: string;
|
|
12662
|
+
userId: string;
|
|
12663
|
+
displayName: string | null;
|
|
12664
|
+
bio: string | null;
|
|
12665
|
+
location: string | null;
|
|
12666
|
+
website: string | null;
|
|
12667
|
+
createdAt: Date;
|
|
12668
|
+
updatedAt: Date;
|
|
12669
|
+
profilePicture: string | null;
|
|
12670
|
+
profilePictureThumbnail: string | null;
|
|
12671
|
+
} | null;
|
|
12672
|
+
teacherIn: {
|
|
12673
|
+
section: string;
|
|
12674
|
+
id: string;
|
|
12675
|
+
name: string;
|
|
12676
|
+
subject: string;
|
|
12677
|
+
}[];
|
|
12678
|
+
studentIn: {
|
|
12679
|
+
section: string;
|
|
12680
|
+
id: string;
|
|
12681
|
+
name: string;
|
|
12682
|
+
subject: string;
|
|
12683
|
+
}[];
|
|
12684
|
+
submissions: {
|
|
12685
|
+
assignment: {
|
|
12686
|
+
id: string;
|
|
12687
|
+
classId: string;
|
|
12688
|
+
title: string;
|
|
12689
|
+
};
|
|
12690
|
+
id: string;
|
|
12691
|
+
createdAt: Date;
|
|
12692
|
+
extendedResponse: string | null;
|
|
12693
|
+
gradeReceived: number | null;
|
|
12694
|
+
submittedAt: Date | null;
|
|
12695
|
+
}[];
|
|
12696
|
+
events: {
|
|
12697
|
+
id: string;
|
|
12698
|
+
location: string | null;
|
|
12699
|
+
name: string | null;
|
|
12700
|
+
startTime: Date;
|
|
12701
|
+
endTime: Date;
|
|
12702
|
+
remarks: string | null;
|
|
12703
|
+
}[];
|
|
12704
|
+
notificationsReceived: {
|
|
12705
|
+
id: string;
|
|
12706
|
+
createdAt: Date;
|
|
12707
|
+
title: string;
|
|
12708
|
+
content: string;
|
|
12709
|
+
read: boolean;
|
|
12710
|
+
}[];
|
|
12711
|
+
schoolMemberships: {
|
|
12712
|
+
status: import(".prisma/client").$Enums.SchoolMembershipStatus;
|
|
12713
|
+
school: {
|
|
12714
|
+
id: string;
|
|
12715
|
+
name: string;
|
|
12716
|
+
};
|
|
12717
|
+
role: import(".prisma/client").$Enums.SchoolMembershipRole;
|
|
12718
|
+
}[];
|
|
12719
|
+
sentMessages: {
|
|
12720
|
+
id: string;
|
|
12721
|
+
createdAt: Date;
|
|
12722
|
+
content: string;
|
|
12723
|
+
conversationId: string;
|
|
12724
|
+
}[];
|
|
12725
|
+
};
|
|
12726
|
+
};
|
|
12727
|
+
meta: object;
|
|
12728
|
+
}>;
|
|
12729
|
+
deleteAccount: import("@trpc/server").TRPCMutationProcedure<{
|
|
12730
|
+
input: {
|
|
12731
|
+
confirmUsername: string;
|
|
12732
|
+
};
|
|
12733
|
+
output: {
|
|
12734
|
+
success: boolean;
|
|
12735
|
+
};
|
|
12736
|
+
meta: object;
|
|
12737
|
+
}>;
|
|
12533
12738
|
}>>;
|
|
12534
12739
|
section: import("@trpc/server").TRPCBuiltRouter<{
|
|
12535
12740
|
ctx: import("../trpc.js").Context;
|
|
@@ -12787,6 +12992,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12787
12992
|
email: string;
|
|
12788
12993
|
password: string;
|
|
12789
12994
|
verified: boolean;
|
|
12995
|
+
termsAcceptedAt: Date | null;
|
|
12996
|
+
termsVersion: string | null;
|
|
12790
12997
|
schoolId: string | null;
|
|
12791
12998
|
} | null;
|
|
12792
12999
|
class: ({
|
|
@@ -12832,6 +13039,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12832
13039
|
title: string;
|
|
12833
13040
|
dueDate: Date;
|
|
12834
13041
|
maxGrade: number | null;
|
|
13042
|
+
attachments: {
|
|
13043
|
+
type: string;
|
|
13044
|
+
id: string;
|
|
13045
|
+
name: string;
|
|
13046
|
+
}[];
|
|
12835
13047
|
instructions: string;
|
|
12836
13048
|
graded: boolean;
|
|
12837
13049
|
weight: number;
|
|
@@ -12839,11 +13051,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12839
13051
|
id: string;
|
|
12840
13052
|
username: string;
|
|
12841
13053
|
};
|
|
12842
|
-
attachments: {
|
|
12843
|
-
type: string;
|
|
12844
|
-
id: string;
|
|
12845
|
-
name: string;
|
|
12846
|
-
}[];
|
|
12847
13054
|
}[];
|
|
12848
13055
|
} & {
|
|
12849
13056
|
id: string;
|
|
@@ -12936,15 +13143,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12936
13143
|
id: string;
|
|
12937
13144
|
name: string;
|
|
12938
13145
|
} | null;
|
|
12939
|
-
teacher: {
|
|
12940
|
-
id: string;
|
|
12941
|
-
username: string;
|
|
12942
|
-
};
|
|
12943
13146
|
attachments: {
|
|
12944
13147
|
type: string;
|
|
12945
13148
|
id: string;
|
|
12946
13149
|
name: string;
|
|
12947
13150
|
}[];
|
|
13151
|
+
teacher: {
|
|
13152
|
+
id: string;
|
|
13153
|
+
username: string;
|
|
13154
|
+
};
|
|
12948
13155
|
} & {
|
|
12949
13156
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
12950
13157
|
id: string;
|
|
@@ -12985,15 +13192,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
12985
13192
|
id: string;
|
|
12986
13193
|
name: string;
|
|
12987
13194
|
} | null;
|
|
12988
|
-
teacher: {
|
|
12989
|
-
id: string;
|
|
12990
|
-
username: string;
|
|
12991
|
-
};
|
|
12992
13195
|
attachments: {
|
|
12993
13196
|
type: string;
|
|
12994
13197
|
id: string;
|
|
12995
13198
|
name: string;
|
|
12996
13199
|
}[];
|
|
13200
|
+
teacher: {
|
|
13201
|
+
id: string;
|
|
13202
|
+
username: string;
|
|
13203
|
+
};
|
|
12997
13204
|
} & {
|
|
12998
13205
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
12999
13206
|
id: string;
|
|
@@ -13038,6 +13245,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13038
13245
|
title: string;
|
|
13039
13246
|
dueDate: Date;
|
|
13040
13247
|
maxGrade: number | null;
|
|
13248
|
+
attachments: {
|
|
13249
|
+
type: string;
|
|
13250
|
+
id: string;
|
|
13251
|
+
name: string;
|
|
13252
|
+
}[];
|
|
13041
13253
|
instructions: string;
|
|
13042
13254
|
graded: boolean;
|
|
13043
13255
|
weight: number;
|
|
@@ -13045,11 +13257,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13045
13257
|
id: string;
|
|
13046
13258
|
username: string;
|
|
13047
13259
|
};
|
|
13048
|
-
attachments: {
|
|
13049
|
-
type: string;
|
|
13050
|
-
id: string;
|
|
13051
|
-
name: string;
|
|
13052
|
-
}[];
|
|
13053
13260
|
}[];
|
|
13054
13261
|
};
|
|
13055
13262
|
meta: object;
|
|
@@ -13077,7 +13284,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13077
13284
|
username: string;
|
|
13078
13285
|
email: string;
|
|
13079
13286
|
password: string;
|
|
13287
|
+
termsVersion: "2025-11";
|
|
13080
13288
|
confirmPassword: string;
|
|
13289
|
+
agreeToTerms: true;
|
|
13081
13290
|
};
|
|
13082
13291
|
output: {
|
|
13083
13292
|
user: {
|
|
@@ -13354,6 +13563,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13354
13563
|
submissionId: string | null;
|
|
13355
13564
|
thumbnailId: string | null;
|
|
13356
13565
|
annotationId: string | null;
|
|
13566
|
+
conversationId: string | null;
|
|
13357
13567
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
13358
13568
|
uploadUrl: string | null;
|
|
13359
13569
|
uploadExpiresAt: Date | null;
|
|
@@ -13365,7 +13575,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13365
13575
|
cleanupAt: Date | null;
|
|
13366
13576
|
classDraftId: string | null;
|
|
13367
13577
|
folderId: string | null;
|
|
13368
|
-
conversationId: string | null;
|
|
13369
13578
|
messageId: string | null;
|
|
13370
13579
|
announcementId: string | null;
|
|
13371
13580
|
discussionId: string | null;
|
|
@@ -13396,6 +13605,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13396
13605
|
submissionId: string | null;
|
|
13397
13606
|
thumbnailId: string | null;
|
|
13398
13607
|
annotationId: string | null;
|
|
13608
|
+
conversationId: string | null;
|
|
13399
13609
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
13400
13610
|
uploadUrl: string | null;
|
|
13401
13611
|
uploadExpiresAt: Date | null;
|
|
@@ -13407,7 +13617,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13407
13617
|
cleanupAt: Date | null;
|
|
13408
13618
|
classDraftId: string | null;
|
|
13409
13619
|
folderId: string | null;
|
|
13410
|
-
conversationId: string | null;
|
|
13411
13620
|
messageId: string | null;
|
|
13412
13621
|
announcementId: string | null;
|
|
13413
13622
|
discussionId: string | null;
|
|
@@ -13780,9 +13989,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13780
13989
|
createdAt: Date;
|
|
13781
13990
|
title: string;
|
|
13782
13991
|
content: string;
|
|
13992
|
+
senderId: string | null;
|
|
13783
13993
|
read: boolean;
|
|
13784
13994
|
receiverId: string;
|
|
13785
|
-
senderId: string | null;
|
|
13786
13995
|
})[];
|
|
13787
13996
|
meta: object;
|
|
13788
13997
|
}>;
|
|
@@ -13802,9 +14011,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13802
14011
|
createdAt: Date;
|
|
13803
14012
|
title: string;
|
|
13804
14013
|
content: string;
|
|
14014
|
+
senderId: string | null;
|
|
13805
14015
|
read: boolean;
|
|
13806
14016
|
receiverId: string;
|
|
13807
|
-
senderId: string | null;
|
|
13808
14017
|
};
|
|
13809
14018
|
meta: object;
|
|
13810
14019
|
}>;
|
|
@@ -13819,9 +14028,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13819
14028
|
createdAt: Date;
|
|
13820
14029
|
title: string;
|
|
13821
14030
|
content: string;
|
|
14031
|
+
senderId: string | null;
|
|
13822
14032
|
read: boolean;
|
|
13823
14033
|
receiverId: string;
|
|
13824
|
-
senderId: string | null;
|
|
13825
14034
|
};
|
|
13826
14035
|
meta: object;
|
|
13827
14036
|
}>;
|
|
@@ -13850,9 +14059,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13850
14059
|
createdAt: Date;
|
|
13851
14060
|
title: string;
|
|
13852
14061
|
content: string;
|
|
14062
|
+
senderId: string | null;
|
|
13853
14063
|
read: boolean;
|
|
13854
14064
|
receiverId: string;
|
|
13855
|
-
senderId: string | null;
|
|
13856
14065
|
};
|
|
13857
14066
|
meta: object;
|
|
13858
14067
|
}>;
|
|
@@ -13898,8 +14107,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13898
14107
|
} & {
|
|
13899
14108
|
id: string;
|
|
13900
14109
|
userId: string;
|
|
13901
|
-
conversationId: string;
|
|
13902
14110
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
14111
|
+
conversationId: string;
|
|
13903
14112
|
joinedAt: Date;
|
|
13904
14113
|
hiddenAt: Date | null;
|
|
13905
14114
|
lastViewedAt: Date | null;
|
|
@@ -13919,9 +14128,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13919
14128
|
id: string;
|
|
13920
14129
|
createdAt: Date;
|
|
13921
14130
|
content: string;
|
|
14131
|
+
senderId: string;
|
|
13922
14132
|
conversationId: string;
|
|
13923
14133
|
runJobId: string | null;
|
|
13924
|
-
senderId: string;
|
|
13925
14134
|
};
|
|
13926
14135
|
unreadCount: number;
|
|
13927
14136
|
unreadMentionCount: number;
|
|
@@ -13962,8 +14171,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13962
14171
|
} & {
|
|
13963
14172
|
id: string;
|
|
13964
14173
|
userId: string;
|
|
13965
|
-
conversationId: string;
|
|
13966
14174
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
14175
|
+
conversationId: string;
|
|
13967
14176
|
joinedAt: Date;
|
|
13968
14177
|
hiddenAt: Date | null;
|
|
13969
14178
|
lastViewedAt: Date | null;
|
|
@@ -13996,8 +14205,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
13996
14205
|
} & {
|
|
13997
14206
|
id: string;
|
|
13998
14207
|
userId: string;
|
|
13999
|
-
conversationId: string;
|
|
14000
14208
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
14209
|
+
conversationId: string;
|
|
14001
14210
|
joinedAt: Date;
|
|
14002
14211
|
hiddenAt: Date | null;
|
|
14003
14212
|
lastViewedAt: Date | null;
|
|
@@ -14040,8 +14249,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14040
14249
|
} & {
|
|
14041
14250
|
id: string;
|
|
14042
14251
|
userId: string;
|
|
14043
|
-
conversationId: string;
|
|
14044
14252
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
14253
|
+
conversationId: string;
|
|
14045
14254
|
joinedAt: Date;
|
|
14046
14255
|
hiddenAt: Date | null;
|
|
14047
14256
|
lastViewedAt: Date | null;
|
|
@@ -14075,8 +14284,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14075
14284
|
} & {
|
|
14076
14285
|
id: string;
|
|
14077
14286
|
userId: string;
|
|
14078
|
-
conversationId: string;
|
|
14079
14287
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
14288
|
+
conversationId: string;
|
|
14080
14289
|
joinedAt: Date;
|
|
14081
14290
|
hiddenAt: Date | null;
|
|
14082
14291
|
lastViewedAt: Date | null;
|
|
@@ -14345,8 +14554,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14345
14554
|
} & {
|
|
14346
14555
|
id: string;
|
|
14347
14556
|
userId: string;
|
|
14348
|
-
conversationId: string;
|
|
14349
14557
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
14558
|
+
conversationId: string;
|
|
14350
14559
|
joinedAt: Date;
|
|
14351
14560
|
hiddenAt: Date | null;
|
|
14352
14561
|
lastViewedAt: Date | null;
|
|
@@ -14404,8 +14613,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14404
14613
|
} & {
|
|
14405
14614
|
id: string;
|
|
14406
14615
|
userId: string;
|
|
14407
|
-
conversationId: string;
|
|
14408
14616
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
14617
|
+
conversationId: string;
|
|
14409
14618
|
joinedAt: Date;
|
|
14410
14619
|
hiddenAt: Date | null;
|
|
14411
14620
|
lastViewedAt: Date | null;
|
|
@@ -14470,9 +14679,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14470
14679
|
id: string;
|
|
14471
14680
|
createdAt: Date;
|
|
14472
14681
|
content: string;
|
|
14682
|
+
senderId: string;
|
|
14473
14683
|
conversationId: string;
|
|
14474
14684
|
runJobId: string | null;
|
|
14475
|
-
senderId: string;
|
|
14476
14685
|
};
|
|
14477
14686
|
messageCount: number;
|
|
14478
14687
|
}[];
|
|
@@ -14651,25 +14860,12 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14651
14860
|
id: string;
|
|
14652
14861
|
};
|
|
14653
14862
|
output: {
|
|
14654
|
-
type: string;
|
|
14655
14863
|
status: string;
|
|
14656
14864
|
id: string;
|
|
14657
|
-
website: string | null;
|
|
14658
14865
|
name: string;
|
|
14659
14866
|
submittedAt: Date | null;
|
|
14660
|
-
address: string;
|
|
14661
14867
|
city: string;
|
|
14662
14868
|
country: string;
|
|
14663
|
-
numberOfStudents: number;
|
|
14664
|
-
numberOfTeachers: number;
|
|
14665
|
-
contactName: string | null;
|
|
14666
|
-
contactRole: string | null;
|
|
14667
|
-
contactEmail: string | null;
|
|
14668
|
-
contactPhone: string | null;
|
|
14669
|
-
eligibilityInformation: string | null;
|
|
14670
|
-
whyHelp: string | null;
|
|
14671
|
-
additionalInformation: string | null;
|
|
14672
|
-
reviewedAt: Date | null;
|
|
14673
14869
|
} | null;
|
|
14674
14870
|
meta: object;
|
|
14675
14871
|
}>;
|
|
@@ -14732,11 +14928,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14732
14928
|
id: string;
|
|
14733
14929
|
createdAt: Date;
|
|
14734
14930
|
updatedAt: Date;
|
|
14735
|
-
|
|
14736
|
-
worksheetId: string;
|
|
14931
|
+
points: number;
|
|
14737
14932
|
question: string;
|
|
14933
|
+
worksheetId: string;
|
|
14934
|
+
order: number | null;
|
|
14738
14935
|
answer: string;
|
|
14739
|
-
points: number;
|
|
14740
14936
|
}[];
|
|
14741
14937
|
} & {
|
|
14742
14938
|
status: import(".prisma/client").$Enums.JobStatus | null;
|
|
@@ -14745,8 +14941,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14745
14941
|
updatedAt: Date;
|
|
14746
14942
|
name: string;
|
|
14747
14943
|
classId: string;
|
|
14748
|
-
sourceUrl: string | null;
|
|
14749
14944
|
runJobId: string | null;
|
|
14945
|
+
sourceUrl: string | null;
|
|
14750
14946
|
};
|
|
14751
14947
|
meta: object;
|
|
14752
14948
|
}>;
|
|
@@ -14781,8 +14977,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14781
14977
|
updatedAt: Date;
|
|
14782
14978
|
name: string;
|
|
14783
14979
|
classId: string;
|
|
14784
|
-
sourceUrl: string | null;
|
|
14785
14980
|
runJobId: string | null;
|
|
14981
|
+
sourceUrl: string | null;
|
|
14786
14982
|
}[];
|
|
14787
14983
|
meta: object;
|
|
14788
14984
|
}>;
|
|
@@ -14798,8 +14994,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14798
14994
|
updatedAt: Date;
|
|
14799
14995
|
name: string;
|
|
14800
14996
|
classId: string;
|
|
14801
|
-
sourceUrl: string | null;
|
|
14802
14997
|
runJobId: string | null;
|
|
14998
|
+
sourceUrl: string | null;
|
|
14803
14999
|
};
|
|
14804
15000
|
meta: object;
|
|
14805
15001
|
}>;
|
|
@@ -14814,8 +15010,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14814
15010
|
updatedAt: Date;
|
|
14815
15011
|
name: string;
|
|
14816
15012
|
classId: string;
|
|
14817
|
-
sourceUrl: string | null;
|
|
14818
15013
|
runJobId: string | null;
|
|
15014
|
+
sourceUrl: string | null;
|
|
14819
15015
|
};
|
|
14820
15016
|
meta: object;
|
|
14821
15017
|
}>;
|
|
@@ -14832,8 +15028,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14832
15028
|
updatedAt: Date;
|
|
14833
15029
|
name: string;
|
|
14834
15030
|
classId: string;
|
|
14835
|
-
sourceUrl: string | null;
|
|
14836
15031
|
runJobId: string | null;
|
|
15032
|
+
sourceUrl: string | null;
|
|
14837
15033
|
};
|
|
14838
15034
|
meta: object;
|
|
14839
15035
|
}>;
|
|
@@ -14851,8 +15047,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14851
15047
|
updatedAt: Date;
|
|
14852
15048
|
name: string;
|
|
14853
15049
|
classId: string;
|
|
14854
|
-
sourceUrl: string | null;
|
|
14855
15050
|
runJobId: string | null;
|
|
15051
|
+
sourceUrl: string | null;
|
|
14856
15052
|
};
|
|
14857
15053
|
meta: object;
|
|
14858
15054
|
}>;
|
|
@@ -14927,13 +15123,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14927
15123
|
addQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
14928
15124
|
input: {
|
|
14929
15125
|
type: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION";
|
|
14930
|
-
worksheetId: string;
|
|
14931
15126
|
question: string;
|
|
15127
|
+
worksheetId: string;
|
|
14932
15128
|
answer: string;
|
|
14933
15129
|
options?: any;
|
|
14934
15130
|
markScheme?: any;
|
|
14935
|
-
order?: number | undefined;
|
|
14936
15131
|
points?: number | undefined;
|
|
15132
|
+
order?: number | undefined;
|
|
14937
15133
|
};
|
|
14938
15134
|
output: {
|
|
14939
15135
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
@@ -14942,11 +15138,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14942
15138
|
id: string;
|
|
14943
15139
|
createdAt: Date;
|
|
14944
15140
|
updatedAt: Date;
|
|
14945
|
-
|
|
14946
|
-
worksheetId: string;
|
|
15141
|
+
points: number;
|
|
14947
15142
|
question: string;
|
|
15143
|
+
worksheetId: string;
|
|
15144
|
+
order: number | null;
|
|
14948
15145
|
answer: string;
|
|
14949
|
-
points: number;
|
|
14950
15146
|
};
|
|
14951
15147
|
meta: object;
|
|
14952
15148
|
}>;
|
|
@@ -14964,14 +15160,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14964
15160
|
}>;
|
|
14965
15161
|
updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
14966
15162
|
input: {
|
|
14967
|
-
worksheetId: string;
|
|
14968
15163
|
questionId: string;
|
|
15164
|
+
worksheetId: string;
|
|
14969
15165
|
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
14970
15166
|
options?: any;
|
|
14971
15167
|
markScheme?: any;
|
|
15168
|
+
points?: number | undefined;
|
|
14972
15169
|
question?: string | undefined;
|
|
14973
15170
|
answer?: string | undefined;
|
|
14974
|
-
points?: number | undefined;
|
|
14975
15171
|
};
|
|
14976
15172
|
output: {
|
|
14977
15173
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
@@ -14980,18 +15176,18 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
14980
15176
|
id: string;
|
|
14981
15177
|
createdAt: Date;
|
|
14982
15178
|
updatedAt: Date;
|
|
14983
|
-
|
|
14984
|
-
worksheetId: string;
|
|
15179
|
+
points: number;
|
|
14985
15180
|
question: string;
|
|
15181
|
+
worksheetId: string;
|
|
15182
|
+
order: number | null;
|
|
14986
15183
|
answer: string;
|
|
14987
|
-
points: number;
|
|
14988
15184
|
};
|
|
14989
15185
|
meta: object;
|
|
14990
15186
|
}>;
|
|
14991
15187
|
deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
14992
15188
|
input: {
|
|
14993
|
-
worksheetId: string;
|
|
14994
15189
|
questionId: string;
|
|
15190
|
+
worksheetId: string;
|
|
14995
15191
|
};
|
|
14996
15192
|
output: {
|
|
14997
15193
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
@@ -15000,11 +15196,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15000
15196
|
id: string;
|
|
15001
15197
|
createdAt: Date;
|
|
15002
15198
|
updatedAt: Date;
|
|
15003
|
-
|
|
15004
|
-
worksheetId: string;
|
|
15199
|
+
points: number;
|
|
15005
15200
|
question: string;
|
|
15201
|
+
worksheetId: string;
|
|
15202
|
+
order: number | null;
|
|
15006
15203
|
answer: string;
|
|
15007
|
-
points: number;
|
|
15008
15204
|
};
|
|
15009
15205
|
meta: object;
|
|
15010
15206
|
}>;
|
|
@@ -15025,14 +15221,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15025
15221
|
createdAt: Date;
|
|
15026
15222
|
updatedAt: Date | null;
|
|
15027
15223
|
feedback: string | null;
|
|
15028
|
-
studentId: string;
|
|
15029
15224
|
runJobId: string | null;
|
|
15030
|
-
points: number;
|
|
15031
15225
|
response: string;
|
|
15032
15226
|
isCorrect: boolean;
|
|
15033
15227
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
15034
|
-
|
|
15228
|
+
points: number;
|
|
15229
|
+
studentId: string;
|
|
15035
15230
|
questionId: string;
|
|
15231
|
+
studentWorksheetResponseId: string | null;
|
|
15036
15232
|
})[];
|
|
15037
15233
|
} & {
|
|
15038
15234
|
id: string;
|
|
@@ -15040,9 +15236,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15040
15236
|
updatedAt: Date;
|
|
15041
15237
|
submissionId: string | null;
|
|
15042
15238
|
studentId: string;
|
|
15239
|
+
worksheetId: string;
|
|
15043
15240
|
submittedAt: Date | null;
|
|
15044
15241
|
submitted: boolean;
|
|
15045
|
-
worksheetId: string;
|
|
15046
15242
|
};
|
|
15047
15243
|
meta: object;
|
|
15048
15244
|
}>;
|
|
@@ -15059,14 +15255,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15059
15255
|
createdAt: Date;
|
|
15060
15256
|
updatedAt: Date | null;
|
|
15061
15257
|
feedback: string | null;
|
|
15062
|
-
studentId: string;
|
|
15063
15258
|
runJobId: string | null;
|
|
15064
|
-
points: number;
|
|
15065
15259
|
response: string;
|
|
15066
15260
|
isCorrect: boolean;
|
|
15067
15261
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
15068
|
-
|
|
15262
|
+
points: number;
|
|
15263
|
+
studentId: string;
|
|
15069
15264
|
questionId: string;
|
|
15265
|
+
studentWorksheetResponseId: string | null;
|
|
15070
15266
|
}[];
|
|
15071
15267
|
} & {
|
|
15072
15268
|
id: string;
|
|
@@ -15074,9 +15270,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15074
15270
|
updatedAt: Date;
|
|
15075
15271
|
submissionId: string | null;
|
|
15076
15272
|
studentId: string;
|
|
15273
|
+
worksheetId: string;
|
|
15077
15274
|
submittedAt: Date | null;
|
|
15078
15275
|
submitted: boolean;
|
|
15079
|
-
worksheetId: string;
|
|
15080
15276
|
};
|
|
15081
15277
|
meta: object;
|
|
15082
15278
|
}>;
|
|
@@ -15091,14 +15287,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15091
15287
|
createdAt: Date;
|
|
15092
15288
|
updatedAt: Date | null;
|
|
15093
15289
|
feedback: string | null;
|
|
15094
|
-
studentId: string;
|
|
15095
15290
|
runJobId: string | null;
|
|
15096
|
-
points: number;
|
|
15097
15291
|
response: string;
|
|
15098
15292
|
isCorrect: boolean;
|
|
15099
15293
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
15100
|
-
|
|
15294
|
+
points: number;
|
|
15295
|
+
studentId: string;
|
|
15101
15296
|
questionId: string;
|
|
15297
|
+
studentWorksheetResponseId: string | null;
|
|
15102
15298
|
};
|
|
15103
15299
|
meta: object;
|
|
15104
15300
|
}>;
|
|
@@ -15113,26 +15309,26 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15113
15309
|
createdAt: Date;
|
|
15114
15310
|
updatedAt: Date | null;
|
|
15115
15311
|
feedback: string | null;
|
|
15116
|
-
studentId: string;
|
|
15117
15312
|
runJobId: string | null;
|
|
15118
|
-
points: number;
|
|
15119
15313
|
response: string;
|
|
15120
15314
|
isCorrect: boolean;
|
|
15121
15315
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
15122
|
-
|
|
15316
|
+
points: number;
|
|
15317
|
+
studentId: string;
|
|
15123
15318
|
questionId: string;
|
|
15319
|
+
studentWorksheetResponseId: string | null;
|
|
15124
15320
|
} | null;
|
|
15125
15321
|
meta: object;
|
|
15126
15322
|
}>;
|
|
15127
15323
|
gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
|
|
15128
15324
|
input: {
|
|
15129
15325
|
isCorrect: boolean;
|
|
15130
|
-
studentWorksheetResponseId: string;
|
|
15131
15326
|
questionId: string;
|
|
15327
|
+
studentWorksheetResponseId: string;
|
|
15132
15328
|
feedback?: string | undefined;
|
|
15133
|
-
points?: number | undefined;
|
|
15134
15329
|
response?: string | undefined;
|
|
15135
15330
|
markschemeState?: any;
|
|
15331
|
+
points?: number | undefined;
|
|
15136
15332
|
responseId?: string | undefined;
|
|
15137
15333
|
};
|
|
15138
15334
|
output: {
|
|
@@ -15141,14 +15337,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15141
15337
|
createdAt: Date;
|
|
15142
15338
|
updatedAt: Date | null;
|
|
15143
15339
|
feedback: string | null;
|
|
15144
|
-
studentId: string;
|
|
15145
15340
|
runJobId: string | null;
|
|
15146
|
-
points: number;
|
|
15147
15341
|
response: string;
|
|
15148
15342
|
isCorrect: boolean;
|
|
15149
15343
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
15150
|
-
|
|
15344
|
+
points: number;
|
|
15345
|
+
studentId: string;
|
|
15151
15346
|
questionId: string;
|
|
15347
|
+
studentWorksheetResponseId: string | null;
|
|
15152
15348
|
};
|
|
15153
15349
|
meta: object;
|
|
15154
15350
|
}>;
|
|
@@ -15163,8 +15359,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15163
15359
|
content: string;
|
|
15164
15360
|
assignmentId: string | null;
|
|
15165
15361
|
submissionId: string | null;
|
|
15166
|
-
modifiedAt: Date | null;
|
|
15167
15362
|
announcementId: string | null;
|
|
15363
|
+
modifiedAt: Date | null;
|
|
15168
15364
|
authorId: string;
|
|
15169
15365
|
isPinned: boolean;
|
|
15170
15366
|
parentCommentId: string | null;
|
|
@@ -15204,8 +15400,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15204
15400
|
updatedAt: Date;
|
|
15205
15401
|
name: string;
|
|
15206
15402
|
classId: string;
|
|
15207
|
-
sourceUrl: string | null;
|
|
15208
15403
|
runJobId: string | null;
|
|
15404
|
+
sourceUrl: string | null;
|
|
15209
15405
|
};
|
|
15210
15406
|
meta: object;
|
|
15211
15407
|
}>;
|
|
@@ -15249,8 +15445,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15249
15445
|
content: string;
|
|
15250
15446
|
assignmentId: string | null;
|
|
15251
15447
|
submissionId: string | null;
|
|
15252
|
-
modifiedAt: Date | null;
|
|
15253
15448
|
announcementId: string | null;
|
|
15449
|
+
modifiedAt: Date | null;
|
|
15254
15450
|
isPinned: boolean;
|
|
15255
15451
|
author: {
|
|
15256
15452
|
id: string;
|
|
@@ -15285,8 +15481,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15285
15481
|
content: string;
|
|
15286
15482
|
assignmentId: string | null;
|
|
15287
15483
|
submissionId: string | null;
|
|
15288
|
-
modifiedAt: Date | null;
|
|
15289
15484
|
announcementId: string | null;
|
|
15485
|
+
modifiedAt: Date | null;
|
|
15290
15486
|
authorId: string;
|
|
15291
15487
|
isPinned: boolean;
|
|
15292
15488
|
parentCommentId: string | null;
|
|
@@ -15305,8 +15501,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15305
15501
|
content: string;
|
|
15306
15502
|
assignmentId: string | null;
|
|
15307
15503
|
submissionId: string | null;
|
|
15308
|
-
modifiedAt: Date | null;
|
|
15309
15504
|
announcementId: string | null;
|
|
15505
|
+
modifiedAt: Date | null;
|
|
15310
15506
|
authorId: string;
|
|
15311
15507
|
isPinned: boolean;
|
|
15312
15508
|
parentCommentId: string | null;
|
|
@@ -15325,8 +15521,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15325
15521
|
content: string;
|
|
15326
15522
|
assignmentId: string | null;
|
|
15327
15523
|
submissionId: string | null;
|
|
15328
|
-
modifiedAt: Date | null;
|
|
15329
15524
|
announcementId: string | null;
|
|
15525
|
+
modifiedAt: Date | null;
|
|
15330
15526
|
authorId: string;
|
|
15331
15527
|
isPinned: boolean;
|
|
15332
15528
|
parentCommentId: string | null;
|
|
@@ -15354,8 +15550,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15354
15550
|
content: string;
|
|
15355
15551
|
assignmentId: string | null;
|
|
15356
15552
|
submissionId: string | null;
|
|
15357
|
-
modifiedAt: Date | null;
|
|
15358
15553
|
announcementId: string | null;
|
|
15554
|
+
modifiedAt: Date | null;
|
|
15359
15555
|
authorId: string;
|
|
15360
15556
|
isPinned: boolean;
|
|
15361
15557
|
parentCommentId: string | null;
|
|
@@ -15650,7 +15846,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15650
15846
|
query: string;
|
|
15651
15847
|
results: {
|
|
15652
15848
|
id: string;
|
|
15653
|
-
type: "class" | "file" | "assignment" | "announcement" | "section" | "event" | "worksheet" | "syllabus";
|
|
15849
|
+
type: "class" | "file" | "assignment" | "announcement" | "discussion" | "submission" | "section" | "event" | "worksheet" | "syllabus";
|
|
15654
15850
|
title: string;
|
|
15655
15851
|
subtitle: string;
|
|
15656
15852
|
classId: string;
|
|
@@ -15671,7 +15867,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
15671
15867
|
query: string;
|
|
15672
15868
|
results: {
|
|
15673
15869
|
id: string;
|
|
15674
|
-
type: "class" | "file" | "assignment" | "announcement" | "section" | "event" | "worksheet" | "syllabus";
|
|
15870
|
+
type: "class" | "file" | "assignment" | "announcement" | "discussion" | "submission" | "section" | "event" | "worksheet" | "syllabus";
|
|
15675
15871
|
title: string;
|
|
15676
15872
|
subtitle: string;
|
|
15677
15873
|
classId: string;
|
|
@@ -16002,6 +16198,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
16002
16198
|
email: string;
|
|
16003
16199
|
password: string;
|
|
16004
16200
|
verified: boolean;
|
|
16201
|
+
termsAcceptedAt: Date | null;
|
|
16202
|
+
termsVersion: string | null;
|
|
16005
16203
|
schoolId: string | null;
|
|
16006
16204
|
}[];
|
|
16007
16205
|
students: {
|
|
@@ -16010,6 +16208,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
16010
16208
|
email: string;
|
|
16011
16209
|
password: string;
|
|
16012
16210
|
verified: boolean;
|
|
16211
|
+
termsAcceptedAt: Date | null;
|
|
16212
|
+
termsVersion: string | null;
|
|
16013
16213
|
schoolId: string | null;
|
|
16014
16214
|
}[];
|
|
16015
16215
|
} & {
|
|
@@ -16752,7 +16952,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
16752
16952
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
16753
16953
|
input: {
|
|
16754
16954
|
classId: string;
|
|
16755
|
-
type?: "
|
|
16955
|
+
type?: "ANNOUNCEMENT" | "DISCUSSION" | "QUESTION" | undefined;
|
|
16756
16956
|
sort?: "recent" | "activity" | "top" | undefined;
|
|
16757
16957
|
cursor?: string | undefined;
|
|
16758
16958
|
search?: string | undefined;
|
|
@@ -16898,7 +17098,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
16898
17098
|
classId: string;
|
|
16899
17099
|
title: string;
|
|
16900
17100
|
body: string;
|
|
16901
|
-
type?: "
|
|
17101
|
+
type?: "ANNOUNCEMENT" | "DISCUSSION" | "QUESTION" | undefined;
|
|
16902
17102
|
tagIds?: string[] | undefined;
|
|
16903
17103
|
attachmentIds?: string[] | undefined;
|
|
16904
17104
|
};
|
|
@@ -16991,7 +17191,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
16991
17191
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
16992
17192
|
input: {
|
|
16993
17193
|
discussionId: string;
|
|
16994
|
-
type?: "
|
|
17194
|
+
type?: "ANNOUNCEMENT" | "DISCUSSION" | "QUESTION" | undefined;
|
|
16995
17195
|
title?: string | undefined;
|
|
16996
17196
|
body?: string | undefined;
|
|
16997
17197
|
allowReplies?: boolean | undefined;
|
|
@@ -17775,7 +17975,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
17775
17975
|
query: string;
|
|
17776
17976
|
classId: string;
|
|
17777
17977
|
limit?: number | undefined;
|
|
17778
|
-
sourceTypes?: ("
|
|
17978
|
+
sourceTypes?: ("FILE" | "ASSIGNMENT" | "WORKSHEET" | "ANNOUNCEMENT" | "SECTION" | "DISCUSSION" | "SUBMISSION" | "SYLLABUS")[] | undefined;
|
|
17779
17979
|
};
|
|
17780
17980
|
output: import("../services/embedding.js").EmbeddingSearchResult[];
|
|
17781
17981
|
meta: object;
|
|
@@ -17783,7 +17983,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
17783
17983
|
reindex: import("@trpc/server").TRPCMutationProcedure<{
|
|
17784
17984
|
input: {
|
|
17785
17985
|
classId: string;
|
|
17786
|
-
sourceType: "
|
|
17986
|
+
sourceType: "FILE" | "ASSIGNMENT" | "WORKSHEET" | "ANNOUNCEMENT" | "SECTION" | "DISCUSSION" | "SUBMISSION" | "SYLLABUS";
|
|
17787
17987
|
sourceId: string;
|
|
17788
17988
|
};
|
|
17789
17989
|
output: {
|
|
@@ -17800,6 +18000,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
17800
18000
|
assignments: number;
|
|
17801
18001
|
worksheets: number;
|
|
17802
18002
|
announcements: number;
|
|
18003
|
+
discussions: number;
|
|
18004
|
+
submissions: number;
|
|
18005
|
+
syllabus: number;
|
|
18006
|
+
files: number;
|
|
17803
18007
|
};
|
|
17804
18008
|
};
|
|
17805
18009
|
meta: object;
|