@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/file.d.ts
CHANGED
|
@@ -1,19 +1,101 @@
|
|
|
1
1
|
/** @returns File with assignment, submission, annotations, folder, announcement for permission checks. */
|
|
2
|
-
export declare function findFileById(fileId: string): import(".prisma/client").Prisma.
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare function findFileById(fileId: 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
|
+
}, {}>, "File", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
27
|
+
folder: ({
|
|
28
|
+
class: ({
|
|
5
29
|
school: ({
|
|
6
30
|
memberships: {
|
|
7
31
|
userId: string;
|
|
8
32
|
}[];
|
|
9
33
|
} & {
|
|
10
|
-
name: string;
|
|
11
34
|
id: string;
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
updatedAt: Date;
|
|
37
|
+
name: string;
|
|
12
38
|
description: string | null;
|
|
13
39
|
logoId: string | null;
|
|
14
40
|
subdomain: string | null;
|
|
41
|
+
}) | null;
|
|
42
|
+
teachers: {
|
|
43
|
+
id: string;
|
|
44
|
+
username: string;
|
|
45
|
+
email: string;
|
|
46
|
+
password: string;
|
|
47
|
+
verified: boolean;
|
|
48
|
+
termsAcceptedAt: Date | null;
|
|
49
|
+
termsVersion: string | null;
|
|
50
|
+
schoolId: string | null;
|
|
51
|
+
}[];
|
|
52
|
+
students: {
|
|
53
|
+
id: string;
|
|
54
|
+
username: string;
|
|
55
|
+
email: string;
|
|
56
|
+
password: string;
|
|
57
|
+
verified: boolean;
|
|
58
|
+
termsAcceptedAt: Date | null;
|
|
59
|
+
termsVersion: string | null;
|
|
60
|
+
schoolId: string | null;
|
|
61
|
+
}[];
|
|
62
|
+
} & {
|
|
63
|
+
section: string;
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
schoolId: string | null;
|
|
67
|
+
color: string | null;
|
|
68
|
+
subject: string;
|
|
69
|
+
syllabus: string | null;
|
|
70
|
+
departmentId: string | null;
|
|
71
|
+
discussionsEnabled: boolean;
|
|
72
|
+
studentsCanCreateDiscussions: boolean;
|
|
73
|
+
studentsCanReply: boolean;
|
|
74
|
+
}) | null;
|
|
75
|
+
} & {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
79
|
+
parentFolderId: string | null;
|
|
80
|
+
color: string | null;
|
|
81
|
+
classId: string | null;
|
|
82
|
+
schoolStorageId: string | null;
|
|
83
|
+
personalOwnerId: string | null;
|
|
84
|
+
}) | null;
|
|
85
|
+
assignment: ({
|
|
86
|
+
class: {
|
|
87
|
+
school: ({
|
|
88
|
+
memberships: {
|
|
89
|
+
userId: string;
|
|
90
|
+
}[];
|
|
91
|
+
} & {
|
|
92
|
+
id: string;
|
|
15
93
|
createdAt: Date;
|
|
16
94
|
updatedAt: Date;
|
|
95
|
+
name: string;
|
|
96
|
+
description: string | null;
|
|
97
|
+
logoId: string | null;
|
|
98
|
+
subdomain: string | null;
|
|
17
99
|
}) | null;
|
|
18
100
|
teachers: {
|
|
19
101
|
id: string;
|
|
@@ -21,6 +103,8 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
21
103
|
email: string;
|
|
22
104
|
password: string;
|
|
23
105
|
verified: boolean;
|
|
106
|
+
termsAcceptedAt: Date | null;
|
|
107
|
+
termsVersion: string | null;
|
|
24
108
|
schoolId: string | null;
|
|
25
109
|
}[];
|
|
26
110
|
students: {
|
|
@@ -29,15 +113,17 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
29
113
|
email: string;
|
|
30
114
|
password: string;
|
|
31
115
|
verified: boolean;
|
|
116
|
+
termsAcceptedAt: Date | null;
|
|
117
|
+
termsVersion: string | null;
|
|
32
118
|
schoolId: string | null;
|
|
33
119
|
}[];
|
|
34
120
|
} & {
|
|
35
|
-
|
|
121
|
+
section: string;
|
|
36
122
|
id: string;
|
|
123
|
+
name: string;
|
|
37
124
|
schoolId: string | null;
|
|
38
|
-
subject: string;
|
|
39
125
|
color: string | null;
|
|
40
|
-
|
|
126
|
+
subject: string;
|
|
41
127
|
syllabus: string | null;
|
|
42
128
|
departmentId: string | null;
|
|
43
129
|
discussionsEnabled: boolean;
|
|
@@ -49,10 +135,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
49
135
|
id: string;
|
|
50
136
|
createdAt: Date | null;
|
|
51
137
|
classId: string;
|
|
52
|
-
modifiedAt: Date | null;
|
|
53
138
|
title: string;
|
|
54
|
-
instructions: string;
|
|
55
139
|
dueDate: Date;
|
|
140
|
+
maxGrade: number | null;
|
|
141
|
+
eventId: string | null;
|
|
142
|
+
instructions: string;
|
|
143
|
+
modifiedAt: Date | null;
|
|
56
144
|
teacherId: string;
|
|
57
145
|
acceptFiles: boolean;
|
|
58
146
|
acceptExtendedResponse: boolean;
|
|
@@ -61,15 +149,69 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
61
149
|
aiPolicyLevel: number;
|
|
62
150
|
sectionId: string | null;
|
|
63
151
|
graded: boolean;
|
|
64
|
-
maxGrade: number | null;
|
|
65
152
|
weight: number;
|
|
66
153
|
inProgress: boolean;
|
|
67
154
|
template: boolean;
|
|
68
|
-
eventId: string | null;
|
|
69
155
|
markSchemeId: string | null;
|
|
70
156
|
order: number | null;
|
|
71
157
|
gradingBoundaryId: string | null;
|
|
72
158
|
}) | null;
|
|
159
|
+
announcement: ({
|
|
160
|
+
class: {
|
|
161
|
+
school: ({
|
|
162
|
+
memberships: {
|
|
163
|
+
userId: string;
|
|
164
|
+
}[];
|
|
165
|
+
} & {
|
|
166
|
+
id: string;
|
|
167
|
+
createdAt: Date;
|
|
168
|
+
updatedAt: Date;
|
|
169
|
+
name: string;
|
|
170
|
+
description: string | null;
|
|
171
|
+
logoId: string | null;
|
|
172
|
+
subdomain: string | null;
|
|
173
|
+
}) | null;
|
|
174
|
+
teachers: {
|
|
175
|
+
id: string;
|
|
176
|
+
username: string;
|
|
177
|
+
email: string;
|
|
178
|
+
password: string;
|
|
179
|
+
verified: boolean;
|
|
180
|
+
termsAcceptedAt: Date | null;
|
|
181
|
+
termsVersion: string | null;
|
|
182
|
+
schoolId: string | null;
|
|
183
|
+
}[];
|
|
184
|
+
students: {
|
|
185
|
+
id: string;
|
|
186
|
+
username: string;
|
|
187
|
+
email: string;
|
|
188
|
+
password: string;
|
|
189
|
+
verified: boolean;
|
|
190
|
+
termsAcceptedAt: Date | null;
|
|
191
|
+
termsVersion: string | null;
|
|
192
|
+
schoolId: string | null;
|
|
193
|
+
}[];
|
|
194
|
+
} & {
|
|
195
|
+
section: string;
|
|
196
|
+
id: string;
|
|
197
|
+
name: string;
|
|
198
|
+
schoolId: string | null;
|
|
199
|
+
color: string | null;
|
|
200
|
+
subject: string;
|
|
201
|
+
syllabus: string | null;
|
|
202
|
+
departmentId: string | null;
|
|
203
|
+
discussionsEnabled: boolean;
|
|
204
|
+
studentsCanCreateDiscussions: boolean;
|
|
205
|
+
studentsCanReply: boolean;
|
|
206
|
+
};
|
|
207
|
+
} & {
|
|
208
|
+
id: string;
|
|
209
|
+
createdAt: Date;
|
|
210
|
+
classId: string;
|
|
211
|
+
remarks: string;
|
|
212
|
+
modifiedAt: Date | null;
|
|
213
|
+
teacherId: string;
|
|
214
|
+
}) | null;
|
|
73
215
|
submission: ({
|
|
74
216
|
assignment: {
|
|
75
217
|
class: {
|
|
@@ -78,13 +220,13 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
78
220
|
userId: string;
|
|
79
221
|
}[];
|
|
80
222
|
} & {
|
|
81
|
-
name: string;
|
|
82
223
|
id: string;
|
|
224
|
+
createdAt: Date;
|
|
225
|
+
updatedAt: Date;
|
|
226
|
+
name: string;
|
|
83
227
|
description: string | null;
|
|
84
228
|
logoId: string | null;
|
|
85
229
|
subdomain: string | null;
|
|
86
|
-
createdAt: Date;
|
|
87
|
-
updatedAt: Date;
|
|
88
230
|
}) | null;
|
|
89
231
|
teachers: {
|
|
90
232
|
id: string;
|
|
@@ -92,6 +234,8 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
92
234
|
email: string;
|
|
93
235
|
password: string;
|
|
94
236
|
verified: boolean;
|
|
237
|
+
termsAcceptedAt: Date | null;
|
|
238
|
+
termsVersion: string | null;
|
|
95
239
|
schoolId: string | null;
|
|
96
240
|
}[];
|
|
97
241
|
students: {
|
|
@@ -100,15 +244,17 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
100
244
|
email: string;
|
|
101
245
|
password: string;
|
|
102
246
|
verified: boolean;
|
|
247
|
+
termsAcceptedAt: Date | null;
|
|
248
|
+
termsVersion: string | null;
|
|
103
249
|
schoolId: string | null;
|
|
104
250
|
}[];
|
|
105
251
|
} & {
|
|
106
|
-
|
|
252
|
+
section: string;
|
|
107
253
|
id: string;
|
|
254
|
+
name: string;
|
|
108
255
|
schoolId: string | null;
|
|
109
|
-
subject: string;
|
|
110
256
|
color: string | null;
|
|
111
|
-
|
|
257
|
+
subject: string;
|
|
112
258
|
syllabus: string | null;
|
|
113
259
|
departmentId: string | null;
|
|
114
260
|
discussionsEnabled: boolean;
|
|
@@ -120,10 +266,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
120
266
|
id: string;
|
|
121
267
|
createdAt: Date | null;
|
|
122
268
|
classId: string;
|
|
123
|
-
modifiedAt: Date | null;
|
|
124
269
|
title: string;
|
|
125
|
-
instructions: string;
|
|
126
270
|
dueDate: Date;
|
|
271
|
+
maxGrade: number | null;
|
|
272
|
+
eventId: string | null;
|
|
273
|
+
instructions: string;
|
|
274
|
+
modifiedAt: Date | null;
|
|
127
275
|
teacherId: string;
|
|
128
276
|
acceptFiles: boolean;
|
|
129
277
|
acceptExtendedResponse: boolean;
|
|
@@ -132,11 +280,9 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
132
280
|
aiPolicyLevel: number;
|
|
133
281
|
sectionId: string | null;
|
|
134
282
|
graded: boolean;
|
|
135
|
-
maxGrade: number | null;
|
|
136
283
|
weight: number;
|
|
137
284
|
inProgress: boolean;
|
|
138
285
|
template: boolean;
|
|
139
|
-
eventId: string | null;
|
|
140
286
|
markSchemeId: string | null;
|
|
141
287
|
order: number | null;
|
|
142
288
|
gradingBoundaryId: string | null;
|
|
@@ -147,14 +293,16 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
147
293
|
email: string;
|
|
148
294
|
password: string;
|
|
149
295
|
verified: boolean;
|
|
296
|
+
termsAcceptedAt: Date | null;
|
|
297
|
+
termsVersion: string | null;
|
|
150
298
|
schoolId: string | null;
|
|
151
299
|
};
|
|
152
300
|
} & {
|
|
153
301
|
id: string;
|
|
154
302
|
createdAt: Date;
|
|
155
303
|
assignmentId: string;
|
|
156
|
-
modifiedAt: Date;
|
|
157
304
|
studentId: string;
|
|
305
|
+
modifiedAt: Date;
|
|
158
306
|
extendedResponse: string | null;
|
|
159
307
|
gradeReceived: number | null;
|
|
160
308
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -174,13 +322,13 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
174
322
|
userId: string;
|
|
175
323
|
}[];
|
|
176
324
|
} & {
|
|
177
|
-
name: string;
|
|
178
325
|
id: string;
|
|
326
|
+
createdAt: Date;
|
|
327
|
+
updatedAt: Date;
|
|
328
|
+
name: string;
|
|
179
329
|
description: string | null;
|
|
180
330
|
logoId: string | null;
|
|
181
331
|
subdomain: string | null;
|
|
182
|
-
createdAt: Date;
|
|
183
|
-
updatedAt: Date;
|
|
184
332
|
}) | null;
|
|
185
333
|
teachers: {
|
|
186
334
|
id: string;
|
|
@@ -188,6 +336,8 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
188
336
|
email: string;
|
|
189
337
|
password: string;
|
|
190
338
|
verified: boolean;
|
|
339
|
+
termsAcceptedAt: Date | null;
|
|
340
|
+
termsVersion: string | null;
|
|
191
341
|
schoolId: string | null;
|
|
192
342
|
}[];
|
|
193
343
|
students: {
|
|
@@ -196,15 +346,17 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
196
346
|
email: string;
|
|
197
347
|
password: string;
|
|
198
348
|
verified: boolean;
|
|
349
|
+
termsAcceptedAt: Date | null;
|
|
350
|
+
termsVersion: string | null;
|
|
199
351
|
schoolId: string | null;
|
|
200
352
|
}[];
|
|
201
353
|
} & {
|
|
202
|
-
|
|
354
|
+
section: string;
|
|
203
355
|
id: string;
|
|
356
|
+
name: string;
|
|
204
357
|
schoolId: string | null;
|
|
205
|
-
subject: string;
|
|
206
358
|
color: string | null;
|
|
207
|
-
|
|
359
|
+
subject: string;
|
|
208
360
|
syllabus: string | null;
|
|
209
361
|
departmentId: string | null;
|
|
210
362
|
discussionsEnabled: boolean;
|
|
@@ -216,10 +368,12 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
216
368
|
id: string;
|
|
217
369
|
createdAt: Date | null;
|
|
218
370
|
classId: string;
|
|
219
|
-
modifiedAt: Date | null;
|
|
220
371
|
title: string;
|
|
221
|
-
instructions: string;
|
|
222
372
|
dueDate: Date;
|
|
373
|
+
maxGrade: number | null;
|
|
374
|
+
eventId: string | null;
|
|
375
|
+
instructions: string;
|
|
376
|
+
modifiedAt: Date | null;
|
|
223
377
|
teacherId: string;
|
|
224
378
|
acceptFiles: boolean;
|
|
225
379
|
acceptExtendedResponse: boolean;
|
|
@@ -228,11 +382,9 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
228
382
|
aiPolicyLevel: number;
|
|
229
383
|
sectionId: string | null;
|
|
230
384
|
graded: boolean;
|
|
231
|
-
maxGrade: number | null;
|
|
232
385
|
weight: number;
|
|
233
386
|
inProgress: boolean;
|
|
234
387
|
template: boolean;
|
|
235
|
-
eventId: string | null;
|
|
236
388
|
markSchemeId: string | null;
|
|
237
389
|
order: number | null;
|
|
238
390
|
gradingBoundaryId: string | null;
|
|
@@ -243,14 +395,16 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
243
395
|
email: string;
|
|
244
396
|
password: string;
|
|
245
397
|
verified: boolean;
|
|
398
|
+
termsAcceptedAt: Date | null;
|
|
399
|
+
termsVersion: string | null;
|
|
246
400
|
schoolId: string | null;
|
|
247
401
|
};
|
|
248
402
|
} & {
|
|
249
403
|
id: string;
|
|
250
404
|
createdAt: Date;
|
|
251
405
|
assignmentId: string;
|
|
252
|
-
modifiedAt: Date;
|
|
253
406
|
studentId: string;
|
|
407
|
+
modifiedAt: Date;
|
|
254
408
|
extendedResponse: string | null;
|
|
255
409
|
gradeReceived: number | null;
|
|
256
410
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -262,121 +416,19 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
262
416
|
submitted: boolean | null;
|
|
263
417
|
returned: boolean | null;
|
|
264
418
|
}) | null;
|
|
265
|
-
folder: ({
|
|
266
|
-
class: ({
|
|
267
|
-
school: ({
|
|
268
|
-
memberships: {
|
|
269
|
-
userId: string;
|
|
270
|
-
}[];
|
|
271
|
-
} & {
|
|
272
|
-
name: string;
|
|
273
|
-
id: string;
|
|
274
|
-
description: string | null;
|
|
275
|
-
logoId: string | null;
|
|
276
|
-
subdomain: string | null;
|
|
277
|
-
createdAt: Date;
|
|
278
|
-
updatedAt: Date;
|
|
279
|
-
}) | null;
|
|
280
|
-
teachers: {
|
|
281
|
-
id: string;
|
|
282
|
-
username: string;
|
|
283
|
-
email: string;
|
|
284
|
-
password: string;
|
|
285
|
-
verified: boolean;
|
|
286
|
-
schoolId: string | null;
|
|
287
|
-
}[];
|
|
288
|
-
students: {
|
|
289
|
-
id: string;
|
|
290
|
-
username: string;
|
|
291
|
-
email: string;
|
|
292
|
-
password: string;
|
|
293
|
-
verified: boolean;
|
|
294
|
-
schoolId: string | null;
|
|
295
|
-
}[];
|
|
296
|
-
} & {
|
|
297
|
-
name: string;
|
|
298
|
-
id: string;
|
|
299
|
-
schoolId: string | null;
|
|
300
|
-
subject: string;
|
|
301
|
-
color: string | null;
|
|
302
|
-
section: string;
|
|
303
|
-
syllabus: string | null;
|
|
304
|
-
departmentId: string | null;
|
|
305
|
-
discussionsEnabled: boolean;
|
|
306
|
-
studentsCanCreateDiscussions: boolean;
|
|
307
|
-
studentsCanReply: boolean;
|
|
308
|
-
}) | null;
|
|
309
|
-
} & {
|
|
310
|
-
name: string;
|
|
311
|
-
id: string;
|
|
312
|
-
color: string | null;
|
|
313
|
-
classId: string | null;
|
|
314
|
-
schoolStorageId: string | null;
|
|
315
|
-
personalOwnerId: string | null;
|
|
316
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
317
|
-
parentFolderId: string | null;
|
|
318
|
-
}) | null;
|
|
319
|
-
announcement: ({
|
|
320
|
-
class: {
|
|
321
|
-
school: ({
|
|
322
|
-
memberships: {
|
|
323
|
-
userId: string;
|
|
324
|
-
}[];
|
|
325
|
-
} & {
|
|
326
|
-
name: string;
|
|
327
|
-
id: string;
|
|
328
|
-
description: string | null;
|
|
329
|
-
logoId: string | null;
|
|
330
|
-
subdomain: string | null;
|
|
331
|
-
createdAt: Date;
|
|
332
|
-
updatedAt: Date;
|
|
333
|
-
}) | null;
|
|
334
|
-
teachers: {
|
|
335
|
-
id: string;
|
|
336
|
-
username: string;
|
|
337
|
-
email: string;
|
|
338
|
-
password: string;
|
|
339
|
-
verified: boolean;
|
|
340
|
-
schoolId: string | null;
|
|
341
|
-
}[];
|
|
342
|
-
students: {
|
|
343
|
-
id: string;
|
|
344
|
-
username: string;
|
|
345
|
-
email: string;
|
|
346
|
-
password: string;
|
|
347
|
-
verified: boolean;
|
|
348
|
-
schoolId: string | null;
|
|
349
|
-
}[];
|
|
350
|
-
} & {
|
|
351
|
-
name: string;
|
|
352
|
-
id: string;
|
|
353
|
-
schoolId: string | null;
|
|
354
|
-
subject: string;
|
|
355
|
-
color: string | null;
|
|
356
|
-
section: string;
|
|
357
|
-
syllabus: string | null;
|
|
358
|
-
departmentId: string | null;
|
|
359
|
-
discussionsEnabled: boolean;
|
|
360
|
-
studentsCanCreateDiscussions: boolean;
|
|
361
|
-
studentsCanReply: boolean;
|
|
362
|
-
};
|
|
363
|
-
} & {
|
|
364
|
-
id: string;
|
|
365
|
-
createdAt: Date;
|
|
366
|
-
classId: string;
|
|
367
|
-
modifiedAt: Date | null;
|
|
368
|
-
teacherId: string;
|
|
369
|
-
remarks: string;
|
|
370
|
-
}) | null;
|
|
371
419
|
} & {
|
|
372
420
|
path: string;
|
|
373
421
|
type: string;
|
|
374
|
-
name: string;
|
|
375
422
|
id: string;
|
|
376
423
|
userId: string | null;
|
|
377
|
-
|
|
424
|
+
name: string;
|
|
378
425
|
size: number | null;
|
|
379
426
|
uploadedAt: Date | null;
|
|
427
|
+
assignmentId: string | null;
|
|
428
|
+
submissionId: string | null;
|
|
429
|
+
thumbnailId: string | null;
|
|
430
|
+
annotationId: string | null;
|
|
431
|
+
conversationId: string | null;
|
|
380
432
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
381
433
|
uploadUrl: string | null;
|
|
382
434
|
uploadExpiresAt: Date | null;
|
|
@@ -386,34 +438,48 @@ export declare function findFileById(fileId: string): import(".prisma/client").P
|
|
|
386
438
|
uploadRetryCount: number;
|
|
387
439
|
isOrphaned: boolean;
|
|
388
440
|
cleanupAt: Date | null;
|
|
389
|
-
thumbnailId: string | null;
|
|
390
|
-
assignmentId: string | null;
|
|
391
|
-
submissionId: string | null;
|
|
392
|
-
annotationId: string | null;
|
|
393
441
|
classDraftId: string | null;
|
|
394
|
-
|
|
442
|
+
folderId: string | null;
|
|
395
443
|
messageId: string | null;
|
|
396
444
|
announcementId: string | null;
|
|
397
445
|
discussionId: string | null;
|
|
398
446
|
discussionReplyId: string | null;
|
|
399
447
|
schoolDevelopementProgramId: string | null;
|
|
400
|
-
}) | null
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
448
|
+
}) | null>;
|
|
449
|
+
/** @returns File with folder and class. */
|
|
450
|
+
export declare function findFileWithFolder(fileId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
451
|
+
result: {
|
|
452
|
+
userProfile: {
|
|
453
|
+
profilePicture: () => {
|
|
454
|
+
needs: {
|
|
455
|
+
profilePicture: true;
|
|
456
|
+
};
|
|
457
|
+
compute(profile: {
|
|
458
|
+
profilePicture: string | null;
|
|
459
|
+
}): string | null;
|
|
460
|
+
};
|
|
461
|
+
profilePictureThumbnail: () => {
|
|
462
|
+
needs: {
|
|
463
|
+
profilePictureThumbnail: true;
|
|
464
|
+
};
|
|
465
|
+
compute(profile: {
|
|
466
|
+
profilePictureThumbnail: string | null;
|
|
467
|
+
}): string | null;
|
|
468
|
+
};
|
|
404
469
|
};
|
|
405
470
|
};
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
471
|
+
model: {};
|
|
472
|
+
query: {};
|
|
473
|
+
client: {};
|
|
474
|
+
}, {}>, "File", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
409
475
|
folder: ({
|
|
410
476
|
class: {
|
|
411
|
-
|
|
477
|
+
section: string;
|
|
412
478
|
id: string;
|
|
479
|
+
name: string;
|
|
413
480
|
schoolId: string | null;
|
|
414
|
-
subject: string;
|
|
415
481
|
color: string | null;
|
|
416
|
-
|
|
482
|
+
subject: string;
|
|
417
483
|
syllabus: string | null;
|
|
418
484
|
departmentId: string | null;
|
|
419
485
|
discussionsEnabled: boolean;
|
|
@@ -421,24 +487,28 @@ export declare function findFileWithFolder(fileId: string): import(".prisma/clie
|
|
|
421
487
|
studentsCanReply: boolean;
|
|
422
488
|
} | null;
|
|
423
489
|
} & {
|
|
424
|
-
name: string;
|
|
425
490
|
id: string;
|
|
491
|
+
name: string;
|
|
492
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
493
|
+
parentFolderId: string | null;
|
|
426
494
|
color: string | null;
|
|
427
495
|
classId: string | null;
|
|
428
496
|
schoolStorageId: string | null;
|
|
429
497
|
personalOwnerId: string | null;
|
|
430
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
431
|
-
parentFolderId: string | null;
|
|
432
498
|
}) | null;
|
|
433
499
|
} & {
|
|
434
500
|
path: string;
|
|
435
501
|
type: string;
|
|
436
|
-
name: string;
|
|
437
502
|
id: string;
|
|
438
503
|
userId: string | null;
|
|
439
|
-
|
|
504
|
+
name: string;
|
|
440
505
|
size: number | null;
|
|
441
506
|
uploadedAt: Date | null;
|
|
507
|
+
assignmentId: string | null;
|
|
508
|
+
submissionId: string | null;
|
|
509
|
+
thumbnailId: string | null;
|
|
510
|
+
annotationId: string | null;
|
|
511
|
+
conversationId: string | null;
|
|
442
512
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
443
513
|
uploadUrl: string | null;
|
|
444
514
|
uploadExpiresAt: Date | null;
|
|
@@ -448,35 +518,77 @@ export declare function findFileWithFolder(fileId: string): import(".prisma/clie
|
|
|
448
518
|
uploadRetryCount: number;
|
|
449
519
|
isOrphaned: boolean;
|
|
450
520
|
cleanupAt: Date | null;
|
|
451
|
-
thumbnailId: string | null;
|
|
452
|
-
assignmentId: string | null;
|
|
453
|
-
submissionId: string | null;
|
|
454
|
-
annotationId: string | null;
|
|
455
521
|
classDraftId: string | null;
|
|
456
|
-
|
|
522
|
+
folderId: string | null;
|
|
457
523
|
messageId: string | null;
|
|
458
524
|
announcementId: string | null;
|
|
459
525
|
discussionId: string | null;
|
|
460
526
|
discussionReplyId: string | null;
|
|
461
527
|
schoolDevelopementProgramId: string | null;
|
|
462
|
-
}) | null
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
528
|
+
}) | null>;
|
|
529
|
+
/** @returns File with folder and thumbnail. */
|
|
530
|
+
export declare function findFileWithFolderAndThumbnail(fileId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
531
|
+
result: {
|
|
532
|
+
userProfile: {
|
|
533
|
+
profilePicture: () => {
|
|
534
|
+
needs: {
|
|
535
|
+
profilePicture: true;
|
|
536
|
+
};
|
|
537
|
+
compute(profile: {
|
|
538
|
+
profilePicture: string | null;
|
|
539
|
+
}): string | null;
|
|
540
|
+
};
|
|
541
|
+
profilePictureThumbnail: () => {
|
|
542
|
+
needs: {
|
|
543
|
+
profilePictureThumbnail: true;
|
|
544
|
+
};
|
|
545
|
+
compute(profile: {
|
|
546
|
+
profilePictureThumbnail: string | null;
|
|
547
|
+
}): string | null;
|
|
548
|
+
};
|
|
466
549
|
};
|
|
467
550
|
};
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
|
|
551
|
+
model: {};
|
|
552
|
+
query: {};
|
|
553
|
+
client: {};
|
|
554
|
+
}, {}>, "File", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
555
|
+
folder: ({
|
|
556
|
+
class: {
|
|
557
|
+
section: string;
|
|
558
|
+
id: string;
|
|
559
|
+
name: string;
|
|
560
|
+
schoolId: string | null;
|
|
561
|
+
color: string | null;
|
|
562
|
+
subject: string;
|
|
563
|
+
syllabus: string | null;
|
|
564
|
+
departmentId: string | null;
|
|
565
|
+
discussionsEnabled: boolean;
|
|
566
|
+
studentsCanCreateDiscussions: boolean;
|
|
567
|
+
studentsCanReply: boolean;
|
|
568
|
+
} | null;
|
|
569
|
+
} & {
|
|
570
|
+
id: string;
|
|
571
|
+
name: string;
|
|
572
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
573
|
+
parentFolderId: string | null;
|
|
574
|
+
color: string | null;
|
|
575
|
+
classId: string | null;
|
|
576
|
+
schoolStorageId: string | null;
|
|
577
|
+
personalOwnerId: string | null;
|
|
578
|
+
}) | null;
|
|
471
579
|
thumbnail: {
|
|
472
580
|
path: string;
|
|
473
581
|
type: string;
|
|
474
|
-
name: string;
|
|
475
582
|
id: string;
|
|
476
583
|
userId: string | null;
|
|
477
|
-
|
|
584
|
+
name: string;
|
|
478
585
|
size: number | null;
|
|
479
586
|
uploadedAt: Date | null;
|
|
587
|
+
assignmentId: string | null;
|
|
588
|
+
submissionId: string | null;
|
|
589
|
+
thumbnailId: string | null;
|
|
590
|
+
annotationId: string | null;
|
|
591
|
+
conversationId: string | null;
|
|
480
592
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
481
593
|
uploadUrl: string | null;
|
|
482
594
|
uploadExpiresAt: Date | null;
|
|
@@ -486,51 +598,27 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
|
|
|
486
598
|
uploadRetryCount: number;
|
|
487
599
|
isOrphaned: boolean;
|
|
488
600
|
cleanupAt: Date | null;
|
|
489
|
-
thumbnailId: string | null;
|
|
490
|
-
assignmentId: string | null;
|
|
491
|
-
submissionId: string | null;
|
|
492
|
-
annotationId: string | null;
|
|
493
601
|
classDraftId: string | null;
|
|
494
|
-
|
|
602
|
+
folderId: string | null;
|
|
495
603
|
messageId: string | null;
|
|
496
604
|
announcementId: string | null;
|
|
497
605
|
discussionId: string | null;
|
|
498
606
|
discussionReplyId: string | null;
|
|
499
607
|
schoolDevelopementProgramId: string | null;
|
|
500
608
|
} | null;
|
|
501
|
-
folder: ({
|
|
502
|
-
class: {
|
|
503
|
-
name: string;
|
|
504
|
-
id: string;
|
|
505
|
-
schoolId: string | null;
|
|
506
|
-
subject: string;
|
|
507
|
-
color: string | null;
|
|
508
|
-
section: string;
|
|
509
|
-
syllabus: string | null;
|
|
510
|
-
departmentId: string | null;
|
|
511
|
-
discussionsEnabled: boolean;
|
|
512
|
-
studentsCanCreateDiscussions: boolean;
|
|
513
|
-
studentsCanReply: boolean;
|
|
514
|
-
} | null;
|
|
515
|
-
} & {
|
|
516
|
-
name: string;
|
|
517
|
-
id: string;
|
|
518
|
-
color: string | null;
|
|
519
|
-
classId: string | null;
|
|
520
|
-
schoolStorageId: string | null;
|
|
521
|
-
personalOwnerId: string | null;
|
|
522
|
-
scope: import(".prisma/client").$Enums.FolderScope;
|
|
523
|
-
parentFolderId: string | null;
|
|
524
|
-
}) | null;
|
|
525
609
|
} & {
|
|
526
610
|
path: string;
|
|
527
611
|
type: string;
|
|
528
|
-
name: string;
|
|
529
612
|
id: string;
|
|
530
613
|
userId: string | null;
|
|
531
|
-
|
|
614
|
+
name: string;
|
|
532
615
|
size: number | null;
|
|
533
616
|
uploadedAt: Date | null;
|
|
617
|
+
assignmentId: string | null;
|
|
618
|
+
submissionId: string | null;
|
|
619
|
+
thumbnailId: string | null;
|
|
620
|
+
annotationId: string | null;
|
|
621
|
+
conversationId: string | null;
|
|
534
622
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
535
623
|
uploadUrl: string | null;
|
|
536
624
|
uploadExpiresAt: Date | null;
|
|
@@ -540,33 +628,47 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
|
|
|
540
628
|
uploadRetryCount: number;
|
|
541
629
|
isOrphaned: boolean;
|
|
542
630
|
cleanupAt: Date | null;
|
|
543
|
-
thumbnailId: string | null;
|
|
544
|
-
assignmentId: string | null;
|
|
545
|
-
submissionId: string | null;
|
|
546
|
-
annotationId: string | null;
|
|
547
631
|
classDraftId: string | null;
|
|
548
|
-
|
|
632
|
+
folderId: string | null;
|
|
549
633
|
messageId: string | null;
|
|
550
634
|
announcementId: string | null;
|
|
551
635
|
discussionId: string | null;
|
|
552
636
|
discussionReplyId: string | null;
|
|
553
637
|
schoolDevelopementProgramId: string | null;
|
|
554
|
-
}) | null
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
638
|
+
}) | null>;
|
|
639
|
+
/** @returns Folder by ID with class. */
|
|
640
|
+
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 & {
|
|
641
|
+
result: {
|
|
642
|
+
userProfile: {
|
|
643
|
+
profilePicture: () => {
|
|
644
|
+
needs: {
|
|
645
|
+
profilePicture: true;
|
|
646
|
+
};
|
|
647
|
+
compute(profile: {
|
|
648
|
+
profilePicture: string | null;
|
|
649
|
+
}): string | null;
|
|
650
|
+
};
|
|
651
|
+
profilePictureThumbnail: () => {
|
|
652
|
+
needs: {
|
|
653
|
+
profilePictureThumbnail: true;
|
|
654
|
+
};
|
|
655
|
+
compute(profile: {
|
|
656
|
+
profilePictureThumbnail: string | null;
|
|
657
|
+
}): string | null;
|
|
658
|
+
};
|
|
558
659
|
};
|
|
559
660
|
};
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
|
|
661
|
+
model: {};
|
|
662
|
+
query: {};
|
|
663
|
+
client: {};
|
|
664
|
+
}, {}>, "Folder", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
563
665
|
class: {
|
|
564
|
-
|
|
666
|
+
section: string;
|
|
565
667
|
id: string;
|
|
668
|
+
name: string;
|
|
566
669
|
schoolId: string | null;
|
|
567
|
-
subject: string;
|
|
568
670
|
color: string | null;
|
|
569
|
-
|
|
671
|
+
subject: string;
|
|
570
672
|
syllabus: string | null;
|
|
571
673
|
departmentId: string | null;
|
|
572
674
|
discussionsEnabled: boolean;
|
|
@@ -574,23 +676,41 @@ export declare function findFolderById(folderId: string): import(".prisma/client
|
|
|
574
676
|
studentsCanReply: boolean;
|
|
575
677
|
} | null;
|
|
576
678
|
} & {
|
|
577
|
-
name: string;
|
|
578
679
|
id: string;
|
|
680
|
+
name: string;
|
|
681
|
+
scope: import(".prisma/client").$Enums.FolderScope;
|
|
682
|
+
parentFolderId: string | null;
|
|
579
683
|
color: string | null;
|
|
580
684
|
classId: string | null;
|
|
581
685
|
schoolStorageId: string | null;
|
|
582
686
|
personalOwnerId: string | null;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
687
|
+
}) | null>;
|
|
688
|
+
/** Move file to a folder. */
|
|
689
|
+
export declare function updateFileFolder(fileId: string, folderId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
690
|
+
result: {
|
|
691
|
+
userProfile: {
|
|
692
|
+
profilePicture: () => {
|
|
693
|
+
needs: {
|
|
694
|
+
profilePicture: true;
|
|
695
|
+
};
|
|
696
|
+
compute(profile: {
|
|
697
|
+
profilePicture: string | null;
|
|
698
|
+
}): string | null;
|
|
699
|
+
};
|
|
700
|
+
profilePictureThumbnail: () => {
|
|
701
|
+
needs: {
|
|
702
|
+
profilePictureThumbnail: true;
|
|
703
|
+
};
|
|
704
|
+
compute(profile: {
|
|
705
|
+
profilePictureThumbnail: string | null;
|
|
706
|
+
}): string | null;
|
|
707
|
+
};
|
|
589
708
|
};
|
|
590
709
|
};
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
|
|
710
|
+
model: {};
|
|
711
|
+
query: {};
|
|
712
|
+
client: {};
|
|
713
|
+
}, {}>, "File", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
594
714
|
user: {
|
|
595
715
|
id: string;
|
|
596
716
|
username: string;
|
|
@@ -598,12 +718,16 @@ export declare function updateFileFolder(fileId: string, folderId: string): impo
|
|
|
598
718
|
} & {
|
|
599
719
|
path: string;
|
|
600
720
|
type: string;
|
|
601
|
-
name: string;
|
|
602
721
|
id: string;
|
|
603
722
|
userId: string | null;
|
|
604
|
-
|
|
723
|
+
name: string;
|
|
605
724
|
size: number | null;
|
|
606
725
|
uploadedAt: Date | null;
|
|
726
|
+
assignmentId: string | null;
|
|
727
|
+
submissionId: string | null;
|
|
728
|
+
thumbnailId: string | null;
|
|
729
|
+
annotationId: string | null;
|
|
730
|
+
conversationId: string | null;
|
|
607
731
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
608
732
|
uploadUrl: string | null;
|
|
609
733
|
uploadExpiresAt: Date | null;
|
|
@@ -613,26 +737,40 @@ export declare function updateFileFolder(fileId: string, folderId: string): impo
|
|
|
613
737
|
uploadRetryCount: number;
|
|
614
738
|
isOrphaned: boolean;
|
|
615
739
|
cleanupAt: Date | null;
|
|
616
|
-
thumbnailId: string | null;
|
|
617
|
-
assignmentId: string | null;
|
|
618
|
-
submissionId: string | null;
|
|
619
|
-
annotationId: string | null;
|
|
620
740
|
classDraftId: string | null;
|
|
621
|
-
|
|
741
|
+
folderId: string | null;
|
|
622
742
|
messageId: string | null;
|
|
623
743
|
announcementId: string | null;
|
|
624
744
|
discussionId: string | null;
|
|
625
745
|
discussionReplyId: string | null;
|
|
626
746
|
schoolDevelopementProgramId: string | null;
|
|
627
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
628
|
-
datasources: {
|
|
629
|
-
db: {
|
|
630
|
-
url: string;
|
|
631
|
-
};
|
|
632
|
-
};
|
|
633
747
|
}>;
|
|
634
748
|
/** Rename a file. */
|
|
635
|
-
export declare function updateFileName(fileId: string, name: string): import(".prisma/client").Prisma.
|
|
749
|
+
export declare function updateFileName(fileId: string, name: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
750
|
+
result: {
|
|
751
|
+
userProfile: {
|
|
752
|
+
profilePicture: () => {
|
|
753
|
+
needs: {
|
|
754
|
+
profilePicture: true;
|
|
755
|
+
};
|
|
756
|
+
compute(profile: {
|
|
757
|
+
profilePicture: string | null;
|
|
758
|
+
}): string | null;
|
|
759
|
+
};
|
|
760
|
+
profilePictureThumbnail: () => {
|
|
761
|
+
needs: {
|
|
762
|
+
profilePictureThumbnail: true;
|
|
763
|
+
};
|
|
764
|
+
compute(profile: {
|
|
765
|
+
profilePictureThumbnail: string | null;
|
|
766
|
+
}): string | null;
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
model: {};
|
|
771
|
+
query: {};
|
|
772
|
+
client: {};
|
|
773
|
+
}, {}>, "File", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
636
774
|
user: {
|
|
637
775
|
id: string;
|
|
638
776
|
username: string;
|
|
@@ -640,12 +778,16 @@ export declare function updateFileName(fileId: string, name: string): import(".p
|
|
|
640
778
|
} & {
|
|
641
779
|
path: string;
|
|
642
780
|
type: string;
|
|
643
|
-
name: string;
|
|
644
781
|
id: string;
|
|
645
782
|
userId: string | null;
|
|
646
|
-
|
|
783
|
+
name: string;
|
|
647
784
|
size: number | null;
|
|
648
785
|
uploadedAt: Date | null;
|
|
786
|
+
assignmentId: string | null;
|
|
787
|
+
submissionId: string | null;
|
|
788
|
+
thumbnailId: string | null;
|
|
789
|
+
annotationId: string | null;
|
|
790
|
+
conversationId: string | null;
|
|
649
791
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
650
792
|
uploadUrl: string | null;
|
|
651
793
|
uploadExpiresAt: Date | null;
|
|
@@ -655,34 +797,52 @@ export declare function updateFileName(fileId: string, name: string): import(".p
|
|
|
655
797
|
uploadRetryCount: number;
|
|
656
798
|
isOrphaned: boolean;
|
|
657
799
|
cleanupAt: Date | null;
|
|
658
|
-
thumbnailId: string | null;
|
|
659
|
-
assignmentId: string | null;
|
|
660
|
-
submissionId: string | null;
|
|
661
|
-
annotationId: string | null;
|
|
662
800
|
classDraftId: string | null;
|
|
663
|
-
|
|
801
|
+
folderId: string | null;
|
|
664
802
|
messageId: string | null;
|
|
665
803
|
announcementId: string | null;
|
|
666
804
|
discussionId: string | null;
|
|
667
805
|
discussionReplyId: string | null;
|
|
668
806
|
schoolDevelopementProgramId: string | null;
|
|
669
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
670
|
-
datasources: {
|
|
671
|
-
db: {
|
|
672
|
-
url: string;
|
|
673
|
-
};
|
|
674
|
-
};
|
|
675
807
|
}>;
|
|
676
808
|
/** Delete a file record. */
|
|
677
|
-
export declare function deleteFileById(fileId: string): import(".prisma/client").Prisma.
|
|
809
|
+
export declare function deleteFileById(fileId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
810
|
+
result: {
|
|
811
|
+
userProfile: {
|
|
812
|
+
profilePicture: () => {
|
|
813
|
+
needs: {
|
|
814
|
+
profilePicture: true;
|
|
815
|
+
};
|
|
816
|
+
compute(profile: {
|
|
817
|
+
profilePicture: string | null;
|
|
818
|
+
}): string | null;
|
|
819
|
+
};
|
|
820
|
+
profilePictureThumbnail: () => {
|
|
821
|
+
needs: {
|
|
822
|
+
profilePictureThumbnail: true;
|
|
823
|
+
};
|
|
824
|
+
compute(profile: {
|
|
825
|
+
profilePictureThumbnail: string | null;
|
|
826
|
+
}): string | null;
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
model: {};
|
|
831
|
+
query: {};
|
|
832
|
+
client: {};
|
|
833
|
+
}, {}>, "File", "delete", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
678
834
|
path: string;
|
|
679
835
|
type: string;
|
|
680
|
-
name: string;
|
|
681
836
|
id: string;
|
|
682
837
|
userId: string | null;
|
|
683
|
-
|
|
838
|
+
name: string;
|
|
684
839
|
size: number | null;
|
|
685
840
|
uploadedAt: Date | null;
|
|
841
|
+
assignmentId: string | null;
|
|
842
|
+
submissionId: string | null;
|
|
843
|
+
thumbnailId: string | null;
|
|
844
|
+
annotationId: string | null;
|
|
845
|
+
conversationId: string | null;
|
|
686
846
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
687
847
|
uploadUrl: string | null;
|
|
688
848
|
uploadExpiresAt: Date | null;
|
|
@@ -692,22 +852,12 @@ export declare function deleteFileById(fileId: string): import(".prisma/client")
|
|
|
692
852
|
uploadRetryCount: number;
|
|
693
853
|
isOrphaned: boolean;
|
|
694
854
|
cleanupAt: Date | null;
|
|
695
|
-
thumbnailId: string | null;
|
|
696
|
-
assignmentId: string | null;
|
|
697
|
-
submissionId: string | null;
|
|
698
|
-
annotationId: string | null;
|
|
699
855
|
classDraftId: string | null;
|
|
700
|
-
|
|
856
|
+
folderId: string | null;
|
|
701
857
|
messageId: string | null;
|
|
702
858
|
announcementId: string | null;
|
|
703
859
|
discussionId: string | null;
|
|
704
860
|
discussionReplyId: string | null;
|
|
705
861
|
schoolDevelopementProgramId: string | null;
|
|
706
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
707
|
-
datasources: {
|
|
708
|
-
db: {
|
|
709
|
-
url: string;
|
|
710
|
-
};
|
|
711
|
-
};
|
|
712
862
|
}>;
|
|
713
863
|
//# sourceMappingURL=file.d.ts.map
|