@studious-lms/server 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +6 -0
- package/.env.test.example +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -50
- package/dist/index.js.map +1 -1
- package/dist/lib/config/cors.d.ts +16 -0
- package/dist/lib/config/cors.d.ts.map +1 -0
- package/dist/lib/config/cors.js +75 -0
- package/dist/lib/config/cors.js.map +1 -0
- package/dist/lib/config/env.d.ts +14 -0
- package/dist/lib/config/env.d.ts.map +1 -1
- package/dist/lib/config/env.js +9 -2
- package/dist/lib/config/env.js.map +1 -1
- package/dist/lib/prisma.d.ts +14 -2
- package/dist/lib/prisma.d.ts.map +1 -1
- package/dist/lib/prisma.js +27 -8
- package/dist/lib/prisma.js.map +1 -1
- package/dist/middleware/security.d.ts.map +1 -1
- package/dist/middleware/security.js +3 -3
- package/dist/middleware/security.js.map +1 -1
- package/dist/models/agenda.d.ts +16 -16
- package/dist/models/announcement.d.ts +59 -23
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +363 -276
- package/dist/models/assignment.d.ts.map +1 -1
- package/dist/models/attendance.d.ts +63 -21
- package/dist/models/attendance.d.ts.map +1 -1
- package/dist/models/auth.d.ts +102 -18
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/class.d.ts +112 -64
- package/dist/models/class.d.ts.map +1 -1
- package/dist/models/comment.d.ts +52 -16
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/conversation.d.ts +46 -16
- package/dist/models/conversation.d.ts.map +1 -1
- package/dist/models/event.d.ts +107 -53
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +213 -165
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/folder.d.ts +161 -77
- package/dist/models/folder.d.ts.map +1 -1
- package/dist/models/labChat.d.ts +73 -31
- package/dist/models/labChat.d.ts.map +1 -1
- package/dist/models/marketing.d.ts +25 -7
- package/dist/models/marketing.d.ts.map +1 -1
- package/dist/models/message.d.ts +31 -13
- package/dist/models/message.d.ts.map +1 -1
- package/dist/models/newtonChat.d.ts +34 -10
- package/dist/models/newtonChat.d.ts.map +1 -1
- package/dist/models/notification.d.ts +25 -7
- package/dist/models/notification.d.ts.map +1 -1
- package/dist/models/section.d.ts +71 -23
- package/dist/models/section.d.ts.map +1 -1
- package/dist/models/user.d.ts +27 -9
- package/dist/models/user.d.ts.map +1 -1
- package/dist/models/worksheet.d.ts +237 -108
- package/dist/models/worksheet.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.d.ts +22 -2
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +125 -95
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +22 -22
- package/dist/pipelines/gradeWorksheet.d.ts +8 -8
- package/dist/pipelines/gradeWorksheet.js +4 -4
- package/dist/pipelines/gradeWorksheet.js.map +1 -1
- package/dist/pipelines/labChatPrompt.d.ts +27 -0
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +143 -69
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/routers/_app.d.ts +1439 -1223
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/agenda.d.ts +16 -16
- package/dist/routers/announcement.d.ts +19 -19
- package/dist/routers/assignment.d.ts +307 -291
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +3 -2
- package/dist/routers/assignment.js.map +1 -1
- package/dist/routers/attendance.d.ts +7 -7
- package/dist/routers/auth.d.ts +1 -1
- package/dist/routers/class.d.ts +77 -71
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +6 -6
- package/dist/routers/conversation.d.ts +11 -11
- package/dist/routers/event.d.ts +35 -35
- package/dist/routers/file.d.ts +12 -12
- package/dist/routers/folder.d.ts +54 -54
- package/dist/routers/labChat.d.ts +12 -12
- package/dist/routers/marketing.d.ts +2 -2
- package/dist/routers/message.d.ts +2 -2
- package/dist/routers/newtonChat.d.ts +1 -1
- package/dist/routers/notifications.d.ts +4 -4
- package/dist/routers/section.d.ts +7 -7
- package/dist/routers/studentProgress.d.ts +86 -0
- package/dist/routers/studentProgress.d.ts.map +1 -1
- package/dist/routers/studentProgress.js +14 -4
- package/dist/routers/studentProgress.js.map +1 -1
- package/dist/routers/user.d.ts +1 -1
- package/dist/routers/worksheet.d.ts +58 -58
- package/dist/seedDatabase.d.ts +1 -1
- package/dist/services/agenda.d.ts +16 -16
- package/dist/services/announcement.d.ts +8 -8
- package/dist/services/assignment.d.ts +299 -283
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +24 -5
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/attendance.d.ts +7 -7
- package/dist/services/auth.d.ts +1 -1
- package/dist/services/class.d.ts +73 -67
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/comment.d.ts +6 -6
- package/dist/services/conversation.d.ts +11 -11
- package/dist/services/event.d.ts +31 -31
- package/dist/services/file.d.ts +12 -12
- package/dist/services/folder.d.ts +52 -52
- package/dist/services/labChat.d.ts +12 -12
- package/dist/services/marketing.d.ts +2 -2
- package/dist/services/notification.d.ts +4 -4
- package/dist/services/section.d.ts +6 -6
- package/dist/services/studentProgress.d.ts +75 -0
- package/dist/services/studentProgress.d.ts.map +1 -1
- package/dist/services/studentProgress.js +296 -106
- package/dist/services/studentProgress.js.map +1 -1
- package/dist/services/worksheet.d.ts +49 -49
- package/dist/utils/inference.d.ts +0 -11
- package/dist/utils/inference.d.ts.map +1 -1
- package/dist/utils/inference.js +2 -50
- package/dist/utils/inference.js.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +14 -0
- package/prisma/schema.prisma +14 -0
- package/src/index.ts +39 -51
- package/src/lib/config/cors.ts +96 -0
- package/src/lib/config/env.ts +12 -1
- package/src/lib/prisma.ts +25 -6
- package/src/middleware/security.ts +1 -1
- package/src/pipelines/aiLabChat.ts +175 -104
- package/src/pipelines/gradeWorksheet.ts +2 -2
- package/src/pipelines/labChatPrompt.ts +196 -68
- package/src/routers/assignment.ts +1 -0
- package/src/routers/studentProgress.ts +25 -1
- package/src/services/assignment.ts +30 -2
- package/src/services/studentProgress.ts +421 -120
- package/src/utils/inference.ts +0 -61
- package/tests/lib/cors.test.ts +103 -0
- package/tests/pipelines/aiLabChat.test.ts +64 -84
- package/tests/routers/studentProgress.test.ts +2 -31
- package/tests/utils/aiLabChatPrompt.test.ts +114 -6
- package/tests/utils/studentProgress.test.ts +361 -0
- package/vitest.unit.config.ts +1 -0
package/dist/routers/event.d.ts
CHANGED
|
@@ -32,9 +32,9 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
32
32
|
schoolId: string | null;
|
|
33
33
|
} | null;
|
|
34
34
|
class: {
|
|
35
|
+
name: string;
|
|
35
36
|
id: string;
|
|
36
37
|
schoolId: string | null;
|
|
37
|
-
name: string;
|
|
38
38
|
subject: string;
|
|
39
39
|
color: string | null;
|
|
40
40
|
section: string;
|
|
@@ -44,14 +44,14 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
44
44
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
45
45
|
id: string;
|
|
46
46
|
section: {
|
|
47
|
-
id: string;
|
|
48
47
|
name: string;
|
|
48
|
+
id: string;
|
|
49
49
|
} | null;
|
|
50
50
|
title: string;
|
|
51
|
-
dueDate: Date;
|
|
52
|
-
maxGrade: number | null;
|
|
53
51
|
instructions: string;
|
|
52
|
+
dueDate: Date;
|
|
54
53
|
graded: boolean;
|
|
54
|
+
maxGrade: number | null;
|
|
55
55
|
weight: number;
|
|
56
56
|
teacher: {
|
|
57
57
|
id: string;
|
|
@@ -59,19 +59,19 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
59
59
|
};
|
|
60
60
|
attachments: {
|
|
61
61
|
type: string;
|
|
62
|
-
id: string;
|
|
63
62
|
name: string;
|
|
63
|
+
id: string;
|
|
64
64
|
}[];
|
|
65
65
|
}[];
|
|
66
66
|
} & {
|
|
67
|
+
name: string | null;
|
|
67
68
|
id: string;
|
|
68
69
|
userId: string | null;
|
|
69
|
-
location: string | null;
|
|
70
|
-
classId: string | null;
|
|
71
|
-
name: string | null;
|
|
72
70
|
color: string | null;
|
|
71
|
+
classId: string | null;
|
|
73
72
|
startTime: Date;
|
|
74
73
|
endTime: Date;
|
|
74
|
+
location: string | null;
|
|
75
75
|
remarks: string | null;
|
|
76
76
|
};
|
|
77
77
|
};
|
|
@@ -81,26 +81,26 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
81
81
|
input: {
|
|
82
82
|
startTime: string;
|
|
83
83
|
endTime: string;
|
|
84
|
-
location?: string | undefined;
|
|
85
|
-
classId?: string | undefined;
|
|
86
84
|
name?: string | undefined;
|
|
87
85
|
color?: string | undefined;
|
|
86
|
+
classId?: string | undefined;
|
|
87
|
+
location?: string | undefined;
|
|
88
88
|
remarks?: string | undefined;
|
|
89
89
|
};
|
|
90
90
|
output: {
|
|
91
91
|
event: {
|
|
92
|
+
name: string | null;
|
|
92
93
|
id: string;
|
|
93
94
|
userId: string | null;
|
|
94
|
-
location: string | null;
|
|
95
|
-
classId: string | null;
|
|
96
95
|
class: {
|
|
97
|
-
id: string;
|
|
98
96
|
name: string;
|
|
97
|
+
id: string;
|
|
99
98
|
} | null;
|
|
100
|
-
name: string | null;
|
|
101
99
|
color: string | null;
|
|
100
|
+
classId: string | null;
|
|
102
101
|
startTime: Date;
|
|
103
102
|
endTime: Date;
|
|
103
|
+
location: string | null;
|
|
104
104
|
remarks: string | null;
|
|
105
105
|
};
|
|
106
106
|
};
|
|
@@ -112,23 +112,23 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
112
112
|
data: {
|
|
113
113
|
startTime: string;
|
|
114
114
|
endTime: string;
|
|
115
|
-
location?: string | undefined;
|
|
116
|
-
classId?: string | undefined;
|
|
117
115
|
name?: string | undefined;
|
|
118
116
|
color?: string | undefined;
|
|
117
|
+
classId?: string | undefined;
|
|
118
|
+
location?: string | undefined;
|
|
119
119
|
remarks?: string | undefined;
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
122
|
output: {
|
|
123
123
|
event: {
|
|
124
|
+
name: string | null;
|
|
124
125
|
id: string;
|
|
125
126
|
userId: string | null;
|
|
126
|
-
location: string | null;
|
|
127
|
-
classId: string | null;
|
|
128
|
-
name: string | null;
|
|
129
127
|
color: string | null;
|
|
128
|
+
classId: string | null;
|
|
130
129
|
startTime: Date;
|
|
131
130
|
endTime: Date;
|
|
131
|
+
location: string | null;
|
|
132
132
|
remarks: string | null;
|
|
133
133
|
};
|
|
134
134
|
};
|
|
@@ -151,8 +151,8 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
151
151
|
output: {
|
|
152
152
|
assignment: {
|
|
153
153
|
section: {
|
|
154
|
-
id: string;
|
|
155
154
|
name: string;
|
|
155
|
+
id: string;
|
|
156
156
|
} | null;
|
|
157
157
|
teacher: {
|
|
158
158
|
id: string;
|
|
@@ -160,20 +160,18 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
160
160
|
};
|
|
161
161
|
attachments: {
|
|
162
162
|
type: string;
|
|
163
|
-
id: string;
|
|
164
163
|
name: string;
|
|
164
|
+
id: string;
|
|
165
165
|
}[];
|
|
166
166
|
} & {
|
|
167
167
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
168
168
|
id: string;
|
|
169
169
|
createdAt: Date | null;
|
|
170
|
+
modifiedAt: Date | null;
|
|
170
171
|
classId: string;
|
|
171
172
|
title: string;
|
|
172
|
-
dueDate: Date;
|
|
173
|
-
maxGrade: number | null;
|
|
174
|
-
eventId: string | null;
|
|
175
173
|
instructions: string;
|
|
176
|
-
|
|
174
|
+
dueDate: Date;
|
|
177
175
|
teacherId: string;
|
|
178
176
|
acceptFiles: boolean;
|
|
179
177
|
acceptExtendedResponse: boolean;
|
|
@@ -182,9 +180,11 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
182
180
|
aiPolicyLevel: number;
|
|
183
181
|
sectionId: string | null;
|
|
184
182
|
graded: boolean;
|
|
183
|
+
maxGrade: number | null;
|
|
185
184
|
weight: number;
|
|
186
185
|
inProgress: boolean;
|
|
187
186
|
template: boolean;
|
|
187
|
+
eventId: string | null;
|
|
188
188
|
markSchemeId: string | null;
|
|
189
189
|
order: number | null;
|
|
190
190
|
gradingBoundaryId: string | null;
|
|
@@ -200,8 +200,8 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
200
200
|
output: {
|
|
201
201
|
assignment: {
|
|
202
202
|
section: {
|
|
203
|
-
id: string;
|
|
204
203
|
name: string;
|
|
204
|
+
id: string;
|
|
205
205
|
} | null;
|
|
206
206
|
teacher: {
|
|
207
207
|
id: string;
|
|
@@ -209,20 +209,18 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
209
209
|
};
|
|
210
210
|
attachments: {
|
|
211
211
|
type: string;
|
|
212
|
-
id: string;
|
|
213
212
|
name: string;
|
|
213
|
+
id: string;
|
|
214
214
|
}[];
|
|
215
215
|
} & {
|
|
216
216
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
217
217
|
id: string;
|
|
218
218
|
createdAt: Date | null;
|
|
219
|
+
modifiedAt: Date | null;
|
|
219
220
|
classId: string;
|
|
220
221
|
title: string;
|
|
221
|
-
dueDate: Date;
|
|
222
|
-
maxGrade: number | null;
|
|
223
|
-
eventId: string | null;
|
|
224
222
|
instructions: string;
|
|
225
|
-
|
|
223
|
+
dueDate: Date;
|
|
226
224
|
teacherId: string;
|
|
227
225
|
acceptFiles: boolean;
|
|
228
226
|
acceptExtendedResponse: boolean;
|
|
@@ -231,9 +229,11 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
231
229
|
aiPolicyLevel: number;
|
|
232
230
|
sectionId: string | null;
|
|
233
231
|
graded: boolean;
|
|
232
|
+
maxGrade: number | null;
|
|
234
233
|
weight: number;
|
|
235
234
|
inProgress: boolean;
|
|
236
235
|
template: boolean;
|
|
236
|
+
eventId: string | null;
|
|
237
237
|
markSchemeId: string | null;
|
|
238
238
|
order: number | null;
|
|
239
239
|
gradingBoundaryId: string | null;
|
|
@@ -250,14 +250,14 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
250
250
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
251
251
|
id: string;
|
|
252
252
|
section: {
|
|
253
|
-
id: string;
|
|
254
253
|
name: string;
|
|
254
|
+
id: string;
|
|
255
255
|
} | null;
|
|
256
256
|
title: string;
|
|
257
|
-
dueDate: Date;
|
|
258
|
-
maxGrade: number | null;
|
|
259
257
|
instructions: string;
|
|
258
|
+
dueDate: Date;
|
|
260
259
|
graded: boolean;
|
|
260
|
+
maxGrade: number | null;
|
|
261
261
|
weight: number;
|
|
262
262
|
teacher: {
|
|
263
263
|
id: string;
|
|
@@ -265,8 +265,8 @@ export declare const eventRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
265
265
|
};
|
|
266
266
|
attachments: {
|
|
267
267
|
type: string;
|
|
268
|
-
id: string;
|
|
269
268
|
name: string;
|
|
269
|
+
id: string;
|
|
270
270
|
}[];
|
|
271
271
|
}[];
|
|
272
272
|
};
|
package/dist/routers/file.d.ts
CHANGED
|
@@ -40,15 +40,11 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
40
40
|
} & {
|
|
41
41
|
path: string;
|
|
42
42
|
type: string;
|
|
43
|
-
id: string;
|
|
44
|
-
userId: string | null;
|
|
45
43
|
name: string;
|
|
44
|
+
id: string;
|
|
46
45
|
size: number | null;
|
|
46
|
+
userId: string | null;
|
|
47
47
|
uploadedAt: Date | null;
|
|
48
|
-
assignmentId: string | null;
|
|
49
|
-
submissionId: string | null;
|
|
50
|
-
thumbnailId: string | null;
|
|
51
|
-
annotationId: string | null;
|
|
52
48
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
53
49
|
uploadUrl: string | null;
|
|
54
50
|
uploadExpiresAt: Date | null;
|
|
@@ -58,6 +54,10 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
58
54
|
uploadRetryCount: number;
|
|
59
55
|
isOrphaned: boolean;
|
|
60
56
|
cleanupAt: Date | null;
|
|
57
|
+
thumbnailId: string | null;
|
|
58
|
+
assignmentId: string | null;
|
|
59
|
+
submissionId: string | null;
|
|
60
|
+
annotationId: string | null;
|
|
61
61
|
classDraftId: string | null;
|
|
62
62
|
folderId: string | null;
|
|
63
63
|
conversationId: string | null;
|
|
@@ -82,15 +82,11 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
82
82
|
} & {
|
|
83
83
|
path: string;
|
|
84
84
|
type: string;
|
|
85
|
-
id: string;
|
|
86
|
-
userId: string | null;
|
|
87
85
|
name: string;
|
|
86
|
+
id: string;
|
|
88
87
|
size: number | null;
|
|
88
|
+
userId: string | null;
|
|
89
89
|
uploadedAt: Date | null;
|
|
90
|
-
assignmentId: string | null;
|
|
91
|
-
submissionId: string | null;
|
|
92
|
-
thumbnailId: string | null;
|
|
93
|
-
annotationId: string | null;
|
|
94
90
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
95
91
|
uploadUrl: string | null;
|
|
96
92
|
uploadExpiresAt: Date | null;
|
|
@@ -100,6 +96,10 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
100
96
|
uploadRetryCount: number;
|
|
101
97
|
isOrphaned: boolean;
|
|
102
98
|
cleanupAt: Date | null;
|
|
99
|
+
thumbnailId: string | null;
|
|
100
|
+
assignmentId: string | null;
|
|
101
|
+
submissionId: string | null;
|
|
102
|
+
annotationId: string | null;
|
|
103
103
|
classDraftId: string | null;
|
|
104
104
|
folderId: string | null;
|
|
105
105
|
conversationId: string | null;
|
package/dist/routers/folder.d.ts
CHANGED
|
@@ -27,29 +27,29 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
27
27
|
output: {
|
|
28
28
|
files: {
|
|
29
29
|
type: string;
|
|
30
|
+
name: string;
|
|
31
|
+
id: string;
|
|
32
|
+
size: number | null;
|
|
33
|
+
uploadedAt: Date | null;
|
|
30
34
|
user: {
|
|
31
35
|
id: string;
|
|
32
36
|
username: string;
|
|
33
37
|
} | null;
|
|
34
|
-
id: string;
|
|
35
|
-
name: string;
|
|
36
|
-
size: number | null;
|
|
37
|
-
uploadedAt: Date | null;
|
|
38
38
|
}[];
|
|
39
39
|
childFolders: {
|
|
40
|
+
name: string;
|
|
40
41
|
id: string;
|
|
41
42
|
_count: {
|
|
42
43
|
files: number;
|
|
43
44
|
childFolders: number;
|
|
44
45
|
};
|
|
45
|
-
name: string;
|
|
46
46
|
color: string | null;
|
|
47
47
|
}[];
|
|
48
48
|
} & {
|
|
49
|
-
id: string;
|
|
50
|
-
classId: string | null;
|
|
51
49
|
name: string;
|
|
50
|
+
id: string;
|
|
52
51
|
color: string | null;
|
|
52
|
+
classId: string | null;
|
|
53
53
|
parentFolderId: string | null;
|
|
54
54
|
};
|
|
55
55
|
meta: object;
|
|
@@ -63,33 +63,33 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
63
63
|
output: {
|
|
64
64
|
files: {
|
|
65
65
|
type: string;
|
|
66
|
+
name: string;
|
|
67
|
+
id: string;
|
|
68
|
+
size: number | null;
|
|
69
|
+
uploadedAt: Date | null;
|
|
66
70
|
user: {
|
|
67
71
|
id: string;
|
|
68
72
|
username: string;
|
|
69
73
|
} | null;
|
|
70
|
-
id: string;
|
|
71
|
-
name: string;
|
|
72
|
-
size: number | null;
|
|
73
|
-
uploadedAt: Date | null;
|
|
74
74
|
}[];
|
|
75
75
|
childFolders: {
|
|
76
|
+
name: string;
|
|
76
77
|
id: string;
|
|
77
78
|
_count: {
|
|
78
79
|
files: number;
|
|
79
80
|
childFolders: number;
|
|
80
81
|
};
|
|
81
|
-
name: string;
|
|
82
82
|
color: string | null;
|
|
83
83
|
}[];
|
|
84
84
|
parentFolder: {
|
|
85
|
-
id: string;
|
|
86
85
|
name: string;
|
|
86
|
+
id: string;
|
|
87
87
|
} | null;
|
|
88
88
|
} & {
|
|
89
|
-
id: string;
|
|
90
|
-
classId: string | null;
|
|
91
89
|
name: string;
|
|
90
|
+
id: string;
|
|
92
91
|
color: string | null;
|
|
92
|
+
classId: string | null;
|
|
93
93
|
parentFolderId: string | null;
|
|
94
94
|
};
|
|
95
95
|
meta: object;
|
|
@@ -102,29 +102,29 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
102
102
|
output: ({
|
|
103
103
|
files: {
|
|
104
104
|
type: string;
|
|
105
|
+
name: string;
|
|
106
|
+
id: string;
|
|
107
|
+
size: number | null;
|
|
108
|
+
uploadedAt: Date | null;
|
|
105
109
|
user: {
|
|
106
110
|
id: string;
|
|
107
111
|
username: string;
|
|
108
112
|
} | null;
|
|
109
|
-
id: string;
|
|
110
|
-
name: string;
|
|
111
|
-
size: number | null;
|
|
112
|
-
uploadedAt: Date | null;
|
|
113
113
|
}[];
|
|
114
114
|
childFolders: {
|
|
115
|
+
name: string;
|
|
115
116
|
id: string;
|
|
116
117
|
_count: {
|
|
117
118
|
files: number;
|
|
118
119
|
childFolders: number;
|
|
119
120
|
};
|
|
120
|
-
name: string;
|
|
121
121
|
color: string | null;
|
|
122
122
|
}[];
|
|
123
123
|
} & {
|
|
124
|
-
id: string;
|
|
125
|
-
classId: string | null;
|
|
126
124
|
name: string;
|
|
125
|
+
id: string;
|
|
127
126
|
color: string | null;
|
|
127
|
+
classId: string | null;
|
|
128
128
|
parentFolderId: string | null;
|
|
129
129
|
})[];
|
|
130
130
|
meta: object;
|
|
@@ -138,29 +138,29 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
138
138
|
output: ({
|
|
139
139
|
files: {
|
|
140
140
|
type: string;
|
|
141
|
+
name: string;
|
|
142
|
+
id: string;
|
|
143
|
+
size: number | null;
|
|
144
|
+
uploadedAt: Date | null;
|
|
141
145
|
user: {
|
|
142
146
|
id: string;
|
|
143
147
|
username: string;
|
|
144
148
|
} | null;
|
|
145
|
-
id: string;
|
|
146
|
-
name: string;
|
|
147
|
-
size: number | null;
|
|
148
|
-
uploadedAt: Date | null;
|
|
149
149
|
}[];
|
|
150
150
|
childFolders: {
|
|
151
|
+
name: string;
|
|
151
152
|
id: string;
|
|
152
153
|
_count: {
|
|
153
154
|
files: number;
|
|
154
155
|
childFolders: number;
|
|
155
156
|
};
|
|
156
|
-
name: string;
|
|
157
157
|
color: string | null;
|
|
158
158
|
}[];
|
|
159
159
|
} & {
|
|
160
|
-
id: string;
|
|
161
|
-
classId: string | null;
|
|
162
160
|
name: string;
|
|
161
|
+
id: string;
|
|
163
162
|
color: string | null;
|
|
163
|
+
classId: string | null;
|
|
164
164
|
parentFolderId: string | null;
|
|
165
165
|
})[];
|
|
166
166
|
meta: object;
|
|
@@ -173,16 +173,17 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
173
173
|
output: {
|
|
174
174
|
files: {
|
|
175
175
|
type: string;
|
|
176
|
+
name: string;
|
|
177
|
+
id: string;
|
|
178
|
+
size: number | null;
|
|
179
|
+
uploadedAt: Date | null;
|
|
176
180
|
user: {
|
|
177
181
|
id: string;
|
|
178
182
|
username: string;
|
|
179
183
|
} | null;
|
|
180
|
-
id: string;
|
|
181
|
-
name: string;
|
|
182
|
-
size: number | null;
|
|
183
|
-
uploadedAt: Date | null;
|
|
184
184
|
}[];
|
|
185
185
|
childFolders: {
|
|
186
|
+
name: string;
|
|
186
187
|
id: string;
|
|
187
188
|
files: {
|
|
188
189
|
id: string;
|
|
@@ -191,17 +192,16 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
191
192
|
files: number;
|
|
192
193
|
childFolders: number;
|
|
193
194
|
};
|
|
194
|
-
name: string;
|
|
195
195
|
color: string | null;
|
|
196
196
|
childFolders: {
|
|
197
197
|
id: string;
|
|
198
198
|
}[];
|
|
199
199
|
}[];
|
|
200
200
|
} & {
|
|
201
|
-
id: string;
|
|
202
|
-
classId: string | null;
|
|
203
201
|
name: string;
|
|
202
|
+
id: string;
|
|
204
203
|
color: string | null;
|
|
204
|
+
classId: string | null;
|
|
205
205
|
parentFolderId: string | null;
|
|
206
206
|
};
|
|
207
207
|
meta: object;
|
|
@@ -210,12 +210,12 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
210
210
|
input: {
|
|
211
211
|
[x: string]: unknown;
|
|
212
212
|
classId: string;
|
|
213
|
+
folderId: string;
|
|
213
214
|
files: {
|
|
214
215
|
type: string;
|
|
215
216
|
name: string;
|
|
216
217
|
size: number;
|
|
217
218
|
}[];
|
|
218
|
-
folderId: string;
|
|
219
219
|
};
|
|
220
220
|
output: {
|
|
221
221
|
success: boolean;
|
|
@@ -246,29 +246,29 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
246
246
|
output: {
|
|
247
247
|
files: {
|
|
248
248
|
type: string;
|
|
249
|
+
name: string;
|
|
250
|
+
id: string;
|
|
251
|
+
size: number | null;
|
|
252
|
+
uploadedAt: Date | null;
|
|
249
253
|
user: {
|
|
250
254
|
id: string;
|
|
251
255
|
username: string;
|
|
252
256
|
} | null;
|
|
253
|
-
id: string;
|
|
254
|
-
name: string;
|
|
255
|
-
size: number | null;
|
|
256
|
-
uploadedAt: Date | null;
|
|
257
257
|
}[];
|
|
258
258
|
childFolders: {
|
|
259
|
+
name: string;
|
|
259
260
|
id: string;
|
|
260
261
|
_count: {
|
|
261
262
|
files: number;
|
|
262
263
|
childFolders: number;
|
|
263
264
|
};
|
|
264
|
-
name: string;
|
|
265
265
|
color: string | null;
|
|
266
266
|
}[];
|
|
267
267
|
} & {
|
|
268
|
-
id: string;
|
|
269
|
-
classId: string | null;
|
|
270
268
|
name: string;
|
|
269
|
+
id: string;
|
|
271
270
|
color: string | null;
|
|
271
|
+
classId: string | null;
|
|
272
272
|
parentFolderId: string | null;
|
|
273
273
|
};
|
|
274
274
|
meta: object;
|
|
@@ -284,29 +284,29 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
284
284
|
output: {
|
|
285
285
|
files: {
|
|
286
286
|
type: string;
|
|
287
|
+
name: string;
|
|
288
|
+
id: string;
|
|
289
|
+
size: number | null;
|
|
290
|
+
uploadedAt: Date | null;
|
|
287
291
|
user: {
|
|
288
292
|
id: string;
|
|
289
293
|
username: string;
|
|
290
294
|
} | null;
|
|
291
|
-
id: string;
|
|
292
|
-
name: string;
|
|
293
|
-
size: number | null;
|
|
294
|
-
uploadedAt: Date | null;
|
|
295
295
|
}[];
|
|
296
296
|
childFolders: {
|
|
297
|
+
name: string;
|
|
297
298
|
id: string;
|
|
298
299
|
_count: {
|
|
299
300
|
files: number;
|
|
300
301
|
childFolders: number;
|
|
301
302
|
};
|
|
302
|
-
name: string;
|
|
303
303
|
color: string | null;
|
|
304
304
|
}[];
|
|
305
305
|
} & {
|
|
306
|
-
id: string;
|
|
307
|
-
classId: string | null;
|
|
308
306
|
name: string;
|
|
307
|
+
id: string;
|
|
309
308
|
color: string | null;
|
|
309
|
+
classId: string | null;
|
|
310
310
|
parentFolderId: string | null;
|
|
311
311
|
};
|
|
312
312
|
meta: object;
|
|
@@ -316,10 +316,10 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
316
316
|
folderId: string;
|
|
317
317
|
};
|
|
318
318
|
output: ({
|
|
319
|
-
id: string;
|
|
320
|
-
classId: string | null;
|
|
321
319
|
name: string;
|
|
320
|
+
id: string;
|
|
322
321
|
color: string | null;
|
|
322
|
+
classId: string | null;
|
|
323
323
|
parentFolderId: string | null;
|
|
324
324
|
} | null)[];
|
|
325
325
|
meta: object;
|
|
@@ -328,12 +328,12 @@ export declare const folderRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
328
328
|
input: {
|
|
329
329
|
[x: string]: unknown;
|
|
330
330
|
classId: string;
|
|
331
|
+
folderId: string;
|
|
331
332
|
files: {
|
|
332
333
|
type: string;
|
|
333
334
|
name: string;
|
|
334
335
|
size: number;
|
|
335
336
|
}[];
|
|
336
|
-
folderId: string;
|
|
337
337
|
};
|
|
338
338
|
output: import("../lib/fileUpload.js").DirectUploadFile[];
|
|
339
339
|
meta: object;
|
|
@@ -24,8 +24,8 @@ export declare const labChatRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
24
24
|
};
|
|
25
25
|
output: {
|
|
26
26
|
class: {
|
|
27
|
-
id: string;
|
|
28
27
|
name: string;
|
|
28
|
+
id: string;
|
|
29
29
|
subject: string;
|
|
30
30
|
section: string;
|
|
31
31
|
};
|
|
@@ -41,19 +41,19 @@ export declare const labChatRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
41
41
|
};
|
|
42
42
|
} & {
|
|
43
43
|
id: string;
|
|
44
|
-
role: import(".prisma/client").$Enums.ConversationRole;
|
|
45
44
|
userId: string;
|
|
46
45
|
conversationId: string;
|
|
46
|
+
role: import(".prisma/client").$Enums.ConversationRole;
|
|
47
47
|
joinedAt: Date;
|
|
48
48
|
lastViewedAt: Date | null;
|
|
49
49
|
lastViewedMentionAt: Date | null;
|
|
50
50
|
})[];
|
|
51
51
|
} & {
|
|
52
52
|
type: import(".prisma/client").$Enums.ConversationType;
|
|
53
|
+
name: string | null;
|
|
53
54
|
id: string;
|
|
54
55
|
createdAt: Date;
|
|
55
56
|
updatedAt: Date;
|
|
56
|
-
name: string | null;
|
|
57
57
|
displayInChat: boolean;
|
|
58
58
|
};
|
|
59
59
|
createdBy: {
|
|
@@ -66,11 +66,11 @@ export declare const labChatRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
66
66
|
} & {
|
|
67
67
|
context: string;
|
|
68
68
|
id: string;
|
|
69
|
+
conversationId: string;
|
|
69
70
|
createdAt: Date;
|
|
70
|
-
updatedAt: Date;
|
|
71
71
|
classId: string;
|
|
72
72
|
title: string;
|
|
73
|
-
|
|
73
|
+
updatedAt: Date;
|
|
74
74
|
createdById: string;
|
|
75
75
|
};
|
|
76
76
|
meta: object;
|
|
@@ -82,8 +82,8 @@ export declare const labChatRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
82
82
|
output: {
|
|
83
83
|
pendingGenerationMessageId: string | null;
|
|
84
84
|
class: {
|
|
85
|
-
id: string;
|
|
86
85
|
name: string;
|
|
86
|
+
id: string;
|
|
87
87
|
subject: string;
|
|
88
88
|
section: string;
|
|
89
89
|
};
|
|
@@ -99,19 +99,19 @@ export declare const labChatRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
99
99
|
};
|
|
100
100
|
} & {
|
|
101
101
|
id: string;
|
|
102
|
-
role: import(".prisma/client").$Enums.ConversationRole;
|
|
103
102
|
userId: string;
|
|
104
103
|
conversationId: string;
|
|
104
|
+
role: import(".prisma/client").$Enums.ConversationRole;
|
|
105
105
|
joinedAt: Date;
|
|
106
106
|
lastViewedAt: Date | null;
|
|
107
107
|
lastViewedMentionAt: Date | null;
|
|
108
108
|
})[];
|
|
109
109
|
} & {
|
|
110
110
|
type: import(".prisma/client").$Enums.ConversationType;
|
|
111
|
+
name: string | null;
|
|
111
112
|
id: string;
|
|
112
113
|
createdAt: Date;
|
|
113
114
|
updatedAt: Date;
|
|
114
|
-
name: string | null;
|
|
115
115
|
displayInChat: boolean;
|
|
116
116
|
};
|
|
117
117
|
createdBy: {
|
|
@@ -124,11 +124,11 @@ export declare const labChatRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
124
124
|
};
|
|
125
125
|
context: string;
|
|
126
126
|
id: string;
|
|
127
|
+
conversationId: string;
|
|
127
128
|
createdAt: Date;
|
|
128
|
-
updatedAt: Date;
|
|
129
129
|
classId: string;
|
|
130
130
|
title: string;
|
|
131
|
-
|
|
131
|
+
updatedAt: Date;
|
|
132
132
|
createdById: string;
|
|
133
133
|
};
|
|
134
134
|
meta: object;
|
|
@@ -161,11 +161,11 @@ export declare const labChatRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
161
161
|
};
|
|
162
162
|
} & {
|
|
163
163
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
164
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
164
165
|
id: string;
|
|
166
|
+
conversationId: string;
|
|
165
167
|
createdAt: Date;
|
|
166
|
-
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
167
168
|
content: string;
|
|
168
|
-
conversationId: string;
|
|
169
169
|
senderId: string;
|
|
170
170
|
};
|
|
171
171
|
messageCount: number;
|