@studious-lms/server 1.4.0 → 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 +30 -6
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +157 -234
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +413 -0
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -0
- package/dist/pipelines/aiLabChatContract.js +74 -0
- package/dist/pipelines/aiLabChatContract.js.map +1 -0
- 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 +29 -0
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -0
- package/dist/pipelines/labChatPrompt.js +146 -0
- package/dist/pipelines/labChatPrompt.js.map +1 -0
- package/dist/routers/_app.d.ts +1622 -1260
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/_app.js +4 -2
- package/dist/routers/_app.js.map +1 -1
- package/dist/routers/agenda.d.ts +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 +161 -0
- package/dist/routers/studentProgress.d.ts.map +1 -0
- package/dist/routers/studentProgress.js +43 -0
- package/dist/routers/studentProgress.js.map +1 -0
- 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/labChat.d.ts.map +1 -1
- package/dist/services/labChat.js +31 -15
- package/dist/services/labChat.js.map +1 -1
- package/dist/services/marketing.d.ts +2 -2
- package/dist/services/message.d.ts.map +1 -1
- package/dist/services/message.js +90 -48
- package/dist/services/message.js.map +1 -1
- package/dist/services/notification.d.ts +4 -4
- package/dist/services/section.d.ts +6 -6
- package/dist/services/studentProgress.d.ts +120 -0
- package/dist/services/studentProgress.d.ts.map +1 -0
- package/dist/services/studentProgress.js +481 -0
- package/dist/services/studentProgress.js.map +1 -0
- 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 +2 -2
- package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +14 -0
- package/prisma/schema.prisma +14 -0
- package/sentry.properties +3 -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 +206 -246
- package/src/pipelines/aiLabChatContract.ts +75 -0
- package/src/pipelines/gradeWorksheet.ts +2 -2
- package/src/pipelines/labChatPrompt.ts +196 -0
- package/src/routers/_app.ts +4 -2
- package/src/routers/assignment.ts +1 -0
- package/src/routers/studentProgress.ts +71 -0
- package/src/services/assignment.ts +30 -2
- package/src/services/labChat.ts +31 -22
- package/src/services/message.ts +97 -48
- package/src/services/studentProgress.ts +691 -0
- package/src/utils/inference.ts +0 -61
- package/tests/lib/aiLabChatContract.test.ts +32 -0
- package/tests/lib/cors.test.ts +103 -0
- package/tests/pipelines/aiLabChat.test.ts +75 -0
- package/tests/routers/studentProgress.test.ts +254 -0
- package/tests/utils/aiLabChatPrompt.test.ts +126 -0
- package/tests/utils/studentProgress.test.ts +361 -0
- package/vitest.unit.config.ts +8 -1
package/dist/models/folder.d.ts
CHANGED
|
@@ -1,53 +1,77 @@
|
|
|
1
1
|
/** @returns Class if user is a teacher. */
|
|
2
2
|
export declare function findClassWithTeacher(classId: string, teacherId: string): import(".prisma/client").Prisma.Prisma__ClassClient<{
|
|
3
|
+
name: string;
|
|
3
4
|
id: string;
|
|
4
5
|
schoolId: string | null;
|
|
5
|
-
name: string;
|
|
6
6
|
subject: string;
|
|
7
7
|
color: string | null;
|
|
8
8
|
section: string;
|
|
9
9
|
syllabus: string | null;
|
|
10
|
-
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
10
|
+
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
11
|
+
datasources: {
|
|
12
|
+
db: {
|
|
13
|
+
url: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
11
17
|
/** @returns Folder by ID. */
|
|
12
18
|
export declare function findFolderById(folderId: string): import(".prisma/client").Prisma.Prisma__FolderClient<{
|
|
13
|
-
id: string;
|
|
14
|
-
classId: string | null;
|
|
15
19
|
name: string;
|
|
20
|
+
id: string;
|
|
16
21
|
color: string | null;
|
|
22
|
+
classId: string | null;
|
|
17
23
|
parentFolderId: string | null;
|
|
18
|
-
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
24
|
+
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
25
|
+
datasources: {
|
|
26
|
+
db: {
|
|
27
|
+
url: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
19
31
|
/** @returns Folder with class. */
|
|
20
32
|
export declare function findFolderByIdWithClass(folderId: string): import(".prisma/client").Prisma.Prisma__FolderClient<({
|
|
21
33
|
class: {
|
|
34
|
+
name: string;
|
|
22
35
|
id: string;
|
|
23
36
|
schoolId: string | null;
|
|
24
|
-
name: string;
|
|
25
37
|
subject: string;
|
|
26
38
|
color: string | null;
|
|
27
39
|
section: string;
|
|
28
40
|
syllabus: string | null;
|
|
29
41
|
} | null;
|
|
30
42
|
} & {
|
|
31
|
-
id: string;
|
|
32
|
-
classId: string | null;
|
|
33
43
|
name: string;
|
|
44
|
+
id: string;
|
|
34
45
|
color: string | null;
|
|
46
|
+
classId: string | null;
|
|
35
47
|
parentFolderId: string | null;
|
|
36
|
-
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
48
|
+
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
49
|
+
datasources: {
|
|
50
|
+
db: {
|
|
51
|
+
url: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
37
55
|
/** @returns Root folder for a class. */
|
|
38
56
|
export declare function findRootFolderByClassId(classId: string): import(".prisma/client").Prisma.Prisma__FolderClient<{
|
|
39
|
-
id: string;
|
|
40
|
-
classId: string | null;
|
|
41
57
|
name: string;
|
|
58
|
+
id: string;
|
|
42
59
|
color: string | null;
|
|
60
|
+
classId: string | null;
|
|
43
61
|
parentFolderId: string | null;
|
|
44
|
-
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
62
|
+
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
63
|
+
datasources: {
|
|
64
|
+
db: {
|
|
65
|
+
url: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
}>;
|
|
45
69
|
/** Get or create root folder for a class. */
|
|
46
70
|
export declare function findOrCreateRootFolder(classId: string): Promise<{
|
|
47
|
-
id: string;
|
|
48
|
-
classId: string | null;
|
|
49
71
|
name: string;
|
|
72
|
+
id: string;
|
|
50
73
|
color: string | null;
|
|
74
|
+
classId: string | null;
|
|
51
75
|
parentFolderId: string | null;
|
|
52
76
|
}>;
|
|
53
77
|
/** Create a folder. */
|
|
@@ -59,107 +83,120 @@ export declare function createFolder(data: {
|
|
|
59
83
|
}): import(".prisma/client").Prisma.Prisma__FolderClient<{
|
|
60
84
|
files: {
|
|
61
85
|
type: string;
|
|
86
|
+
name: string;
|
|
87
|
+
id: string;
|
|
88
|
+
size: number | null;
|
|
89
|
+
uploadedAt: Date | null;
|
|
62
90
|
user: {
|
|
63
91
|
id: string;
|
|
64
92
|
username: string;
|
|
65
93
|
} | null;
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
size: number | null;
|
|
69
|
-
uploadedAt: Date | null;
|
|
70
94
|
}[];
|
|
71
95
|
childFolders: {
|
|
96
|
+
name: string;
|
|
72
97
|
id: string;
|
|
73
98
|
_count: {
|
|
74
99
|
files: number;
|
|
75
100
|
childFolders: number;
|
|
76
101
|
};
|
|
77
|
-
name: string;
|
|
78
102
|
color: string | null;
|
|
79
103
|
}[];
|
|
80
104
|
} & {
|
|
81
|
-
id: string;
|
|
82
|
-
classId: string | null;
|
|
83
105
|
name: string;
|
|
106
|
+
id: string;
|
|
84
107
|
color: string | null;
|
|
108
|
+
classId: string | null;
|
|
85
109
|
parentFolderId: string | null;
|
|
86
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
110
|
+
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
111
|
+
datasources: {
|
|
112
|
+
db: {
|
|
113
|
+
url: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}>;
|
|
87
117
|
/** @returns Folder with files and child folders. */
|
|
88
118
|
export declare function findFolderWithContents(folderId: string): import(".prisma/client").Prisma.Prisma__FolderClient<({
|
|
89
119
|
files: {
|
|
90
120
|
type: string;
|
|
121
|
+
name: string;
|
|
122
|
+
id: string;
|
|
123
|
+
size: number | null;
|
|
124
|
+
uploadedAt: Date | null;
|
|
91
125
|
user: {
|
|
92
126
|
id: string;
|
|
93
127
|
username: string;
|
|
94
128
|
} | null;
|
|
95
|
-
id: string;
|
|
96
|
-
name: string;
|
|
97
|
-
size: number | null;
|
|
98
|
-
uploadedAt: Date | null;
|
|
99
129
|
}[];
|
|
100
130
|
childFolders: {
|
|
131
|
+
name: string;
|
|
101
132
|
id: string;
|
|
102
133
|
_count: {
|
|
103
134
|
files: number;
|
|
104
135
|
childFolders: number;
|
|
105
136
|
};
|
|
106
|
-
name: string;
|
|
107
137
|
color: string | null;
|
|
108
138
|
}[];
|
|
109
139
|
parentFolder: {
|
|
110
|
-
id: string;
|
|
111
140
|
name: string;
|
|
141
|
+
id: string;
|
|
112
142
|
} | null;
|
|
113
143
|
} & {
|
|
114
|
-
id: string;
|
|
115
|
-
classId: string | null;
|
|
116
144
|
name: string;
|
|
145
|
+
id: string;
|
|
117
146
|
color: string | null;
|
|
147
|
+
classId: string | null;
|
|
118
148
|
parentFolderId: string | null;
|
|
119
|
-
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
149
|
+
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
150
|
+
datasources: {
|
|
151
|
+
db: {
|
|
152
|
+
url: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
120
156
|
/** @returns Direct child folders. */
|
|
121
157
|
export declare function findChildFolders(parentFolderId: string): import(".prisma/client").Prisma.PrismaPromise<({
|
|
122
158
|
files: {
|
|
123
159
|
type: string;
|
|
160
|
+
name: string;
|
|
161
|
+
id: string;
|
|
162
|
+
size: number | null;
|
|
163
|
+
uploadedAt: Date | null;
|
|
124
164
|
user: {
|
|
125
165
|
id: string;
|
|
126
166
|
username: string;
|
|
127
167
|
} | null;
|
|
128
|
-
id: string;
|
|
129
|
-
name: string;
|
|
130
|
-
size: number | null;
|
|
131
|
-
uploadedAt: Date | null;
|
|
132
168
|
}[];
|
|
133
169
|
childFolders: {
|
|
170
|
+
name: string;
|
|
134
171
|
id: string;
|
|
135
172
|
_count: {
|
|
136
173
|
files: number;
|
|
137
174
|
childFolders: number;
|
|
138
175
|
};
|
|
139
|
-
name: string;
|
|
140
176
|
color: string | null;
|
|
141
177
|
}[];
|
|
142
178
|
} & {
|
|
143
|
-
id: string;
|
|
144
|
-
classId: string | null;
|
|
145
179
|
name: string;
|
|
180
|
+
id: string;
|
|
146
181
|
color: string | null;
|
|
182
|
+
classId: string | null;
|
|
147
183
|
parentFolderId: string | null;
|
|
148
184
|
})[]>;
|
|
149
185
|
/** @returns Root folder with contents for a class. */
|
|
150
186
|
export declare function findRootFolderWithContents(classId: string): import(".prisma/client").Prisma.Prisma__FolderClient<({
|
|
151
187
|
files: {
|
|
152
188
|
type: string;
|
|
189
|
+
name: string;
|
|
190
|
+
id: string;
|
|
191
|
+
size: number | null;
|
|
192
|
+
uploadedAt: Date | null;
|
|
153
193
|
user: {
|
|
154
194
|
id: string;
|
|
155
195
|
username: string;
|
|
156
196
|
} | null;
|
|
157
|
-
id: string;
|
|
158
|
-
name: string;
|
|
159
|
-
size: number | null;
|
|
160
|
-
uploadedAt: Date | null;
|
|
161
197
|
}[];
|
|
162
198
|
childFolders: {
|
|
199
|
+
name: string;
|
|
163
200
|
id: string;
|
|
164
201
|
files: {
|
|
165
202
|
id: string;
|
|
@@ -168,19 +205,24 @@ export declare function findRootFolderWithContents(classId: string): import(".pr
|
|
|
168
205
|
files: number;
|
|
169
206
|
childFolders: number;
|
|
170
207
|
};
|
|
171
|
-
name: string;
|
|
172
208
|
color: string | null;
|
|
173
209
|
childFolders: {
|
|
174
210
|
id: string;
|
|
175
211
|
}[];
|
|
176
212
|
}[];
|
|
177
213
|
} & {
|
|
178
|
-
id: string;
|
|
179
|
-
classId: string | null;
|
|
180
214
|
name: string;
|
|
215
|
+
id: string;
|
|
181
216
|
color: string | null;
|
|
217
|
+
classId: string | null;
|
|
182
218
|
parentFolderId: string | null;
|
|
183
|
-
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
219
|
+
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
220
|
+
datasources: {
|
|
221
|
+
db: {
|
|
222
|
+
url: string;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
}>;
|
|
184
226
|
/** @returns Folder with file/folder counts. */
|
|
185
227
|
export declare function findFolderWithCount(folderId: string, classId: string): import(".prisma/client").Prisma.Prisma__FolderClient<({
|
|
186
228
|
_count: {
|
|
@@ -188,12 +230,18 @@ export declare function findFolderWithCount(folderId: string, classId: string):
|
|
|
188
230
|
childFolders: number;
|
|
189
231
|
};
|
|
190
232
|
} & {
|
|
191
|
-
id: string;
|
|
192
|
-
classId: string | null;
|
|
193
233
|
name: string;
|
|
234
|
+
id: string;
|
|
194
235
|
color: string | null;
|
|
236
|
+
classId: string | null;
|
|
195
237
|
parentFolderId: string | null;
|
|
196
|
-
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
238
|
+
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
239
|
+
datasources: {
|
|
240
|
+
db: {
|
|
241
|
+
url: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
}>;
|
|
197
245
|
/** @returns Folder with file/folder counts. */
|
|
198
246
|
export declare function findFolderByIdWithCount(folderId: string): import(".prisma/client").Prisma.Prisma__FolderClient<({
|
|
199
247
|
_count: {
|
|
@@ -201,49 +249,67 @@ export declare function findFolderByIdWithCount(folderId: string): import(".pris
|
|
|
201
249
|
childFolders: number;
|
|
202
250
|
};
|
|
203
251
|
} & {
|
|
204
|
-
id: string;
|
|
205
|
-
classId: string | null;
|
|
206
252
|
name: string;
|
|
253
|
+
id: string;
|
|
207
254
|
color: string | null;
|
|
255
|
+
classId: string | null;
|
|
208
256
|
parentFolderId: string | null;
|
|
209
|
-
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
257
|
+
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
258
|
+
datasources: {
|
|
259
|
+
db: {
|
|
260
|
+
url: string;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
}>;
|
|
210
264
|
/** Delete a folder. */
|
|
211
265
|
export declare function deleteFolderById(folderId: string): import(".prisma/client").Prisma.Prisma__FolderClient<{
|
|
212
|
-
id: string;
|
|
213
|
-
classId: string | null;
|
|
214
266
|
name: string;
|
|
267
|
+
id: string;
|
|
215
268
|
color: string | null;
|
|
269
|
+
classId: string | null;
|
|
216
270
|
parentFolderId: string | null;
|
|
217
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
271
|
+
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
272
|
+
datasources: {
|
|
273
|
+
db: {
|
|
274
|
+
url: string;
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
}>;
|
|
218
278
|
/** Move folder to new parent. */
|
|
219
279
|
export declare function updateFolderParent(folderId: string, parentFolderId: string): import(".prisma/client").Prisma.Prisma__FolderClient<{
|
|
220
280
|
files: {
|
|
221
281
|
type: string;
|
|
282
|
+
name: string;
|
|
283
|
+
id: string;
|
|
284
|
+
size: number | null;
|
|
285
|
+
uploadedAt: Date | null;
|
|
222
286
|
user: {
|
|
223
287
|
id: string;
|
|
224
288
|
username: string;
|
|
225
289
|
} | null;
|
|
226
|
-
id: string;
|
|
227
|
-
name: string;
|
|
228
|
-
size: number | null;
|
|
229
|
-
uploadedAt: Date | null;
|
|
230
290
|
}[];
|
|
231
291
|
childFolders: {
|
|
292
|
+
name: string;
|
|
232
293
|
id: string;
|
|
233
294
|
_count: {
|
|
234
295
|
files: number;
|
|
235
296
|
childFolders: number;
|
|
236
297
|
};
|
|
237
|
-
name: string;
|
|
238
298
|
color: string | null;
|
|
239
299
|
}[];
|
|
240
300
|
} & {
|
|
241
|
-
id: string;
|
|
242
|
-
classId: string | null;
|
|
243
301
|
name: string;
|
|
302
|
+
id: string;
|
|
244
303
|
color: string | null;
|
|
304
|
+
classId: string | null;
|
|
245
305
|
parentFolderId: string | null;
|
|
246
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
306
|
+
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
307
|
+
datasources: {
|
|
308
|
+
db: {
|
|
309
|
+
url: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
}>;
|
|
247
313
|
/** Update folder name and color. */
|
|
248
314
|
export declare function updateFolder(folderId: string, data: {
|
|
249
315
|
name?: string;
|
|
@@ -251,45 +317,63 @@ export declare function updateFolder(folderId: string, data: {
|
|
|
251
317
|
}): import(".prisma/client").Prisma.Prisma__FolderClient<{
|
|
252
318
|
files: {
|
|
253
319
|
type: string;
|
|
320
|
+
name: string;
|
|
321
|
+
id: string;
|
|
322
|
+
size: number | null;
|
|
323
|
+
uploadedAt: Date | null;
|
|
254
324
|
user: {
|
|
255
325
|
id: string;
|
|
256
326
|
username: string;
|
|
257
327
|
} | null;
|
|
258
|
-
id: string;
|
|
259
|
-
name: string;
|
|
260
|
-
size: number | null;
|
|
261
|
-
uploadedAt: Date | null;
|
|
262
328
|
}[];
|
|
263
329
|
childFolders: {
|
|
330
|
+
name: string;
|
|
264
331
|
id: string;
|
|
265
332
|
_count: {
|
|
266
333
|
files: number;
|
|
267
334
|
childFolders: number;
|
|
268
335
|
};
|
|
269
|
-
name: string;
|
|
270
336
|
color: string | null;
|
|
271
337
|
}[];
|
|
272
338
|
} & {
|
|
273
|
-
id: string;
|
|
274
|
-
classId: string | null;
|
|
275
339
|
name: string;
|
|
340
|
+
id: string;
|
|
276
341
|
color: string | null;
|
|
342
|
+
classId: string | null;
|
|
277
343
|
parentFolderId: string | null;
|
|
278
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
344
|
+
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
345
|
+
datasources: {
|
|
346
|
+
db: {
|
|
347
|
+
url: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
}>;
|
|
279
351
|
/** @returns Folder for path traversal. */
|
|
280
352
|
export declare function findFolderByIdForTraversal(id: string): import(".prisma/client").Prisma.Prisma__FolderClient<{
|
|
281
|
-
id: string;
|
|
282
|
-
classId: string | null;
|
|
283
353
|
name: string;
|
|
354
|
+
id: string;
|
|
284
355
|
color: string | null;
|
|
356
|
+
classId: string | null;
|
|
285
357
|
parentFolderId: string | null;
|
|
286
|
-
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
358
|
+
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
359
|
+
datasources: {
|
|
360
|
+
db: {
|
|
361
|
+
url: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
}>;
|
|
287
365
|
/** @returns Folder by ID. */
|
|
288
366
|
export declare function findFolderParents(folderId: string): import(".prisma/client").Prisma.Prisma__FolderClient<{
|
|
289
|
-
id: string;
|
|
290
|
-
classId: string | null;
|
|
291
367
|
name: string;
|
|
368
|
+
id: string;
|
|
292
369
|
color: string | null;
|
|
370
|
+
classId: string | null;
|
|
293
371
|
parentFolderId: string | null;
|
|
294
|
-
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs,
|
|
372
|
+
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
373
|
+
datasources: {
|
|
374
|
+
db: {
|
|
375
|
+
url: string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
}>;
|
|
295
379
|
//# sourceMappingURL=folder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folder.d.ts","sourceRoot":"/","sources":["models/folder.ts"],"names":[],"mappings":"AAqBA,2CAA2C;AAC3C,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"folder.d.ts","sourceRoot":"/","sources":["models/folder.ts"],"names":[],"mappings":"AAqBA,2CAA2C;AAC3C,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;GAOtE;AAED,6BAA6B;AAC7B,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;GAI9C;AAED,kCAAkC;AAClC,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;GAKvD;AAED,wCAAwC;AACxC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;GAOtD;AAED,6CAA6C;AAC7C,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,MAAM;;;;;;GAW3D;AAED,uBAAuB;AACvB,wBAAgB,YAAY,CAAC,IAAI,EAAE;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqBA;AAcD,oDAAoD;AACpD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKtD;AAED,qCAAqC;AACrC,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;MAetD;AAED,sDAAsD;AACtD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkBzD;AAED,+CAA+C;AAC/C,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;GAOpE;AAED,+CAA+C;AAC/C,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;GAOvD;AAED,uBAAuB;AACvB,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;GAIhD;AAED,iCAAiC;AACjC,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAS1E;AAED,oCAAoC;AACpC,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUxC;AAED,0CAA0C;AAC1C,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;GAIpD;AAED,6BAA6B;AAC7B,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;GAIjD"}
|