@studious-lms/server 1.13.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/.dockerignore +28 -0
- package/.env.example +5 -0
- package/.github/workflows/deploy.yml +123 -0
- package/Dockerfile +54 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/instrument.js +3 -3
- package/dist/instrument.js.map +1 -1
- package/dist/lib/config/cors.d.ts.map +1 -1
- package/dist/lib/config/cors.js +31 -11
- package/dist/lib/config/cors.js.map +1 -1
- package/dist/lib/config/env.d.ts +17 -0
- package/dist/lib/config/env.d.ts.map +1 -1
- package/dist/lib/config/env.js +8 -2
- package/dist/lib/config/env.js.map +1 -1
- package/dist/lib/googleCloudStorage.d.ts +10 -0
- package/dist/lib/googleCloudStorage.d.ts.map +1 -1
- package/dist/lib/googleCloudStorage.js +22 -2
- package/dist/lib/googleCloudStorage.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/lib/prisma.d.ts +104 -5
- package/dist/lib/prisma.d.ts.map +1 -1
- package/dist/lib/prisma.js +33 -2
- package/dist/lib/prisma.js.map +1 -1
- package/dist/models/agenda.d.ts +20 -20
- package/dist/models/announcement.d.ts +211 -101
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +560 -362
- package/dist/models/assignment.d.ts.map +1 -1
- package/dist/models/attendance.d.ts +197 -71
- package/dist/models/attendance.d.ts.map +1 -1
- package/dist/models/auth.d.ts +356 -114
- 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 +327 -201
- package/dist/models/class.d.ts.map +1 -1
- package/dist/models/class.js +2 -2
- package/dist/models/class.js.map +1 -1
- package/dist/models/cloudStorage.d.ts +146 -56
- package/dist/models/cloudStorage.d.ts.map +1 -1
- package/dist/models/comment.d.ts +262 -110
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/conversation.d.ts +206 -80
- package/dist/models/conversation.d.ts.map +1 -1
- package/dist/models/department.d.ts +196 -70
- package/dist/models/department.d.ts.map +1 -1
- package/dist/models/event.d.ts +305 -141
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +422 -272
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/folder.d.ts +433 -181
- package/dist/models/folder.d.ts.map +1 -1
- package/dist/models/labChat.d.ts +205 -79
- package/dist/models/labChat.d.ts.map +1 -1
- package/dist/models/marketing.d.ts +79 -38
- 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 +97 -43
- package/dist/models/message.d.ts.map +1 -1
- package/dist/models/newtonChat.d.ts +84 -30
- package/dist/models/newtonChat.d.ts.map +1 -1
- package/dist/models/notification.d.ts +57 -21
- package/dist/models/notification.d.ts.map +1 -1
- package/dist/models/school.d.ts +349 -133
- package/dist/models/school.d.ts.map +1 -1
- package/dist/models/section.d.ts +216 -72
- package/dist/models/section.d.ts.map +1 -1
- package/dist/models/tag.d.ts +156 -48
- package/dist/models/tag.d.ts.map +1 -1
- package/dist/models/user.d.ts +82 -28
- package/dist/models/user.d.ts.map +1 -1
- package/dist/models/worksheet.d.ts +1032 -423
- package/dist/models/worksheet.d.ts.map +1 -1
- package/dist/models/worksheet.js +8 -2
- package/dist/models/worksheet.js.map +1 -1
- package/dist/pipelines/aiLabChat.d.ts +7 -9
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +194 -125
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +233 -389
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
- package/dist/pipelines/aiLabChatContract.js +54 -70
- package/dist/pipelines/aiLabChatContract.js.map +1 -1
- package/dist/pipelines/aiNewtonChat.d.ts.map +1 -1
- package/dist/pipelines/aiNewtonChat.js +41 -41
- package/dist/pipelines/aiNewtonChat.js.map +1 -1
- package/dist/pipelines/gradeWorksheet.d.ts +8 -8
- package/dist/pipelines/labChatPrompt.d.ts +18 -11
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +93 -75
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
- package/dist/routers/_app.d.ts +2601 -2151
- 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/admin.d.ts +13 -13
- package/dist/routers/agenda.d.ts +18 -18
- package/dist/routers/announcement.d.ts +60 -60
- package/dist/routers/assignment.d.ts +393 -383
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/attendance.d.ts +10 -10
- package/dist/routers/auth.d.ts +4 -2
- 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 +157 -153
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +18 -18
- package/dist/routers/conversation.d.ts +11 -11
- package/dist/routers/department.d.ts +34 -34
- package/dist/routers/discussion.d.ts +68 -56
- package/dist/routers/discussion.d.ts.map +1 -1
- package/dist/routers/discussion.js +6 -2
- package/dist/routers/discussion.js.map +1 -1
- package/dist/routers/embedding.d.ts +73 -0
- package/dist/routers/embedding.d.ts.map +1 -0
- package/dist/routers/embedding.js +151 -0
- package/dist/routers/embedding.js.map +1 -0
- package/dist/routers/event.d.ts +57 -55
- package/dist/routers/event.d.ts.map +1 -1
- package/dist/routers/file.d.ts +14 -14
- package/dist/routers/folder.d.ts +38 -38
- package/dist/routers/labChat.d.ts +16 -16
- package/dist/routers/marketing.d.ts +1 -14
- package/dist/routers/marketing.d.ts.map +1 -1
- package/dist/routers/message.d.ts +13 -13
- package/dist/routers/newtonChat.d.ts +4 -4
- package/dist/routers/notifications.d.ts +5 -5
- package/dist/routers/permissions.d.ts +14 -14
- package/dist/routers/school.d.ts +59 -55
- package/dist/routers/school.d.ts.map +1 -1
- package/dist/routers/search.d.ts +22 -1
- package/dist/routers/search.d.ts.map +1 -1
- package/dist/routers/search.js +9 -3
- package/dist/routers/search.js.map +1 -1
- package/dist/routers/section.d.ts +4 -4
- package/dist/routers/studentProgress.d.ts +1 -1
- package/dist/routers/tag.d.ts +7 -7
- package/dist/routers/user.d.ts +99 -10
- 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 +93 -55
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/routers/worksheet.js +26 -2
- package/dist/routers/worksheet.js.map +1 -1
- package/dist/routes/aiStream.d.ts +2 -0
- package/dist/routes/aiStream.d.ts.map +1 -0
- package/dist/routes/aiStream.js +726 -0
- package/dist/routes/aiStream.js.map +1 -0
- package/dist/seedDatabase.d.ts +3 -1
- package/dist/seedDatabase.d.ts.map +1 -1
- package/dist/seedDatabase.js +6 -6
- package/dist/seedDatabase.js.map +1 -1
- package/dist/services/adminInstitution.d.ts +8 -8
- package/dist/services/adminRunJob.d.ts +4 -4
- package/dist/services/agenda.d.ts +18 -18
- package/dist/services/aiChatStream.d.ts +88 -0
- package/dist/services/aiChatStream.d.ts.map +1 -0
- package/dist/services/aiChatStream.js +254 -0
- package/dist/services/aiChatStream.js.map +1 -0
- package/dist/services/aiModifierTools.d.ts +16 -0
- package/dist/services/aiModifierTools.d.ts.map +1 -0
- package/dist/services/aiModifierTools.js +274 -0
- package/dist/services/aiModifierTools.js.map +1 -0
- package/dist/services/aiProposalTools.d.ts +32 -0
- package/dist/services/aiProposalTools.d.ts.map +1 -0
- package/dist/services/aiProposalTools.js +207 -0
- package/dist/services/aiProposalTools.js.map +1 -0
- package/dist/services/aiStream.d.ts +22 -0
- package/dist/services/aiStream.d.ts.map +1 -0
- package/dist/services/aiStream.js +142 -0
- package/dist/services/aiStream.js.map +1 -0
- package/dist/services/aiTools.d.ts +16 -0
- package/dist/services/aiTools.d.ts.map +1 -0
- package/dist/services/aiTools.js +271 -0
- package/dist/services/aiTools.js.map +1 -0
- package/dist/services/announcement.d.ts +42 -42
- package/dist/services/announcement.d.ts.map +1 -1
- package/dist/services/announcement.js +7 -2
- package/dist/services/announcement.js.map +1 -1
- package/dist/services/assignment.d.ts +355 -345
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +30 -9
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/attendance.d.ts +10 -10
- package/dist/services/auth.d.ts +4 -2
- 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 +146 -142
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +24 -4
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +18 -18
- package/dist/services/conversation.d.ts +11 -11
- package/dist/services/department.d.ts +33 -33
- package/dist/services/discussion.d.ts +58 -58
- package/dist/services/discussion.d.ts.map +1 -1
- package/dist/services/discussion.js +15 -8
- package/dist/services/discussion.js.map +1 -1
- package/dist/services/discussionSummary.d.ts +21 -0
- package/dist/services/discussionSummary.d.ts.map +1 -0
- package/dist/services/discussionSummary.js +179 -0
- package/dist/services/discussionSummary.js.map +1 -0
- package/dist/services/embedding.d.ts +85 -0
- package/dist/services/embedding.d.ts.map +1 -0
- package/dist/services/embedding.js +372 -0
- package/dist/services/embedding.js.map +1 -0
- package/dist/services/event.d.ts +55 -53
- package/dist/services/event.d.ts.map +1 -1
- package/dist/services/file.d.ts +28 -28
- package/dist/services/folder.d.ts +36 -36
- 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 +16 -16
- package/dist/services/marketing.d.ts +2 -15
- 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/message.d.ts +11 -11
- package/dist/services/message.d.ts.map +1 -1
- package/dist/services/message.js +2 -2
- package/dist/services/message.js.map +1 -1
- package/dist/services/newtonChat.d.ts +4 -4
- package/dist/services/notification.d.ts +5 -5
- package/dist/services/notification.d.ts.map +1 -1
- 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/permissions.d.ts +14 -14
- package/dist/services/school.d.ts +54 -50
- package/dist/services/school.d.ts.map +1 -1
- package/dist/services/search.d.ts +13 -1
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +145 -2
- package/dist/services/search.js.map +1 -1
- package/dist/services/section.d.ts +3 -3
- package/dist/services/tag.d.ts +4 -4
- package/dist/services/user.d.ts +4 -4
- package/dist/services/user.d.ts.map +1 -1
- package/dist/services/user.js +10 -15
- package/dist/services/user.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 +86 -57
- package/dist/services/worksheet.d.ts.map +1 -1
- package/dist/services/worksheet.js +57 -5
- 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/utils/streamBroadcast.d.ts +11 -0
- package/dist/utils/streamBroadcast.d.ts.map +1 -0
- package/dist/utils/streamBroadcast.js +32 -0
- package/dist/utils/streamBroadcast.js.map +1 -0
- package/dist/workers/connection.d.ts +15 -0
- package/dist/workers/connection.d.ts.map +1 -1
- package/dist/workers/connection.js +20 -2
- package/dist/workers/connection.js.map +1 -1
- package/dist/workers/index.js +4 -2
- package/dist/workers/index.js.map +1 -1
- package/dist/workers/processors/createRunJobWorker.d.ts.map +1 -1
- package/dist/workers/processors/createRunJobWorker.js +31 -8
- package/dist/workers/processors/createRunJobWorker.js.map +1 -1
- package/dist/workers/processors/embedContent.d.ts +8 -0
- package/dist/workers/processors/embedContent.d.ts.map +1 -0
- package/dist/workers/processors/embedContent.js +67 -0
- package/dist/workers/processors/embedContent.js.map +1 -0
- package/dist/workers/queues.d.ts +6 -0
- package/dist/workers/queues.d.ts.map +1 -1
- package/dist/workers/queues.js +5 -3
- package/dist/workers/queues.js.map +1 -1
- package/package.json +5 -1
- package/prisma/migrations/20260609215135_init/migration.sql +1412 -0
- package/prisma/migrations/20260610130000_add_worksheet_tags/migration.sql +13 -0
- 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 +44 -7
- package/src/index.ts +4 -0
- package/src/instrument.ts +1 -1
- package/src/lib/config/cors.ts +32 -9
- package/src/lib/config/env.ts +6 -0
- package/src/lib/googleCloudStorage.ts +21 -0
- package/src/lib/inferDocumentFormat.ts +58 -0
- package/src/lib/legal.ts +2 -0
- package/src/lib/prisma.ts +40 -1
- package/src/models/auth.ts +4 -0
- package/src/models/class.ts +3 -2
- package/src/models/marketing.ts +10 -2
- package/src/models/worksheet.ts +5 -2
- package/src/pipelines/aiLabChat.ts +245 -146
- package/src/pipelines/aiLabChatContract.ts +59 -69
- package/src/pipelines/aiNewtonChat.ts +46 -43
- package/src/pipelines/labChatPrompt.ts +115 -90
- package/src/routers/_app.ts +2 -0
- package/src/routers/auth.ts +13 -0
- package/src/routers/discussion.ts +7 -0
- package/src/routers/embedding.ts +164 -0
- package/src/routers/search.ts +10 -1
- package/src/routers/user.ts +26 -0
- package/src/routers/worksheet.ts +27 -0
- package/src/routes/aiStream.ts +827 -0
- package/src/seedDatabase.ts +4 -4
- package/src/services/aiChatStream.ts +341 -0
- package/src/services/aiModifierTools.ts +341 -0
- package/src/services/aiProposalTools.ts +274 -0
- package/src/services/aiStream.ts +175 -0
- package/src/services/aiTools.ts +290 -0
- package/src/services/announcement.ts +7 -0
- package/src/services/assignment.ts +31 -7
- package/src/services/auth.ts +14 -2
- package/src/services/class.ts +27 -2
- package/src/services/discussion.ts +22 -8
- package/src/services/discussionSummary.ts +226 -0
- package/src/services/embedding.ts +446 -0
- package/src/services/folder.ts +31 -0
- package/src/services/marketing.ts +3 -3
- package/src/services/message.ts +2 -2
- package/src/services/openaiDocumentGen.ts +319 -0
- package/src/services/search.ts +163 -1
- package/src/services/user.ts +9 -17
- package/src/services/userPrivacy.ts +196 -0
- package/src/services/worksheet.ts +77 -3
- package/src/utils/email.ts +5 -1
- package/src/utils/streamBroadcast.ts +48 -0
- package/src/workers/connection.ts +19 -0
- package/src/workers/index.ts +2 -0
- package/src/workers/processors/createRunJobWorker.ts +32 -6
- package/src/workers/processors/embedContent.ts +86 -0
- package/src/workers/queues.ts +5 -1
- 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/pipelines/aiLabChatContract.test.ts +38 -21
- package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
- package/tests/unit/services/aiChatStream.test.ts +92 -0
- package/tests/unit/services/openaiDocumentGen.test.ts +65 -0
- package/prisma/migrations/20250807062924_init/migration.sql +0 -436
- package/prisma/migrations/20250919063704_init2/migration.sql +0 -24
- package/prisma/migrations/20250920143543_add_profile_fields/migration.sql +0 -15
- package/prisma/migrations/20250922165147_add_chat_models/migration.sql +0 -68
- package/prisma/migrations/20250922165314_add_chat_roles/migration.sql +0 -5
- package/prisma/migrations/20250922171242_refactor_notification_system/migration.sql +0 -20
- package/prisma/migrations/20250922172208_add_mentions_system/migration.sql +0 -21
- package/prisma/migrations/20250925072732_add_lab_chat_system/migration.sql +0 -25
- package/prisma/migrations/20251020151505_add_upload_tracking_fields/migration.sql +0 -57
- package/prisma/migrations/20251109122857_annuoncements_comments/migration.sql +0 -30
- package/prisma/migrations/20251109135555_reactions_announcements_comments/migration.sql +0 -35
- package/prisma/migrations/20260410124000_add_submission_recommendation_state/migration.sql +0 -14
- package/prisma/migrations/20260415103500_add_session_type/migration.sql +0 -33
- package/prisma/migrations/20260415133000_add_ai_usage_logs/migration.sql +0 -19
- package/prisma/migrations/20260417083000_add_conversation_member_hidden_at/migration.sql +0 -2
- package/prisma/migrations/20260502230500_assignment_submission_comments/migration.sql +0 -60
- package/prisma/migrations/20260504071500_school_memberships/migration.sql +0 -81
- package/prisma/migrations/20260506162500_consolidate_run_job_and_unify_job_status/migration.sql +0 -166
- package/prisma/migrations/20260509220000_institution_overhaul/migration.sql +0 -184
- package/prisma/migrations/20260510170000_add_folder_permissions/migration.sql +0 -93
- package/prisma/migrations/20260510183000_add_discussions/migration.sql +0 -151
- /package/.github/workflows/{npm.yml → npm-publish.yml} +0 -0
package/dist/models/folder.d.ts
CHANGED
|
@@ -1,49 +1,109 @@
|
|
|
1
1
|
/** @returns Class if user is a teacher or school admin. */
|
|
2
|
-
export declare function findClassWithTeacher(classId: string, teacherId: string): import(".prisma/client").Prisma.
|
|
3
|
-
|
|
2
|
+
export declare function findClassWithTeacher(classId: string, teacherId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
3
|
+
result: {
|
|
4
|
+
userProfile: {
|
|
5
|
+
profilePicture: () => {
|
|
6
|
+
needs: {
|
|
7
|
+
profilePicture: true;
|
|
8
|
+
};
|
|
9
|
+
compute(profile: {
|
|
10
|
+
profilePicture: string | null;
|
|
11
|
+
}): string | null;
|
|
12
|
+
};
|
|
13
|
+
profilePictureThumbnail: () => {
|
|
14
|
+
needs: {
|
|
15
|
+
profilePictureThumbnail: true;
|
|
16
|
+
};
|
|
17
|
+
compute(profile: {
|
|
18
|
+
profilePictureThumbnail: string | null;
|
|
19
|
+
}): string | null;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
model: {};
|
|
24
|
+
query: {};
|
|
25
|
+
client: {};
|
|
26
|
+
}, {}>, "Class", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
27
|
+
section: string;
|
|
4
28
|
id: string;
|
|
29
|
+
name: string;
|
|
5
30
|
schoolId: string | null;
|
|
6
|
-
subject: string;
|
|
7
31
|
color: string | null;
|
|
8
|
-
|
|
32
|
+
subject: string;
|
|
9
33
|
syllabus: string | null;
|
|
10
34
|
departmentId: string | null;
|
|
11
35
|
discussionsEnabled: boolean;
|
|
12
36
|
studentsCanCreateDiscussions: boolean;
|
|
13
37
|
studentsCanReply: boolean;
|
|
14
|
-
} | null
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
38
|
+
} | null>;
|
|
39
|
+
/** @returns Folder by ID. */
|
|
40
|
+
export declare function findFolderById(folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
41
|
+
result: {
|
|
42
|
+
userProfile: {
|
|
43
|
+
profilePicture: () => {
|
|
44
|
+
needs: {
|
|
45
|
+
profilePicture: true;
|
|
46
|
+
};
|
|
47
|
+
compute(profile: {
|
|
48
|
+
profilePicture: string | null;
|
|
49
|
+
}): string | null;
|
|
50
|
+
};
|
|
51
|
+
profilePictureThumbnail: () => {
|
|
52
|
+
needs: {
|
|
53
|
+
profilePictureThumbnail: true;
|
|
54
|
+
};
|
|
55
|
+
compute(profile: {
|
|
56
|
+
profilePictureThumbnail: string | null;
|
|
57
|
+
}): string | null;
|
|
58
|
+
};
|
|
18
59
|
};
|
|
19
60
|
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
61
|
+
model: {};
|
|
62
|
+
query: {};
|
|
63
|
+
client: {};
|
|
64
|
+
}, {}>, "Folder", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
24
65
|
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
68
|
+
parentFolderId: string | null;
|
|
25
69
|
color: string | null;
|
|
26
70
|
classId: string | null;
|
|
27
71
|
schoolStorageId: string | null;
|
|
28
72
|
personalOwnerId: string | null;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
73
|
+
} | null>;
|
|
74
|
+
/** @returns Folder with class. */
|
|
75
|
+
export declare function findFolderByIdWithClass(folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
76
|
+
result: {
|
|
77
|
+
userProfile: {
|
|
78
|
+
profilePicture: () => {
|
|
79
|
+
needs: {
|
|
80
|
+
profilePicture: true;
|
|
81
|
+
};
|
|
82
|
+
compute(profile: {
|
|
83
|
+
profilePicture: string | null;
|
|
84
|
+
}): string | null;
|
|
85
|
+
};
|
|
86
|
+
profilePictureThumbnail: () => {
|
|
87
|
+
needs: {
|
|
88
|
+
profilePictureThumbnail: true;
|
|
89
|
+
};
|
|
90
|
+
compute(profile: {
|
|
91
|
+
profilePictureThumbnail: string | null;
|
|
92
|
+
}): string | null;
|
|
93
|
+
};
|
|
35
94
|
};
|
|
36
95
|
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
96
|
+
model: {};
|
|
97
|
+
query: {};
|
|
98
|
+
client: {};
|
|
99
|
+
}, {}>, "Folder", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
40
100
|
class: {
|
|
41
|
-
|
|
101
|
+
section: string;
|
|
42
102
|
id: string;
|
|
103
|
+
name: string;
|
|
43
104
|
schoolId: string | null;
|
|
44
|
-
subject: string;
|
|
45
105
|
color: string | null;
|
|
46
|
-
|
|
106
|
+
subject: string;
|
|
47
107
|
syllabus: string | null;
|
|
48
108
|
departmentId: string | null;
|
|
49
109
|
discussionsEnabled: boolean;
|
|
@@ -51,48 +111,60 @@ export declare function findFolderByIdWithClass(folderId: string): import(".pris
|
|
|
51
111
|
studentsCanReply: boolean;
|
|
52
112
|
} | null;
|
|
53
113
|
} & {
|
|
54
|
-
name: string;
|
|
55
114
|
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
117
|
+
parentFolderId: string | null;
|
|
56
118
|
color: string | null;
|
|
57
119
|
classId: string | null;
|
|
58
120
|
schoolStorageId: string | null;
|
|
59
121
|
personalOwnerId: string | null;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
122
|
+
}) | null>;
|
|
123
|
+
/** @returns Root folder for a class. */
|
|
124
|
+
export declare function findRootFolderByClassId(classId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
125
|
+
result: {
|
|
126
|
+
userProfile: {
|
|
127
|
+
profilePicture: () => {
|
|
128
|
+
needs: {
|
|
129
|
+
profilePicture: true;
|
|
130
|
+
};
|
|
131
|
+
compute(profile: {
|
|
132
|
+
profilePicture: string | null;
|
|
133
|
+
}): string | null;
|
|
134
|
+
};
|
|
135
|
+
profilePictureThumbnail: () => {
|
|
136
|
+
needs: {
|
|
137
|
+
profilePictureThumbnail: true;
|
|
138
|
+
};
|
|
139
|
+
compute(profile: {
|
|
140
|
+
profilePictureThumbnail: string | null;
|
|
141
|
+
}): string | null;
|
|
142
|
+
};
|
|
66
143
|
};
|
|
67
144
|
};
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
145
|
+
model: {};
|
|
146
|
+
query: {};
|
|
147
|
+
client: {};
|
|
148
|
+
}, {}>, "Folder", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
72
149
|
id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
152
|
+
parentFolderId: string | null;
|
|
73
153
|
color: string | null;
|
|
74
154
|
classId: string | null;
|
|
75
155
|
schoolStorageId: string | null;
|
|
76
156
|
personalOwnerId: string | null;
|
|
77
|
-
|
|
78
|
-
parentFolderId: string | null;
|
|
79
|
-
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
80
|
-
datasources: {
|
|
81
|
-
db: {
|
|
82
|
-
url: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
}>;
|
|
157
|
+
} | null>;
|
|
86
158
|
/** Get or create root folder for a class. */
|
|
87
159
|
export declare function findOrCreateRootFolder(classId: string): Promise<{
|
|
88
|
-
name: string;
|
|
89
160
|
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
163
|
+
parentFolderId: string | null;
|
|
90
164
|
color: string | null;
|
|
91
165
|
classId: string | null;
|
|
92
166
|
schoolStorageId: string | null;
|
|
93
167
|
personalOwnerId: string | null;
|
|
94
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
95
|
-
parentFolderId: string | null;
|
|
96
168
|
}>;
|
|
97
169
|
/** Create a folder. */
|
|
98
170
|
export declare function createFolder(data: {
|
|
@@ -100,333 +172,513 @@ export declare function createFolder(data: {
|
|
|
100
172
|
parentFolderId?: string | null;
|
|
101
173
|
classId?: string;
|
|
102
174
|
color?: string;
|
|
103
|
-
}): import(".prisma/client").Prisma.
|
|
175
|
+
}): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
176
|
+
result: {
|
|
177
|
+
userProfile: {
|
|
178
|
+
profilePicture: () => {
|
|
179
|
+
needs: {
|
|
180
|
+
profilePicture: true;
|
|
181
|
+
};
|
|
182
|
+
compute(profile: {
|
|
183
|
+
profilePicture: string | null;
|
|
184
|
+
}): string | null;
|
|
185
|
+
};
|
|
186
|
+
profilePictureThumbnail: () => {
|
|
187
|
+
needs: {
|
|
188
|
+
profilePictureThumbnail: true;
|
|
189
|
+
};
|
|
190
|
+
compute(profile: {
|
|
191
|
+
profilePictureThumbnail: string | null;
|
|
192
|
+
}): string | null;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
model: {};
|
|
197
|
+
query: {};
|
|
198
|
+
client: {};
|
|
199
|
+
}, {}>, "Folder", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
104
200
|
files: {
|
|
105
201
|
type: string;
|
|
106
|
-
name: string;
|
|
107
|
-
id: string;
|
|
108
202
|
user: {
|
|
109
203
|
id: string;
|
|
110
204
|
username: string;
|
|
111
205
|
} | null;
|
|
206
|
+
id: string;
|
|
207
|
+
name: string;
|
|
112
208
|
size: number | null;
|
|
113
209
|
uploadedAt: Date | null;
|
|
114
210
|
}[];
|
|
115
211
|
childFolders: {
|
|
116
|
-
name: string;
|
|
117
212
|
id: string;
|
|
118
|
-
|
|
213
|
+
name: string;
|
|
119
214
|
_count: {
|
|
120
215
|
files: number;
|
|
121
216
|
childFolders: number;
|
|
122
217
|
};
|
|
218
|
+
color: string | null;
|
|
123
219
|
}[];
|
|
124
220
|
} & {
|
|
125
|
-
name: string;
|
|
126
221
|
id: string;
|
|
222
|
+
name: string;
|
|
223
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
224
|
+
parentFolderId: string | null;
|
|
127
225
|
color: string | null;
|
|
128
226
|
classId: string | null;
|
|
129
227
|
schoolStorageId: string | null;
|
|
130
228
|
personalOwnerId: string | null;
|
|
131
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
132
|
-
parentFolderId: string | null;
|
|
133
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
134
|
-
datasources: {
|
|
135
|
-
db: {
|
|
136
|
-
url: string;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
229
|
}>;
|
|
140
230
|
/** @returns Folder with files and child folders. */
|
|
141
|
-
export declare function findFolderWithContents(folderId: string): import(".prisma/client").Prisma.
|
|
231
|
+
export declare function findFolderWithContents(folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
232
|
+
result: {
|
|
233
|
+
userProfile: {
|
|
234
|
+
profilePicture: () => {
|
|
235
|
+
needs: {
|
|
236
|
+
profilePicture: true;
|
|
237
|
+
};
|
|
238
|
+
compute(profile: {
|
|
239
|
+
profilePicture: string | null;
|
|
240
|
+
}): string | null;
|
|
241
|
+
};
|
|
242
|
+
profilePictureThumbnail: () => {
|
|
243
|
+
needs: {
|
|
244
|
+
profilePictureThumbnail: true;
|
|
245
|
+
};
|
|
246
|
+
compute(profile: {
|
|
247
|
+
profilePictureThumbnail: string | null;
|
|
248
|
+
}): string | null;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
model: {};
|
|
253
|
+
query: {};
|
|
254
|
+
client: {};
|
|
255
|
+
}, {}>, "Folder", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
142
256
|
files: {
|
|
143
257
|
type: string;
|
|
144
|
-
name: string;
|
|
145
|
-
id: string;
|
|
146
258
|
user: {
|
|
147
259
|
id: string;
|
|
148
260
|
username: string;
|
|
149
261
|
} | null;
|
|
262
|
+
id: string;
|
|
263
|
+
name: string;
|
|
150
264
|
size: number | null;
|
|
151
265
|
uploadedAt: Date | null;
|
|
152
266
|
}[];
|
|
153
267
|
childFolders: {
|
|
154
|
-
name: string;
|
|
155
268
|
id: string;
|
|
156
|
-
|
|
269
|
+
name: string;
|
|
157
270
|
_count: {
|
|
158
271
|
files: number;
|
|
159
272
|
childFolders: number;
|
|
160
273
|
};
|
|
274
|
+
color: string | null;
|
|
161
275
|
}[];
|
|
162
276
|
parentFolder: {
|
|
163
|
-
name: string;
|
|
164
277
|
id: string;
|
|
278
|
+
name: string;
|
|
165
279
|
} | null;
|
|
166
280
|
} & {
|
|
167
|
-
name: string;
|
|
168
281
|
id: string;
|
|
282
|
+
name: string;
|
|
283
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
284
|
+
parentFolderId: string | null;
|
|
169
285
|
color: string | null;
|
|
170
286
|
classId: string | null;
|
|
171
287
|
schoolStorageId: string | null;
|
|
172
288
|
personalOwnerId: string | null;
|
|
173
|
-
|
|
174
|
-
parentFolderId: string | null;
|
|
175
|
-
}) | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
176
|
-
datasources: {
|
|
177
|
-
db: {
|
|
178
|
-
url: string;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
}>;
|
|
289
|
+
}) | null>;
|
|
182
290
|
/** @returns Direct child folders. */
|
|
183
|
-
export declare function findChildFolders(parentFolderId: string): import("
|
|
291
|
+
export declare function findChildFolders(parentFolderId: string): import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
184
292
|
files: {
|
|
185
293
|
type: string;
|
|
186
|
-
name: string;
|
|
187
|
-
id: string;
|
|
188
294
|
user: {
|
|
189
295
|
id: string;
|
|
190
296
|
username: string;
|
|
191
297
|
} | null;
|
|
298
|
+
id: string;
|
|
299
|
+
name: string;
|
|
192
300
|
size: number | null;
|
|
193
301
|
uploadedAt: Date | null;
|
|
194
302
|
}[];
|
|
195
303
|
childFolders: {
|
|
196
|
-
name: string;
|
|
197
304
|
id: string;
|
|
198
|
-
|
|
305
|
+
name: string;
|
|
199
306
|
_count: {
|
|
200
307
|
files: number;
|
|
201
308
|
childFolders: number;
|
|
202
309
|
};
|
|
310
|
+
color: string | null;
|
|
203
311
|
}[];
|
|
204
312
|
} & {
|
|
205
|
-
name: string;
|
|
206
313
|
id: string;
|
|
314
|
+
name: string;
|
|
315
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
316
|
+
parentFolderId: string | null;
|
|
207
317
|
color: string | null;
|
|
208
318
|
classId: string | null;
|
|
209
319
|
schoolStorageId: string | null;
|
|
210
320
|
personalOwnerId: string | null;
|
|
211
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
212
|
-
parentFolderId: string | null;
|
|
213
321
|
})[]>;
|
|
214
322
|
/** @returns Root folder with contents for a class. */
|
|
215
|
-
export declare function findRootFolderWithContents(classId: string): import(".prisma/client").Prisma.
|
|
323
|
+
export declare function findRootFolderWithContents(classId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
324
|
+
result: {
|
|
325
|
+
userProfile: {
|
|
326
|
+
profilePicture: () => {
|
|
327
|
+
needs: {
|
|
328
|
+
profilePicture: true;
|
|
329
|
+
};
|
|
330
|
+
compute(profile: {
|
|
331
|
+
profilePicture: string | null;
|
|
332
|
+
}): string | null;
|
|
333
|
+
};
|
|
334
|
+
profilePictureThumbnail: () => {
|
|
335
|
+
needs: {
|
|
336
|
+
profilePictureThumbnail: true;
|
|
337
|
+
};
|
|
338
|
+
compute(profile: {
|
|
339
|
+
profilePictureThumbnail: string | null;
|
|
340
|
+
}): string | null;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
model: {};
|
|
345
|
+
query: {};
|
|
346
|
+
client: {};
|
|
347
|
+
}, {}>, "Folder", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
216
348
|
files: {
|
|
217
349
|
type: string;
|
|
218
|
-
name: string;
|
|
219
|
-
id: string;
|
|
220
350
|
user: {
|
|
221
351
|
id: string;
|
|
222
352
|
username: string;
|
|
223
353
|
} | null;
|
|
354
|
+
id: string;
|
|
355
|
+
name: string;
|
|
224
356
|
size: number | null;
|
|
225
357
|
uploadedAt: Date | null;
|
|
226
358
|
}[];
|
|
227
359
|
childFolders: {
|
|
228
|
-
name: string;
|
|
229
360
|
id: string;
|
|
230
|
-
|
|
361
|
+
name: string;
|
|
362
|
+
files: {
|
|
363
|
+
id: string;
|
|
364
|
+
}[];
|
|
231
365
|
_count: {
|
|
232
366
|
files: number;
|
|
233
367
|
childFolders: number;
|
|
234
368
|
};
|
|
235
|
-
|
|
236
|
-
id: string;
|
|
237
|
-
}[];
|
|
369
|
+
color: string | null;
|
|
238
370
|
childFolders: {
|
|
239
371
|
id: string;
|
|
240
372
|
}[];
|
|
241
373
|
}[];
|
|
242
374
|
} & {
|
|
243
|
-
name: string;
|
|
244
375
|
id: string;
|
|
376
|
+
name: string;
|
|
377
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
378
|
+
parentFolderId: string | null;
|
|
245
379
|
color: string | null;
|
|
246
380
|
classId: string | null;
|
|
247
381
|
schoolStorageId: string | null;
|
|
248
382
|
personalOwnerId: string | null;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
383
|
+
}) | null>;
|
|
384
|
+
/** @returns Folder with file/folder counts. */
|
|
385
|
+
export declare function findFolderWithCount(folderId: string, classId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
386
|
+
result: {
|
|
387
|
+
userProfile: {
|
|
388
|
+
profilePicture: () => {
|
|
389
|
+
needs: {
|
|
390
|
+
profilePicture: true;
|
|
391
|
+
};
|
|
392
|
+
compute(profile: {
|
|
393
|
+
profilePicture: string | null;
|
|
394
|
+
}): string | null;
|
|
395
|
+
};
|
|
396
|
+
profilePictureThumbnail: () => {
|
|
397
|
+
needs: {
|
|
398
|
+
profilePictureThumbnail: true;
|
|
399
|
+
};
|
|
400
|
+
compute(profile: {
|
|
401
|
+
profilePictureThumbnail: string | null;
|
|
402
|
+
}): string | null;
|
|
403
|
+
};
|
|
255
404
|
};
|
|
256
405
|
};
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
|
|
406
|
+
model: {};
|
|
407
|
+
query: {};
|
|
408
|
+
client: {};
|
|
409
|
+
}, {}>, "Folder", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
260
410
|
_count: {
|
|
261
411
|
files: number;
|
|
262
412
|
childFolders: number;
|
|
263
413
|
};
|
|
264
414
|
} & {
|
|
265
|
-
name: string;
|
|
266
415
|
id: string;
|
|
416
|
+
name: string;
|
|
417
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
418
|
+
parentFolderId: string | null;
|
|
267
419
|
color: string | null;
|
|
268
420
|
classId: string | null;
|
|
269
421
|
schoolStorageId: string | null;
|
|
270
422
|
personalOwnerId: string | null;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
423
|
+
}) | null>;
|
|
424
|
+
/** @returns Folder with file/folder counts. */
|
|
425
|
+
export declare function findFolderByIdWithCount(folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
426
|
+
result: {
|
|
427
|
+
userProfile: {
|
|
428
|
+
profilePicture: () => {
|
|
429
|
+
needs: {
|
|
430
|
+
profilePicture: true;
|
|
431
|
+
};
|
|
432
|
+
compute(profile: {
|
|
433
|
+
profilePicture: string | null;
|
|
434
|
+
}): string | null;
|
|
435
|
+
};
|
|
436
|
+
profilePictureThumbnail: () => {
|
|
437
|
+
needs: {
|
|
438
|
+
profilePictureThumbnail: true;
|
|
439
|
+
};
|
|
440
|
+
compute(profile: {
|
|
441
|
+
profilePictureThumbnail: string | null;
|
|
442
|
+
}): string | null;
|
|
443
|
+
};
|
|
277
444
|
};
|
|
278
445
|
};
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
446
|
+
model: {};
|
|
447
|
+
query: {};
|
|
448
|
+
client: {};
|
|
449
|
+
}, {}>, "Folder", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
282
450
|
_count: {
|
|
283
451
|
files: number;
|
|
284
452
|
childFolders: number;
|
|
285
453
|
};
|
|
286
454
|
} & {
|
|
287
|
-
name: string;
|
|
288
455
|
id: string;
|
|
456
|
+
name: string;
|
|
457
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
458
|
+
parentFolderId: string | null;
|
|
289
459
|
color: string | null;
|
|
290
460
|
classId: string | null;
|
|
291
461
|
schoolStorageId: string | null;
|
|
292
462
|
personalOwnerId: string | null;
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
463
|
+
}) | null>;
|
|
464
|
+
/** Delete a folder. */
|
|
465
|
+
export declare function deleteFolderById(folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
466
|
+
result: {
|
|
467
|
+
userProfile: {
|
|
468
|
+
profilePicture: () => {
|
|
469
|
+
needs: {
|
|
470
|
+
profilePicture: true;
|
|
471
|
+
};
|
|
472
|
+
compute(profile: {
|
|
473
|
+
profilePicture: string | null;
|
|
474
|
+
}): string | null;
|
|
475
|
+
};
|
|
476
|
+
profilePictureThumbnail: () => {
|
|
477
|
+
needs: {
|
|
478
|
+
profilePictureThumbnail: true;
|
|
479
|
+
};
|
|
480
|
+
compute(profile: {
|
|
481
|
+
profilePictureThumbnail: string | null;
|
|
482
|
+
}): string | null;
|
|
483
|
+
};
|
|
299
484
|
};
|
|
300
485
|
};
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
486
|
+
model: {};
|
|
487
|
+
query: {};
|
|
488
|
+
client: {};
|
|
489
|
+
}, {}>, "Folder", "delete", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
305
490
|
id: string;
|
|
491
|
+
name: string;
|
|
492
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
493
|
+
parentFolderId: string | null;
|
|
306
494
|
color: string | null;
|
|
307
495
|
classId: string | null;
|
|
308
496
|
schoolStorageId: string | null;
|
|
309
497
|
personalOwnerId: string | null;
|
|
310
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
311
|
-
parentFolderId: string | null;
|
|
312
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
313
|
-
datasources: {
|
|
314
|
-
db: {
|
|
315
|
-
url: string;
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
498
|
}>;
|
|
319
499
|
/** Move folder to new parent. */
|
|
320
|
-
export declare function updateFolderParent(folderId: string, parentFolderId: string): import(".prisma/client").Prisma.
|
|
500
|
+
export declare function updateFolderParent(folderId: string, parentFolderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
501
|
+
result: {
|
|
502
|
+
userProfile: {
|
|
503
|
+
profilePicture: () => {
|
|
504
|
+
needs: {
|
|
505
|
+
profilePicture: true;
|
|
506
|
+
};
|
|
507
|
+
compute(profile: {
|
|
508
|
+
profilePicture: string | null;
|
|
509
|
+
}): string | null;
|
|
510
|
+
};
|
|
511
|
+
profilePictureThumbnail: () => {
|
|
512
|
+
needs: {
|
|
513
|
+
profilePictureThumbnail: true;
|
|
514
|
+
};
|
|
515
|
+
compute(profile: {
|
|
516
|
+
profilePictureThumbnail: string | null;
|
|
517
|
+
}): string | null;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
model: {};
|
|
522
|
+
query: {};
|
|
523
|
+
client: {};
|
|
524
|
+
}, {}>, "Folder", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
321
525
|
files: {
|
|
322
526
|
type: string;
|
|
323
|
-
name: string;
|
|
324
|
-
id: string;
|
|
325
527
|
user: {
|
|
326
528
|
id: string;
|
|
327
529
|
username: string;
|
|
328
530
|
} | null;
|
|
531
|
+
id: string;
|
|
532
|
+
name: string;
|
|
329
533
|
size: number | null;
|
|
330
534
|
uploadedAt: Date | null;
|
|
331
535
|
}[];
|
|
332
536
|
childFolders: {
|
|
333
|
-
name: string;
|
|
334
537
|
id: string;
|
|
335
|
-
|
|
538
|
+
name: string;
|
|
336
539
|
_count: {
|
|
337
540
|
files: number;
|
|
338
541
|
childFolders: number;
|
|
339
542
|
};
|
|
543
|
+
color: string | null;
|
|
340
544
|
}[];
|
|
341
545
|
} & {
|
|
342
|
-
name: string;
|
|
343
546
|
id: string;
|
|
547
|
+
name: string;
|
|
548
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
549
|
+
parentFolderId: string | null;
|
|
344
550
|
color: string | null;
|
|
345
551
|
classId: string | null;
|
|
346
552
|
schoolStorageId: string | null;
|
|
347
553
|
personalOwnerId: string | null;
|
|
348
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
349
|
-
parentFolderId: string | null;
|
|
350
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
351
|
-
datasources: {
|
|
352
|
-
db: {
|
|
353
|
-
url: string;
|
|
354
|
-
};
|
|
355
|
-
};
|
|
356
554
|
}>;
|
|
357
555
|
/** Update folder name and color. */
|
|
358
556
|
export declare function updateFolder(folderId: string, data: {
|
|
359
557
|
name?: string;
|
|
360
558
|
color?: string;
|
|
361
|
-
}): import(".prisma/client").Prisma.
|
|
559
|
+
}): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
560
|
+
result: {
|
|
561
|
+
userProfile: {
|
|
562
|
+
profilePicture: () => {
|
|
563
|
+
needs: {
|
|
564
|
+
profilePicture: true;
|
|
565
|
+
};
|
|
566
|
+
compute(profile: {
|
|
567
|
+
profilePicture: string | null;
|
|
568
|
+
}): string | null;
|
|
569
|
+
};
|
|
570
|
+
profilePictureThumbnail: () => {
|
|
571
|
+
needs: {
|
|
572
|
+
profilePictureThumbnail: true;
|
|
573
|
+
};
|
|
574
|
+
compute(profile: {
|
|
575
|
+
profilePictureThumbnail: string | null;
|
|
576
|
+
}): string | null;
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
model: {};
|
|
581
|
+
query: {};
|
|
582
|
+
client: {};
|
|
583
|
+
}, {}>, "Folder", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
362
584
|
files: {
|
|
363
585
|
type: string;
|
|
364
|
-
name: string;
|
|
365
|
-
id: string;
|
|
366
586
|
user: {
|
|
367
587
|
id: string;
|
|
368
588
|
username: string;
|
|
369
589
|
} | null;
|
|
590
|
+
id: string;
|
|
591
|
+
name: string;
|
|
370
592
|
size: number | null;
|
|
371
593
|
uploadedAt: Date | null;
|
|
372
594
|
}[];
|
|
373
595
|
childFolders: {
|
|
374
|
-
name: string;
|
|
375
596
|
id: string;
|
|
376
|
-
|
|
597
|
+
name: string;
|
|
377
598
|
_count: {
|
|
378
599
|
files: number;
|
|
379
600
|
childFolders: number;
|
|
380
601
|
};
|
|
602
|
+
color: string | null;
|
|
381
603
|
}[];
|
|
382
604
|
} & {
|
|
383
|
-
name: string;
|
|
384
605
|
id: string;
|
|
606
|
+
name: string;
|
|
607
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
608
|
+
parentFolderId: string | null;
|
|
385
609
|
color: string | null;
|
|
386
610
|
classId: string | null;
|
|
387
611
|
schoolStorageId: string | null;
|
|
388
612
|
personalOwnerId: string | null;
|
|
389
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
390
|
-
parentFolderId: string | null;
|
|
391
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
392
|
-
datasources: {
|
|
393
|
-
db: {
|
|
394
|
-
url: string;
|
|
395
|
-
};
|
|
396
|
-
};
|
|
397
613
|
}>;
|
|
398
614
|
/** @returns Folder for path traversal. */
|
|
399
|
-
export declare function findFolderByIdForTraversal(id: string): import(".prisma/client").Prisma.
|
|
400
|
-
|
|
615
|
+
export declare function findFolderByIdForTraversal(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
616
|
+
result: {
|
|
617
|
+
userProfile: {
|
|
618
|
+
profilePicture: () => {
|
|
619
|
+
needs: {
|
|
620
|
+
profilePicture: true;
|
|
621
|
+
};
|
|
622
|
+
compute(profile: {
|
|
623
|
+
profilePicture: string | null;
|
|
624
|
+
}): string | null;
|
|
625
|
+
};
|
|
626
|
+
profilePictureThumbnail: () => {
|
|
627
|
+
needs: {
|
|
628
|
+
profilePictureThumbnail: true;
|
|
629
|
+
};
|
|
630
|
+
compute(profile: {
|
|
631
|
+
profilePictureThumbnail: string | null;
|
|
632
|
+
}): string | null;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
model: {};
|
|
637
|
+
query: {};
|
|
638
|
+
client: {};
|
|
639
|
+
}, {}>, "Folder", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
401
640
|
id: string;
|
|
641
|
+
name: string;
|
|
642
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
643
|
+
parentFolderId: string | null;
|
|
402
644
|
color: string | null;
|
|
403
645
|
classId: string | null;
|
|
404
646
|
schoolStorageId: string | null;
|
|
405
647
|
personalOwnerId: string | null;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
648
|
+
} | null>;
|
|
649
|
+
/** @returns Folder by ID. */
|
|
650
|
+
export declare function findFolderParents(folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
651
|
+
result: {
|
|
652
|
+
userProfile: {
|
|
653
|
+
profilePicture: () => {
|
|
654
|
+
needs: {
|
|
655
|
+
profilePicture: true;
|
|
656
|
+
};
|
|
657
|
+
compute(profile: {
|
|
658
|
+
profilePicture: string | null;
|
|
659
|
+
}): string | null;
|
|
660
|
+
};
|
|
661
|
+
profilePictureThumbnail: () => {
|
|
662
|
+
needs: {
|
|
663
|
+
profilePictureThumbnail: true;
|
|
664
|
+
};
|
|
665
|
+
compute(profile: {
|
|
666
|
+
profilePictureThumbnail: string | null;
|
|
667
|
+
}): string | null;
|
|
668
|
+
};
|
|
412
669
|
};
|
|
413
670
|
};
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
671
|
+
model: {};
|
|
672
|
+
query: {};
|
|
673
|
+
client: {};
|
|
674
|
+
}, {}>, "Folder", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
418
675
|
id: string;
|
|
676
|
+
name: string;
|
|
677
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
678
|
+
parentFolderId: string | null;
|
|
419
679
|
color: string | null;
|
|
420
680
|
classId: string | null;
|
|
421
681
|
schoolStorageId: string | null;
|
|
422
682
|
personalOwnerId: string | null;
|
|
423
|
-
|
|
424
|
-
parentFolderId: string | null;
|
|
425
|
-
} | null, null, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
426
|
-
datasources: {
|
|
427
|
-
db: {
|
|
428
|
-
url: string;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
}>;
|
|
683
|
+
} | null>;
|
|
432
684
|
//# sourceMappingURL=folder.d.ts.map
|