@studious-lms/server 1.12.0 → 1.14.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/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/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 +177 -69
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +551 -353
- 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 +348 -114
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/class.d.ts +324 -188
- package/dist/models/class.d.ts.map +1 -1
- package/dist/models/class.js +9 -3
- 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 +269 -110
- package/dist/models/comment.d.ts.map +1 -1
- package/dist/models/comment.js +3 -2
- package/dist/models/comment.js.map +1 -1
- package/dist/models/conversation.d.ts +206 -63
- package/dist/models/conversation.d.ts.map +1 -1
- package/dist/models/conversation.js +13 -2
- package/dist/models/conversation.js.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 +287 -125
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +389 -263
- 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 +209 -83
- package/dist/models/labChat.d.ts.map +1 -1
- package/dist/models/marketing.d.ts +80 -26
- package/dist/models/marketing.d.ts.map +1 -1
- package/dist/models/message.d.ts +95 -41
- package/dist/models/message.d.ts.map +1 -1
- package/dist/models/newtonChat.d.ts +83 -29
- package/dist/models/newtonChat.d.ts.map +1 -1
- package/dist/models/notification.d.ts +61 -25
- 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 +1023 -410
- package/dist/models/worksheet.d.ts.map +1 -1
- package/dist/models/worksheet.js +19 -7
- package/dist/models/worksheet.js.map +1 -1
- package/dist/pipelines/aiLabChat.d.ts +0 -8
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +50 -67
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +393 -388
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
- package/dist/pipelines/aiLabChatContract.js +63 -69
- 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/gradeWorksheet.d.ts.map +1 -1
- package/dist/pipelines/gradeWorksheet.js +59 -14
- package/dist/pipelines/gradeWorksheet.js.map +1 -1
- package/dist/pipelines/labChatPrompt.d.ts +10 -8
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +47 -67
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/pipelines/pdfToWorksheet.d.ts +2 -2
- package/dist/routers/_app.d.ts +2268 -1898
- 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 +32 -28
- package/dist/routers/announcement.d.ts.map +1 -1
- package/dist/routers/announcement.js +6 -5
- package/dist/routers/announcement.js.map +1 -1
- package/dist/routers/assignment.d.ts +335 -327
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +4 -4
- package/dist/routers/assignment.js.map +1 -1
- package/dist/routers/attendance.d.ts +10 -10
- package/dist/routers/auth.d.ts +2 -2
- package/dist/routers/class.d.ts +170 -147
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +40 -16
- package/dist/routers/comment.d.ts.map +1 -1
- package/dist/routers/comment.js +6 -3
- package/dist/routers/comment.js.map +1 -1
- package/dist/routers/conversation.d.ts +17 -17
- package/dist/routers/department.d.ts +34 -34
- package/dist/routers/discussion.d.ts +65 -53
- 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 +69 -0
- package/dist/routers/embedding.d.ts.map +1 -0
- package/dist/routers/embedding.js +143 -0
- package/dist/routers/embedding.js.map +1 -0
- package/dist/routers/event.d.ts +39 -39
- package/dist/routers/file.d.ts +12 -12
- package/dist/routers/folder.d.ts +38 -38
- package/dist/routers/labChat.d.ts +19 -19
- package/dist/routers/marketing.d.ts +2 -2
- package/dist/routers/message.d.ts +13 -13
- package/dist/routers/newtonChat.d.ts +4 -4
- package/dist/routers/notifications.d.ts +9 -9
- package/dist/routers/permissions.d.ts +14 -14
- package/dist/routers/school.d.ts +55 -55
- 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 +10 -10
- package/dist/routers/worksheet.d.ts +97 -56
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/routers/worksheet.js +28 -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 +696 -0
- package/dist/routes/aiStream.js.map +1 -0
- package/dist/seedDatabase.d.ts +2 -2
- 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 +68 -0
- package/dist/services/aiChatStream.d.ts.map +1 -0
- package/dist/services/aiChatStream.js +157 -0
- package/dist/services/aiChatStream.js.map +1 -0
- package/dist/services/aiModifierTools.d.ts +32 -0
- package/dist/services/aiModifierTools.d.ts.map +1 -0
- package/dist/services/aiModifierTools.js +165 -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 +12 -12
- 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 +293 -293
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +36 -15
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/attendance.d.ts +10 -10
- package/dist/services/auth.d.ts +2 -2
- package/dist/services/class.d.ts +161 -138
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +25 -4
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +34 -16
- package/dist/services/comment.d.ts.map +1 -1
- package/dist/services/comment.js +23 -2
- package/dist/services/comment.js.map +1 -1
- package/dist/services/conversation.d.ts +17 -17
- package/dist/services/conversation.d.ts.map +1 -1
- package/dist/services/conversation.js +9 -7
- package/dist/services/conversation.js.map +1 -1
- 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 +8 -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 +67 -0
- package/dist/services/embedding.d.ts.map +1 -0
- package/dist/services/embedding.js +226 -0
- package/dist/services/embedding.js.map +1 -0
- package/dist/services/event.d.ts +37 -37
- package/dist/services/file.d.ts +24 -24
- package/dist/services/folder.d.ts +36 -36
- package/dist/services/labChat.d.ts +19 -19
- package/dist/services/marketing.d.ts +2 -2
- 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 +9 -9
- package/dist/services/notification.d.ts.map +1 -1
- package/dist/services/permissions.d.ts +14 -14
- package/dist/services/school.d.ts +50 -50
- package/dist/services/search.d.ts +12 -0
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +120 -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/worksheet.d.ts +62 -47
- package/dist/services/worksheet.d.ts.map +1 -1
- package/dist/services/worksheet.js +11 -4
- package/dist/services/worksheet.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 +76 -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/schema.prisma +39 -7
- package/src/index.ts +4 -0
- 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/prisma.ts +40 -1
- package/src/models/class.ts +10 -3
- package/src/models/comment.ts +1 -0
- package/src/models/conversation.ts +12 -0
- package/src/models/worksheet.ts +16 -7
- package/src/pipelines/aiLabChat.ts +54 -79
- package/src/pipelines/aiLabChatContract.ts +69 -69
- package/src/pipelines/aiNewtonChat.ts +46 -43
- package/src/pipelines/gradeWorksheet.ts +66 -15
- package/src/pipelines/labChatPrompt.ts +63 -88
- package/src/routers/_app.ts +2 -0
- package/src/routers/announcement.ts +4 -3
- package/src/routers/assignment.ts +2 -2
- package/src/routers/comment.ts +5 -0
- package/src/routers/discussion.ts +7 -0
- package/src/routers/embedding.ts +159 -0
- package/src/routers/search.ts +10 -1
- package/src/routers/worksheet.ts +29 -0
- package/src/routes/aiStream.ts +789 -0
- package/src/seedDatabase.ts +4 -4
- package/src/services/aiChatStream.ts +219 -0
- package/src/services/aiModifierTools.ts +188 -0
- package/src/services/aiProposalTools.ts +272 -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 +36 -14
- package/src/services/class.ts +30 -2
- package/src/services/comment.ts +22 -0
- package/src/services/conversation.ts +9 -4
- package/src/services/discussion.ts +9 -8
- package/src/services/discussionSummary.ts +226 -0
- package/src/services/embedding.ts +285 -0
- package/src/services/message.ts +2 -2
- package/src/services/search.ts +138 -0
- package/src/services/user.ts +9 -17
- package/src/services/worksheet.ts +10 -2
- 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 +90 -0
- package/src/workers/queues.ts +5 -1
- package/tests/integration/routers/conversation.test.ts +9 -7
- package/tests/unit/pipelines/aiLabChatContract.test.ts +38 -21
- package/tests/unit/pipelines/labChatPrompt.test.ts +23 -36
- 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
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
export declare function listDepartmentsForSchool(schoolId: string): import("
|
|
2
|
-
name: string;
|
|
1
|
+
export declare function listDepartmentsForSchool(schoolId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
3
2
|
id: string;
|
|
4
|
-
description: string | null;
|
|
5
3
|
createdAt: Date;
|
|
6
4
|
updatedAt: Date;
|
|
5
|
+
name: string;
|
|
7
6
|
schoolId: string;
|
|
8
|
-
color: string | null;
|
|
9
7
|
_count: {
|
|
10
8
|
tags: number;
|
|
11
9
|
classes: number;
|
|
@@ -13,142 +11,270 @@ export declare function listDepartmentsForSchool(schoolId: string): import(".pri
|
|
|
13
11
|
rubricTemplates: number;
|
|
14
12
|
boundaryTemplates: number;
|
|
15
13
|
};
|
|
14
|
+
description: string | null;
|
|
15
|
+
color: string | null;
|
|
16
16
|
}[]>;
|
|
17
|
-
export declare function listDepartmentsForUser(userId: string, schoolId: string): import("
|
|
18
|
-
name: string;
|
|
17
|
+
export declare function listDepartmentsForUser(userId: string, schoolId: string): import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
19
18
|
id: string;
|
|
20
|
-
description: string | null;
|
|
21
19
|
createdAt: Date;
|
|
22
20
|
updatedAt: Date;
|
|
21
|
+
name: string;
|
|
23
22
|
schoolId: string;
|
|
23
|
+
description: string | null;
|
|
24
24
|
color: string | null;
|
|
25
25
|
}[]>;
|
|
26
|
-
export declare function getDepartment(departmentId: string): import(".prisma/client").Prisma.
|
|
27
|
-
|
|
26
|
+
export declare function getDepartment(departmentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
27
|
+
result: {
|
|
28
|
+
userProfile: {
|
|
29
|
+
profilePicture: () => {
|
|
30
|
+
needs: {
|
|
31
|
+
profilePicture: true;
|
|
32
|
+
};
|
|
33
|
+
compute(profile: {
|
|
34
|
+
profilePicture: string | null;
|
|
35
|
+
}): string | null;
|
|
36
|
+
};
|
|
37
|
+
profilePictureThumbnail: () => {
|
|
38
|
+
needs: {
|
|
39
|
+
profilePictureThumbnail: true;
|
|
40
|
+
};
|
|
41
|
+
compute(profile: {
|
|
42
|
+
profilePictureThumbnail: string | null;
|
|
43
|
+
}): string | null;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
model: {};
|
|
48
|
+
query: {};
|
|
49
|
+
client: {};
|
|
50
|
+
}, {}>, "Department", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
28
51
|
id: string;
|
|
29
|
-
description: string | null;
|
|
30
52
|
createdAt: Date;
|
|
31
53
|
updatedAt: Date;
|
|
54
|
+
name: string;
|
|
32
55
|
schoolId: string;
|
|
33
|
-
color: string | null;
|
|
34
56
|
tags: {
|
|
35
|
-
name: string;
|
|
36
57
|
id: string;
|
|
58
|
+
name: string;
|
|
37
59
|
color: string;
|
|
38
60
|
}[];
|
|
61
|
+
description: string | null;
|
|
39
62
|
classes: {
|
|
40
|
-
|
|
63
|
+
section: string;
|
|
41
64
|
id: string;
|
|
42
|
-
|
|
65
|
+
name: string;
|
|
43
66
|
color: string | null;
|
|
44
|
-
|
|
67
|
+
subject: string;
|
|
45
68
|
}[];
|
|
69
|
+
color: string | null;
|
|
46
70
|
members: {
|
|
47
71
|
id: string;
|
|
48
72
|
username: string;
|
|
49
73
|
email: string;
|
|
50
74
|
profile: {
|
|
51
|
-
displayName: string | null;
|
|
52
75
|
profilePicture: string | null;
|
|
76
|
+
displayName: string | null;
|
|
53
77
|
profilePictureThumbnail: string | null;
|
|
54
78
|
} | null;
|
|
55
79
|
}[];
|
|
56
80
|
rubricTemplates: {
|
|
57
|
-
name: string | null;
|
|
58
81
|
id: string;
|
|
82
|
+
name: string | null;
|
|
59
83
|
structured: string;
|
|
60
84
|
}[];
|
|
61
85
|
boundaryTemplates: {
|
|
62
|
-
name: string | null;
|
|
63
86
|
id: string;
|
|
87
|
+
name: string | null;
|
|
64
88
|
structured: string;
|
|
65
89
|
}[];
|
|
66
|
-
} | null
|
|
67
|
-
datasources: {
|
|
68
|
-
db: {
|
|
69
|
-
url: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
}>;
|
|
90
|
+
} | null>;
|
|
73
91
|
export declare function createDepartment(data: {
|
|
74
92
|
schoolId: string;
|
|
75
93
|
name: string;
|
|
76
94
|
description?: string;
|
|
77
95
|
color?: string;
|
|
78
|
-
}): import(".prisma/client").Prisma.
|
|
79
|
-
|
|
96
|
+
}): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
97
|
+
result: {
|
|
98
|
+
userProfile: {
|
|
99
|
+
profilePicture: () => {
|
|
100
|
+
needs: {
|
|
101
|
+
profilePicture: true;
|
|
102
|
+
};
|
|
103
|
+
compute(profile: {
|
|
104
|
+
profilePicture: string | null;
|
|
105
|
+
}): string | null;
|
|
106
|
+
};
|
|
107
|
+
profilePictureThumbnail: () => {
|
|
108
|
+
needs: {
|
|
109
|
+
profilePictureThumbnail: true;
|
|
110
|
+
};
|
|
111
|
+
compute(profile: {
|
|
112
|
+
profilePictureThumbnail: string | null;
|
|
113
|
+
}): string | null;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
model: {};
|
|
118
|
+
query: {};
|
|
119
|
+
client: {};
|
|
120
|
+
}, {}>, "Department", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
80
121
|
id: string;
|
|
81
|
-
description: string | null;
|
|
82
122
|
createdAt: Date;
|
|
83
123
|
updatedAt: Date;
|
|
124
|
+
name: string;
|
|
84
125
|
schoolId: string;
|
|
126
|
+
description: string | null;
|
|
85
127
|
color: string | null;
|
|
86
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
87
|
-
datasources: {
|
|
88
|
-
db: {
|
|
89
|
-
url: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
128
|
}>;
|
|
93
129
|
export declare function updateDepartment(departmentId: string, data: {
|
|
94
130
|
name?: string;
|
|
95
131
|
description?: string | null;
|
|
96
132
|
color?: string;
|
|
97
|
-
}): import(".prisma/client").Prisma.
|
|
98
|
-
|
|
133
|
+
}): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
134
|
+
result: {
|
|
135
|
+
userProfile: {
|
|
136
|
+
profilePicture: () => {
|
|
137
|
+
needs: {
|
|
138
|
+
profilePicture: true;
|
|
139
|
+
};
|
|
140
|
+
compute(profile: {
|
|
141
|
+
profilePicture: string | null;
|
|
142
|
+
}): string | null;
|
|
143
|
+
};
|
|
144
|
+
profilePictureThumbnail: () => {
|
|
145
|
+
needs: {
|
|
146
|
+
profilePictureThumbnail: true;
|
|
147
|
+
};
|
|
148
|
+
compute(profile: {
|
|
149
|
+
profilePictureThumbnail: string | null;
|
|
150
|
+
}): string | null;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
model: {};
|
|
155
|
+
query: {};
|
|
156
|
+
client: {};
|
|
157
|
+
}, {}>, "Department", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
99
158
|
id: string;
|
|
100
|
-
description: string | null;
|
|
101
159
|
createdAt: Date;
|
|
102
160
|
updatedAt: Date;
|
|
161
|
+
name: string;
|
|
103
162
|
schoolId: string;
|
|
163
|
+
description: string | null;
|
|
104
164
|
color: string | null;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
165
|
+
}>;
|
|
166
|
+
export declare function deleteDepartment(departmentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
167
|
+
result: {
|
|
168
|
+
userProfile: {
|
|
169
|
+
profilePicture: () => {
|
|
170
|
+
needs: {
|
|
171
|
+
profilePicture: true;
|
|
172
|
+
};
|
|
173
|
+
compute(profile: {
|
|
174
|
+
profilePicture: string | null;
|
|
175
|
+
}): string | null;
|
|
176
|
+
};
|
|
177
|
+
profilePictureThumbnail: () => {
|
|
178
|
+
needs: {
|
|
179
|
+
profilePictureThumbnail: true;
|
|
180
|
+
};
|
|
181
|
+
compute(profile: {
|
|
182
|
+
profilePictureThumbnail: string | null;
|
|
183
|
+
}): string | null;
|
|
184
|
+
};
|
|
109
185
|
};
|
|
110
186
|
};
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
187
|
+
model: {};
|
|
188
|
+
query: {};
|
|
189
|
+
client: {};
|
|
190
|
+
}, {}>, "Department", "delete", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
114
191
|
id: string;
|
|
115
|
-
description: string | null;
|
|
116
192
|
createdAt: Date;
|
|
117
193
|
updatedAt: Date;
|
|
194
|
+
name: string;
|
|
118
195
|
schoolId: string;
|
|
196
|
+
description: string | null;
|
|
119
197
|
color: string | null;
|
|
120
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
121
|
-
datasources: {
|
|
122
|
-
db: {
|
|
123
|
-
url: string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
198
|
}>;
|
|
127
|
-
export declare function addDepartmentMembers(departmentId: string, userIds: string[]): import(".prisma/client").Prisma.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
199
|
+
export declare function addDepartmentMembers(departmentId: string, userIds: string[]): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
200
|
+
result: {
|
|
201
|
+
userProfile: {
|
|
202
|
+
profilePicture: () => {
|
|
203
|
+
needs: {
|
|
204
|
+
profilePicture: true;
|
|
205
|
+
};
|
|
206
|
+
compute(profile: {
|
|
207
|
+
profilePicture: string | null;
|
|
208
|
+
}): string | null;
|
|
209
|
+
};
|
|
210
|
+
profilePictureThumbnail: () => {
|
|
211
|
+
needs: {
|
|
212
|
+
profilePictureThumbnail: true;
|
|
213
|
+
};
|
|
214
|
+
compute(profile: {
|
|
215
|
+
profilePictureThumbnail: string | null;
|
|
216
|
+
}): string | null;
|
|
217
|
+
};
|
|
133
218
|
};
|
|
134
219
|
};
|
|
135
|
-
}
|
|
136
|
-
|
|
220
|
+
model: {};
|
|
221
|
+
query: {};
|
|
222
|
+
client: {};
|
|
223
|
+
}, {}>, "Department", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
137
224
|
id: string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
225
|
+
}>;
|
|
226
|
+
export declare function removeDepartmentMember(departmentId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
227
|
+
result: {
|
|
228
|
+
userProfile: {
|
|
229
|
+
profilePicture: () => {
|
|
230
|
+
needs: {
|
|
231
|
+
profilePicture: true;
|
|
232
|
+
};
|
|
233
|
+
compute(profile: {
|
|
234
|
+
profilePicture: string | null;
|
|
235
|
+
}): string | null;
|
|
236
|
+
};
|
|
237
|
+
profilePictureThumbnail: () => {
|
|
238
|
+
needs: {
|
|
239
|
+
profilePictureThumbnail: true;
|
|
240
|
+
};
|
|
241
|
+
compute(profile: {
|
|
242
|
+
profilePictureThumbnail: string | null;
|
|
243
|
+
}): string | null;
|
|
244
|
+
};
|
|
142
245
|
};
|
|
143
246
|
};
|
|
144
|
-
}
|
|
145
|
-
|
|
247
|
+
model: {};
|
|
248
|
+
query: {};
|
|
249
|
+
client: {};
|
|
250
|
+
}, {}>, "Department", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
146
251
|
id: string;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
252
|
+
}>;
|
|
253
|
+
export declare function findDepartmentMembership(departmentId: string, userId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
254
|
+
result: {
|
|
255
|
+
userProfile: {
|
|
256
|
+
profilePicture: () => {
|
|
257
|
+
needs: {
|
|
258
|
+
profilePicture: true;
|
|
259
|
+
};
|
|
260
|
+
compute(profile: {
|
|
261
|
+
profilePicture: string | null;
|
|
262
|
+
}): string | null;
|
|
263
|
+
};
|
|
264
|
+
profilePictureThumbnail: () => {
|
|
265
|
+
needs: {
|
|
266
|
+
profilePictureThumbnail: true;
|
|
267
|
+
};
|
|
268
|
+
compute(profile: {
|
|
269
|
+
profilePictureThumbnail: string | null;
|
|
270
|
+
}): string | null;
|
|
271
|
+
};
|
|
151
272
|
};
|
|
152
273
|
};
|
|
153
|
-
}
|
|
274
|
+
model: {};
|
|
275
|
+
query: {};
|
|
276
|
+
client: {};
|
|
277
|
+
}, {}>, "Department", "findFirst", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
278
|
+
id: string;
|
|
279
|
+
} | null>;
|
|
154
280
|
//# sourceMappingURL=department.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"department.d.ts","sourceRoot":"/","sources":["models/department.ts"],"names":[],"mappings":"AAgCA,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;KAiBxD;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;KAStE;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"department.d.ts","sourceRoot":"/","sources":["models/department.ts"],"names":[],"mappings":"AAgCA,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;KAiBxD;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;;;;;;;;KAStE;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA0BjD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUA;AAED,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOrE;AAED,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIpD;AAED,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;GASlB;AAED,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;GASf;AAED,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;UAMf"}
|