@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.
Files changed (166) hide show
  1. package/.env.example +6 -0
  2. package/.env.test.example +2 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +36 -50
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/config/cors.d.ts +16 -0
  7. package/dist/lib/config/cors.d.ts.map +1 -0
  8. package/dist/lib/config/cors.js +75 -0
  9. package/dist/lib/config/cors.js.map +1 -0
  10. package/dist/lib/config/env.d.ts +14 -0
  11. package/dist/lib/config/env.d.ts.map +1 -1
  12. package/dist/lib/config/env.js +9 -2
  13. package/dist/lib/config/env.js.map +1 -1
  14. package/dist/lib/prisma.d.ts +14 -2
  15. package/dist/lib/prisma.d.ts.map +1 -1
  16. package/dist/lib/prisma.js +27 -8
  17. package/dist/lib/prisma.js.map +1 -1
  18. package/dist/middleware/security.d.ts.map +1 -1
  19. package/dist/middleware/security.js +3 -3
  20. package/dist/middleware/security.js.map +1 -1
  21. package/dist/models/agenda.d.ts +16 -16
  22. package/dist/models/announcement.d.ts +59 -23
  23. package/dist/models/announcement.d.ts.map +1 -1
  24. package/dist/models/assignment.d.ts +363 -276
  25. package/dist/models/assignment.d.ts.map +1 -1
  26. package/dist/models/attendance.d.ts +63 -21
  27. package/dist/models/attendance.d.ts.map +1 -1
  28. package/dist/models/auth.d.ts +102 -18
  29. package/dist/models/auth.d.ts.map +1 -1
  30. package/dist/models/class.d.ts +112 -64
  31. package/dist/models/class.d.ts.map +1 -1
  32. package/dist/models/comment.d.ts +52 -16
  33. package/dist/models/comment.d.ts.map +1 -1
  34. package/dist/models/conversation.d.ts +46 -16
  35. package/dist/models/conversation.d.ts.map +1 -1
  36. package/dist/models/event.d.ts +107 -53
  37. package/dist/models/event.d.ts.map +1 -1
  38. package/dist/models/file.d.ts +213 -165
  39. package/dist/models/file.d.ts.map +1 -1
  40. package/dist/models/folder.d.ts +161 -77
  41. package/dist/models/folder.d.ts.map +1 -1
  42. package/dist/models/labChat.d.ts +73 -31
  43. package/dist/models/labChat.d.ts.map +1 -1
  44. package/dist/models/marketing.d.ts +25 -7
  45. package/dist/models/marketing.d.ts.map +1 -1
  46. package/dist/models/message.d.ts +31 -13
  47. package/dist/models/message.d.ts.map +1 -1
  48. package/dist/models/newtonChat.d.ts +34 -10
  49. package/dist/models/newtonChat.d.ts.map +1 -1
  50. package/dist/models/notification.d.ts +25 -7
  51. package/dist/models/notification.d.ts.map +1 -1
  52. package/dist/models/section.d.ts +71 -23
  53. package/dist/models/section.d.ts.map +1 -1
  54. package/dist/models/user.d.ts +27 -9
  55. package/dist/models/user.d.ts.map +1 -1
  56. package/dist/models/worksheet.d.ts +237 -108
  57. package/dist/models/worksheet.d.ts.map +1 -1
  58. package/dist/pipelines/aiLabChat.d.ts +30 -6
  59. package/dist/pipelines/aiLabChat.d.ts.map +1 -1
  60. package/dist/pipelines/aiLabChat.js +157 -234
  61. package/dist/pipelines/aiLabChat.js.map +1 -1
  62. package/dist/pipelines/aiLabChatContract.d.ts +413 -0
  63. package/dist/pipelines/aiLabChatContract.d.ts.map +1 -0
  64. package/dist/pipelines/aiLabChatContract.js +74 -0
  65. package/dist/pipelines/aiLabChatContract.js.map +1 -0
  66. package/dist/pipelines/gradeWorksheet.d.ts +8 -8
  67. package/dist/pipelines/gradeWorksheet.js +4 -4
  68. package/dist/pipelines/gradeWorksheet.js.map +1 -1
  69. package/dist/pipelines/labChatPrompt.d.ts +29 -0
  70. package/dist/pipelines/labChatPrompt.d.ts.map +1 -0
  71. package/dist/pipelines/labChatPrompt.js +146 -0
  72. package/dist/pipelines/labChatPrompt.js.map +1 -0
  73. package/dist/routers/_app.d.ts +1622 -1260
  74. package/dist/routers/_app.d.ts.map +1 -1
  75. package/dist/routers/_app.js +4 -2
  76. package/dist/routers/_app.js.map +1 -1
  77. package/dist/routers/agenda.d.ts +16 -16
  78. package/dist/routers/announcement.d.ts +19 -19
  79. package/dist/routers/assignment.d.ts +307 -291
  80. package/dist/routers/assignment.d.ts.map +1 -1
  81. package/dist/routers/assignment.js +3 -2
  82. package/dist/routers/assignment.js.map +1 -1
  83. package/dist/routers/attendance.d.ts +7 -7
  84. package/dist/routers/auth.d.ts +1 -1
  85. package/dist/routers/class.d.ts +77 -71
  86. package/dist/routers/class.d.ts.map +1 -1
  87. package/dist/routers/comment.d.ts +6 -6
  88. package/dist/routers/conversation.d.ts +11 -11
  89. package/dist/routers/event.d.ts +35 -35
  90. package/dist/routers/file.d.ts +12 -12
  91. package/dist/routers/folder.d.ts +54 -54
  92. package/dist/routers/labChat.d.ts +12 -12
  93. package/dist/routers/marketing.d.ts +2 -2
  94. package/dist/routers/message.d.ts +2 -2
  95. package/dist/routers/newtonChat.d.ts +1 -1
  96. package/dist/routers/notifications.d.ts +4 -4
  97. package/dist/routers/section.d.ts +7 -7
  98. package/dist/routers/studentProgress.d.ts +161 -0
  99. package/dist/routers/studentProgress.d.ts.map +1 -0
  100. package/dist/routers/studentProgress.js +43 -0
  101. package/dist/routers/studentProgress.js.map +1 -0
  102. package/dist/routers/user.d.ts +1 -1
  103. package/dist/routers/worksheet.d.ts +58 -58
  104. package/dist/seedDatabase.d.ts +1 -1
  105. package/dist/services/agenda.d.ts +16 -16
  106. package/dist/services/announcement.d.ts +8 -8
  107. package/dist/services/assignment.d.ts +299 -283
  108. package/dist/services/assignment.d.ts.map +1 -1
  109. package/dist/services/assignment.js +24 -5
  110. package/dist/services/assignment.js.map +1 -1
  111. package/dist/services/attendance.d.ts +7 -7
  112. package/dist/services/auth.d.ts +1 -1
  113. package/dist/services/class.d.ts +73 -67
  114. package/dist/services/class.d.ts.map +1 -1
  115. package/dist/services/comment.d.ts +6 -6
  116. package/dist/services/conversation.d.ts +11 -11
  117. package/dist/services/event.d.ts +31 -31
  118. package/dist/services/file.d.ts +12 -12
  119. package/dist/services/folder.d.ts +52 -52
  120. package/dist/services/labChat.d.ts +12 -12
  121. package/dist/services/labChat.d.ts.map +1 -1
  122. package/dist/services/labChat.js +31 -15
  123. package/dist/services/labChat.js.map +1 -1
  124. package/dist/services/marketing.d.ts +2 -2
  125. package/dist/services/message.d.ts.map +1 -1
  126. package/dist/services/message.js +90 -48
  127. package/dist/services/message.js.map +1 -1
  128. package/dist/services/notification.d.ts +4 -4
  129. package/dist/services/section.d.ts +6 -6
  130. package/dist/services/studentProgress.d.ts +120 -0
  131. package/dist/services/studentProgress.d.ts.map +1 -0
  132. package/dist/services/studentProgress.js +481 -0
  133. package/dist/services/studentProgress.js.map +1 -0
  134. package/dist/services/worksheet.d.ts +49 -49
  135. package/dist/utils/inference.d.ts +0 -11
  136. package/dist/utils/inference.d.ts.map +1 -1
  137. package/dist/utils/inference.js +2 -50
  138. package/dist/utils/inference.js.map +1 -1
  139. package/package.json +2 -2
  140. package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +14 -0
  141. package/prisma/schema.prisma +14 -0
  142. package/sentry.properties +3 -0
  143. package/src/index.ts +39 -51
  144. package/src/lib/config/cors.ts +96 -0
  145. package/src/lib/config/env.ts +12 -1
  146. package/src/lib/prisma.ts +25 -6
  147. package/src/middleware/security.ts +1 -1
  148. package/src/pipelines/aiLabChat.ts +206 -246
  149. package/src/pipelines/aiLabChatContract.ts +75 -0
  150. package/src/pipelines/gradeWorksheet.ts +2 -2
  151. package/src/pipelines/labChatPrompt.ts +196 -0
  152. package/src/routers/_app.ts +4 -2
  153. package/src/routers/assignment.ts +1 -0
  154. package/src/routers/studentProgress.ts +71 -0
  155. package/src/services/assignment.ts +30 -2
  156. package/src/services/labChat.ts +31 -22
  157. package/src/services/message.ts +97 -48
  158. package/src/services/studentProgress.ts +691 -0
  159. package/src/utils/inference.ts +0 -61
  160. package/tests/lib/aiLabChatContract.test.ts +32 -0
  161. package/tests/lib/cors.test.ts +103 -0
  162. package/tests/pipelines/aiLabChat.test.ts +75 -0
  163. package/tests/routers/studentProgress.test.ts +254 -0
  164. package/tests/utils/aiLabChatPrompt.test.ts +126 -0
  165. package/tests/utils/studentProgress.test.ts +361 -0
  166. package/vitest.unit.config.ts +8 -1
@@ -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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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, import(".prisma/client").Prisma.PrismaClientOptions>;
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;;;;;;;;8HAOtE;AAED,6BAA6B;AAC7B,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM;;;;;;8HAI9C;AAED,kCAAkC;AAClC,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;+HAKvD;AAED,wCAAwC;AACxC,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM;;;;;;8HAOtD;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,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