@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
package/dist/models/comment.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const commentSelect: {
|
|
|
5
5
|
readonly assignmentId: true;
|
|
6
6
|
readonly submissionId: true;
|
|
7
7
|
readonly parentCommentId: true;
|
|
8
|
+
readonly isPinned: true;
|
|
8
9
|
readonly createdAt: true;
|
|
9
10
|
readonly modifiedAt: true;
|
|
10
11
|
readonly author: {
|
|
@@ -40,63 +41,83 @@ export declare const commentSelect: {
|
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
/** @returns Comment by ID with author and reactions. */
|
|
43
|
-
export declare function findCommentById(id: string): import(".prisma/client").Prisma.
|
|
44
|
+
export declare function findCommentById(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
45
|
+
result: {
|
|
46
|
+
userProfile: {
|
|
47
|
+
profilePicture: () => {
|
|
48
|
+
needs: {
|
|
49
|
+
profilePicture: true;
|
|
50
|
+
};
|
|
51
|
+
compute(profile: {
|
|
52
|
+
profilePicture: string | null;
|
|
53
|
+
}): string | null;
|
|
54
|
+
};
|
|
55
|
+
profilePictureThumbnail: () => {
|
|
56
|
+
needs: {
|
|
57
|
+
profilePictureThumbnail: true;
|
|
58
|
+
};
|
|
59
|
+
compute(profile: {
|
|
60
|
+
profilePictureThumbnail: string | null;
|
|
61
|
+
}): string | null;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
model: {};
|
|
66
|
+
query: {};
|
|
67
|
+
client: {};
|
|
68
|
+
}, {}>, "Comment", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
44
69
|
id: string;
|
|
45
70
|
createdAt: Date;
|
|
46
|
-
assignmentId: string | null;
|
|
47
|
-
submissionId: string | null;
|
|
48
|
-
announcementId: string | null;
|
|
49
71
|
reactions: {
|
|
50
72
|
type: import(".prisma/client").$Enums.ReactionType;
|
|
51
73
|
user: {
|
|
52
74
|
id: string;
|
|
53
75
|
username: string;
|
|
54
76
|
profile: {
|
|
55
|
-
displayName: string | null;
|
|
56
77
|
profilePicture: string | null;
|
|
78
|
+
displayName: string | null;
|
|
57
79
|
profilePictureThumbnail: string | null;
|
|
58
80
|
} | null;
|
|
59
81
|
};
|
|
60
82
|
}[];
|
|
61
|
-
modifiedAt: Date | null;
|
|
62
83
|
content: string;
|
|
63
|
-
|
|
84
|
+
assignmentId: string | null;
|
|
85
|
+
submissionId: string | null;
|
|
86
|
+
modifiedAt: Date | null;
|
|
87
|
+
announcementId: string | null;
|
|
88
|
+
isPinned: boolean;
|
|
64
89
|
author: {
|
|
65
90
|
id: string;
|
|
66
91
|
username: string;
|
|
67
92
|
profile: {
|
|
68
|
-
displayName: string | null;
|
|
69
93
|
profilePicture: string | null;
|
|
94
|
+
displayName: string | null;
|
|
70
95
|
profilePictureThumbnail: string | null;
|
|
71
96
|
} | null;
|
|
72
97
|
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
db: {
|
|
76
|
-
url: string;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
}>;
|
|
98
|
+
parentCommentId: string | null;
|
|
99
|
+
} | null>;
|
|
80
100
|
/** @returns Replies to a comment. */
|
|
81
|
-
export declare function findRepliesByCommentId(commentId: string): import("
|
|
101
|
+
export declare function findRepliesByCommentId(commentId: string): import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
82
102
|
author: {
|
|
83
103
|
id: string;
|
|
84
104
|
username: string;
|
|
85
105
|
profile: {
|
|
86
|
-
displayName: string | null;
|
|
87
106
|
profilePicture: string | null;
|
|
107
|
+
displayName: string | null;
|
|
88
108
|
profilePictureThumbnail: string | null;
|
|
89
109
|
} | null;
|
|
90
110
|
};
|
|
91
111
|
} & {
|
|
92
112
|
id: string;
|
|
93
113
|
createdAt: Date;
|
|
114
|
+
content: string;
|
|
94
115
|
assignmentId: string | null;
|
|
95
116
|
submissionId: string | null;
|
|
96
|
-
announcementId: string | null;
|
|
97
117
|
modifiedAt: Date | null;
|
|
98
|
-
|
|
118
|
+
announcementId: string | null;
|
|
99
119
|
authorId: string;
|
|
120
|
+
isPinned: boolean;
|
|
100
121
|
parentCommentId: string | null;
|
|
101
122
|
studentQuestionProgressId: string | null;
|
|
102
123
|
})[]>;
|
|
@@ -109,114 +130,230 @@ export declare function createComment(data: {
|
|
|
109
130
|
assignmentId?: string | null;
|
|
110
131
|
submissionId?: string | null;
|
|
111
132
|
studentQuestionProgressId?: string | null;
|
|
112
|
-
}): import(".prisma/client").Prisma.
|
|
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
|
+
}, {}>, "Comment", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
113
158
|
id: string;
|
|
114
159
|
createdAt: Date;
|
|
160
|
+
content: string;
|
|
115
161
|
assignmentId: string | null;
|
|
116
162
|
submissionId: string | null;
|
|
117
|
-
announcementId: string | null;
|
|
118
163
|
modifiedAt: Date | null;
|
|
119
|
-
|
|
164
|
+
announcementId: string | null;
|
|
120
165
|
authorId: string;
|
|
166
|
+
isPinned: boolean;
|
|
121
167
|
parentCommentId: string | null;
|
|
122
168
|
studentQuestionProgressId: string | null;
|
|
123
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
124
|
-
datasources: {
|
|
125
|
-
db: {
|
|
126
|
-
url: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
169
|
}>;
|
|
130
170
|
/** @returns User's reaction on a comment. */
|
|
131
|
-
export declare function findReactionByUserAndComment(userId: string, commentId: string): import(".prisma/client").Prisma.
|
|
171
|
+
export declare function findReactionByUserAndComment(userId: string, commentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
172
|
+
result: {
|
|
173
|
+
userProfile: {
|
|
174
|
+
profilePicture: () => {
|
|
175
|
+
needs: {
|
|
176
|
+
profilePicture: true;
|
|
177
|
+
};
|
|
178
|
+
compute(profile: {
|
|
179
|
+
profilePicture: string | null;
|
|
180
|
+
}): string | null;
|
|
181
|
+
};
|
|
182
|
+
profilePictureThumbnail: () => {
|
|
183
|
+
needs: {
|
|
184
|
+
profilePictureThumbnail: true;
|
|
185
|
+
};
|
|
186
|
+
compute(profile: {
|
|
187
|
+
profilePictureThumbnail: string | null;
|
|
188
|
+
}): string | null;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
model: {};
|
|
193
|
+
query: {};
|
|
194
|
+
client: {};
|
|
195
|
+
}, {}>, "Reaction", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
132
196
|
type: import(".prisma/client").$Enums.ReactionType;
|
|
133
197
|
id: string;
|
|
134
|
-
createdAt: Date;
|
|
135
198
|
userId: string;
|
|
199
|
+
createdAt: Date;
|
|
136
200
|
announcementId: string | null;
|
|
137
201
|
discussionId: string | null;
|
|
138
202
|
discussionReplyId: string | null;
|
|
139
203
|
commentId: string | null;
|
|
140
|
-
} | null
|
|
141
|
-
datasources: {
|
|
142
|
-
db: {
|
|
143
|
-
url: string;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
}>;
|
|
204
|
+
} | null>;
|
|
147
205
|
/** Add or update reaction on a comment. */
|
|
148
206
|
export declare function upsertReaction(data: {
|
|
149
207
|
userId: string;
|
|
150
208
|
commentId: string;
|
|
151
209
|
type: string;
|
|
152
|
-
}): import(".prisma/client").Prisma.
|
|
210
|
+
}): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
211
|
+
result: {
|
|
212
|
+
userProfile: {
|
|
213
|
+
profilePicture: () => {
|
|
214
|
+
needs: {
|
|
215
|
+
profilePicture: true;
|
|
216
|
+
};
|
|
217
|
+
compute(profile: {
|
|
218
|
+
profilePicture: string | null;
|
|
219
|
+
}): string | null;
|
|
220
|
+
};
|
|
221
|
+
profilePictureThumbnail: () => {
|
|
222
|
+
needs: {
|
|
223
|
+
profilePictureThumbnail: true;
|
|
224
|
+
};
|
|
225
|
+
compute(profile: {
|
|
226
|
+
profilePictureThumbnail: string | null;
|
|
227
|
+
}): string | null;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
model: {};
|
|
232
|
+
query: {};
|
|
233
|
+
client: {};
|
|
234
|
+
}, {}>, "Reaction", "upsert", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
153
235
|
user: {
|
|
154
236
|
id: string;
|
|
155
237
|
username: string;
|
|
156
238
|
profile: {
|
|
157
|
-
displayName: string | null;
|
|
158
239
|
profilePicture: string | null;
|
|
240
|
+
displayName: string | null;
|
|
159
241
|
profilePictureThumbnail: string | null;
|
|
160
242
|
} | null;
|
|
161
243
|
};
|
|
162
244
|
} & {
|
|
163
245
|
type: import(".prisma/client").$Enums.ReactionType;
|
|
164
246
|
id: string;
|
|
165
|
-
createdAt: Date;
|
|
166
247
|
userId: string;
|
|
248
|
+
createdAt: Date;
|
|
167
249
|
announcementId: string | null;
|
|
168
250
|
discussionId: string | null;
|
|
169
251
|
discussionReplyId: string | null;
|
|
170
252
|
commentId: string | null;
|
|
171
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
172
|
-
datasources: {
|
|
173
|
-
db: {
|
|
174
|
-
url: string;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
253
|
}>;
|
|
178
254
|
/** Delete a reaction. */
|
|
179
|
-
export declare function deleteReactionById(id: string): import(".prisma/client").Prisma.
|
|
255
|
+
export declare function deleteReactionById(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
256
|
+
result: {
|
|
257
|
+
userProfile: {
|
|
258
|
+
profilePicture: () => {
|
|
259
|
+
needs: {
|
|
260
|
+
profilePicture: true;
|
|
261
|
+
};
|
|
262
|
+
compute(profile: {
|
|
263
|
+
profilePicture: string | null;
|
|
264
|
+
}): string | null;
|
|
265
|
+
};
|
|
266
|
+
profilePictureThumbnail: () => {
|
|
267
|
+
needs: {
|
|
268
|
+
profilePictureThumbnail: true;
|
|
269
|
+
};
|
|
270
|
+
compute(profile: {
|
|
271
|
+
profilePictureThumbnail: string | null;
|
|
272
|
+
}): string | null;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
model: {};
|
|
277
|
+
query: {};
|
|
278
|
+
client: {};
|
|
279
|
+
}, {}>, "Reaction", "delete", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
180
280
|
type: import(".prisma/client").$Enums.ReactionType;
|
|
181
281
|
id: string;
|
|
182
|
-
createdAt: Date;
|
|
183
282
|
userId: string;
|
|
283
|
+
createdAt: Date;
|
|
184
284
|
announcementId: string | null;
|
|
185
285
|
discussionId: string | null;
|
|
186
286
|
discussionReplyId: string | null;
|
|
187
287
|
commentId: string | null;
|
|
188
|
-
}, never, import("@prisma/client/runtime/library.js").DefaultArgs, {
|
|
189
|
-
datasources: {
|
|
190
|
-
db: {
|
|
191
|
-
url: string;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
288
|
}>;
|
|
195
289
|
/** @returns Comment with announcement classId. */
|
|
196
|
-
export declare function findCommentWithAnnouncement(commentId: string): import(".prisma/client").Prisma.
|
|
290
|
+
export declare function findCommentWithAnnouncement(commentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
291
|
+
result: {
|
|
292
|
+
userProfile: {
|
|
293
|
+
profilePicture: () => {
|
|
294
|
+
needs: {
|
|
295
|
+
profilePicture: true;
|
|
296
|
+
};
|
|
297
|
+
compute(profile: {
|
|
298
|
+
profilePicture: string | null;
|
|
299
|
+
}): string | null;
|
|
300
|
+
};
|
|
301
|
+
profilePictureThumbnail: () => {
|
|
302
|
+
needs: {
|
|
303
|
+
profilePictureThumbnail: true;
|
|
304
|
+
};
|
|
305
|
+
compute(profile: {
|
|
306
|
+
profilePictureThumbnail: string | null;
|
|
307
|
+
}): string | null;
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
model: {};
|
|
312
|
+
query: {};
|
|
313
|
+
client: {};
|
|
314
|
+
}, {}>, "Comment", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
197
315
|
announcement: {
|
|
198
316
|
classId: string;
|
|
199
317
|
} | null;
|
|
200
318
|
} & {
|
|
201
319
|
id: string;
|
|
202
320
|
createdAt: Date;
|
|
321
|
+
content: string;
|
|
203
322
|
assignmentId: string | null;
|
|
204
323
|
submissionId: string | null;
|
|
205
|
-
announcementId: string | null;
|
|
206
324
|
modifiedAt: Date | null;
|
|
207
|
-
|
|
325
|
+
announcementId: string | null;
|
|
208
326
|
authorId: string;
|
|
327
|
+
isPinned: boolean;
|
|
209
328
|
parentCommentId: string | null;
|
|
210
329
|
studentQuestionProgressId: string | null;
|
|
211
|
-
}) | null
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
330
|
+
}) | null>;
|
|
331
|
+
/** @returns Comment with the owning class context for authorization. */
|
|
332
|
+
export declare function findCommentWithContext(commentId: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
333
|
+
result: {
|
|
334
|
+
userProfile: {
|
|
335
|
+
profilePicture: () => {
|
|
336
|
+
needs: {
|
|
337
|
+
profilePicture: true;
|
|
338
|
+
};
|
|
339
|
+
compute(profile: {
|
|
340
|
+
profilePicture: string | null;
|
|
341
|
+
}): string | null;
|
|
342
|
+
};
|
|
343
|
+
profilePictureThumbnail: () => {
|
|
344
|
+
needs: {
|
|
345
|
+
profilePictureThumbnail: true;
|
|
346
|
+
};
|
|
347
|
+
compute(profile: {
|
|
348
|
+
profilePictureThumbnail: string | null;
|
|
349
|
+
}): string | null;
|
|
350
|
+
};
|
|
215
351
|
};
|
|
216
352
|
};
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
353
|
+
model: {};
|
|
354
|
+
query: {};
|
|
355
|
+
client: {};
|
|
356
|
+
}, {}>, "Comment", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<({
|
|
220
357
|
assignment: {
|
|
221
358
|
class: {
|
|
222
359
|
school: {
|
|
@@ -233,6 +370,22 @@ export declare function findCommentWithContext(commentId: string): import(".pris
|
|
|
233
370
|
}[];
|
|
234
371
|
};
|
|
235
372
|
} | null;
|
|
373
|
+
announcement: {
|
|
374
|
+
class: {
|
|
375
|
+
school: {
|
|
376
|
+
memberships: {
|
|
377
|
+
userId: string;
|
|
378
|
+
}[];
|
|
379
|
+
} | null;
|
|
380
|
+
id: string;
|
|
381
|
+
teachers: {
|
|
382
|
+
id: string;
|
|
383
|
+
}[];
|
|
384
|
+
students: {
|
|
385
|
+
id: string;
|
|
386
|
+
}[];
|
|
387
|
+
};
|
|
388
|
+
} | null;
|
|
236
389
|
submission: {
|
|
237
390
|
assignment: {
|
|
238
391
|
class: {
|
|
@@ -252,24 +405,7 @@ export declare function findCommentWithContext(commentId: string): import(".pris
|
|
|
252
405
|
};
|
|
253
406
|
studentId: string;
|
|
254
407
|
} | null;
|
|
255
|
-
announcement: {
|
|
256
|
-
class: {
|
|
257
|
-
school: {
|
|
258
|
-
memberships: {
|
|
259
|
-
userId: string;
|
|
260
|
-
}[];
|
|
261
|
-
} | null;
|
|
262
|
-
id: string;
|
|
263
|
-
teachers: {
|
|
264
|
-
id: string;
|
|
265
|
-
}[];
|
|
266
|
-
students: {
|
|
267
|
-
id: string;
|
|
268
|
-
}[];
|
|
269
|
-
};
|
|
270
|
-
} | null;
|
|
271
408
|
studentQuestionProgress: {
|
|
272
|
-
studentId: string;
|
|
273
409
|
studentWorksheetResponse: {
|
|
274
410
|
submission: {
|
|
275
411
|
assignment: {
|
|
@@ -291,6 +427,7 @@ export declare function findCommentWithContext(commentId: string): import(".pris
|
|
|
291
427
|
studentId: string;
|
|
292
428
|
} | null;
|
|
293
429
|
} | null;
|
|
430
|
+
studentId: string;
|
|
294
431
|
} | null;
|
|
295
432
|
parentComment: ({
|
|
296
433
|
assignment: {
|
|
@@ -309,6 +446,22 @@ export declare function findCommentWithContext(commentId: string): import(".pris
|
|
|
309
446
|
}[];
|
|
310
447
|
};
|
|
311
448
|
} | null;
|
|
449
|
+
announcement: {
|
|
450
|
+
class: {
|
|
451
|
+
school: {
|
|
452
|
+
memberships: {
|
|
453
|
+
userId: string;
|
|
454
|
+
}[];
|
|
455
|
+
} | null;
|
|
456
|
+
id: string;
|
|
457
|
+
teachers: {
|
|
458
|
+
id: string;
|
|
459
|
+
}[];
|
|
460
|
+
students: {
|
|
461
|
+
id: string;
|
|
462
|
+
}[];
|
|
463
|
+
};
|
|
464
|
+
} | null;
|
|
312
465
|
submission: {
|
|
313
466
|
assignment: {
|
|
314
467
|
class: {
|
|
@@ -328,24 +481,7 @@ export declare function findCommentWithContext(commentId: string): import(".pris
|
|
|
328
481
|
};
|
|
329
482
|
studentId: string;
|
|
330
483
|
} | null;
|
|
331
|
-
announcement: {
|
|
332
|
-
class: {
|
|
333
|
-
school: {
|
|
334
|
-
memberships: {
|
|
335
|
-
userId: string;
|
|
336
|
-
}[];
|
|
337
|
-
} | null;
|
|
338
|
-
id: string;
|
|
339
|
-
teachers: {
|
|
340
|
-
id: string;
|
|
341
|
-
}[];
|
|
342
|
-
students: {
|
|
343
|
-
id: string;
|
|
344
|
-
}[];
|
|
345
|
-
};
|
|
346
|
-
} | null;
|
|
347
484
|
studentQuestionProgress: {
|
|
348
|
-
studentId: string;
|
|
349
485
|
studentWorksheetResponse: {
|
|
350
486
|
submission: {
|
|
351
487
|
assignment: {
|
|
@@ -367,39 +503,60 @@ export declare function findCommentWithContext(commentId: string): import(".pris
|
|
|
367
503
|
studentId: string;
|
|
368
504
|
} | null;
|
|
369
505
|
} | null;
|
|
506
|
+
studentId: string;
|
|
370
507
|
} | null;
|
|
371
508
|
} & {
|
|
372
509
|
id: string;
|
|
373
510
|
createdAt: Date;
|
|
511
|
+
content: string;
|
|
374
512
|
assignmentId: string | null;
|
|
375
513
|
submissionId: string | null;
|
|
376
|
-
announcementId: string | null;
|
|
377
514
|
modifiedAt: Date | null;
|
|
378
|
-
|
|
515
|
+
announcementId: string | null;
|
|
379
516
|
authorId: string;
|
|
517
|
+
isPinned: boolean;
|
|
380
518
|
parentCommentId: string | null;
|
|
381
519
|
studentQuestionProgressId: string | null;
|
|
382
520
|
}) | null;
|
|
383
521
|
} & {
|
|
384
522
|
id: string;
|
|
385
523
|
createdAt: Date;
|
|
524
|
+
content: string;
|
|
386
525
|
assignmentId: string | null;
|
|
387
526
|
submissionId: string | null;
|
|
388
|
-
announcementId: string | null;
|
|
389
527
|
modifiedAt: Date | null;
|
|
390
|
-
|
|
528
|
+
announcementId: string | null;
|
|
391
529
|
authorId: string;
|
|
530
|
+
isPinned: boolean;
|
|
392
531
|
parentCommentId: string | null;
|
|
393
532
|
studentQuestionProgressId: string | null;
|
|
394
|
-
}) | null
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
533
|
+
}) | null>;
|
|
534
|
+
/** @returns Reaction counts by type for a comment. */
|
|
535
|
+
export declare function getReactionCountsByCommentId(commentId: string): import("@prisma/client/runtime/library.js").PrismaPromise<(import("@prisma/client/runtime/library.js").GetAggregateResult<import(".prisma/client").Prisma.$ReactionPayload<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
536
|
+
result: {
|
|
537
|
+
userProfile: {
|
|
538
|
+
profilePicture: () => {
|
|
539
|
+
needs: {
|
|
540
|
+
profilePicture: true;
|
|
541
|
+
};
|
|
542
|
+
compute(profile: {
|
|
543
|
+
profilePicture: string | null;
|
|
544
|
+
}): string | null;
|
|
545
|
+
};
|
|
546
|
+
profilePictureThumbnail: () => {
|
|
547
|
+
needs: {
|
|
548
|
+
profilePictureThumbnail: true;
|
|
549
|
+
};
|
|
550
|
+
compute(profile: {
|
|
551
|
+
profilePictureThumbnail: string | null;
|
|
552
|
+
}): string | null;
|
|
553
|
+
};
|
|
398
554
|
};
|
|
399
555
|
};
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
|
|
556
|
+
model: {};
|
|
557
|
+
query: {};
|
|
558
|
+
client: {};
|
|
559
|
+
}>, {
|
|
403
560
|
by: "type"[];
|
|
404
561
|
where: {
|
|
405
562
|
commentId: string;
|
|
@@ -407,5 +564,7 @@ export declare function getReactionCountsByCommentId(commentId: string): import(
|
|
|
407
564
|
_count: {
|
|
408
565
|
type: true;
|
|
409
566
|
};
|
|
410
|
-
}
|
|
567
|
+
}> & {
|
|
568
|
+
type: import(".prisma/client").$Enums.ReactionType;
|
|
569
|
+
})[]>;
|
|
411
570
|
//# sourceMappingURL=comment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.d.ts","sourceRoot":"/","sources":["models/comment.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"comment.d.ts","sourceRoot":"/","sources":["models/comment.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyChB,CAAC;AAmBX,wDAAwD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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAwGvD;AAED,sDAAsD;AACtD,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAM7D"}
|
package/dist/models/comment.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Comment model – comments, replies, and reactions.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
5
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6bc45608-cd32-5d3e-ae63-a06b1f3dacef")}catch(e){}}();
|
|
6
6
|
import { prisma } from "../lib/prisma.js";
|
|
7
7
|
export const commentSelect = {
|
|
8
8
|
id: true,
|
|
@@ -11,6 +11,7 @@ export const commentSelect = {
|
|
|
11
11
|
assignmentId: true,
|
|
12
12
|
submissionId: true,
|
|
13
13
|
parentCommentId: true,
|
|
14
|
+
isPinned: true,
|
|
14
15
|
createdAt: true,
|
|
15
16
|
modifiedAt: true,
|
|
16
17
|
author: {
|
|
@@ -261,4 +262,4 @@ export function getReactionCountsByCommentId(commentId) {
|
|
|
261
262
|
});
|
|
262
263
|
}
|
|
263
264
|
//# sourceMappingURL=comment.js.map
|
|
264
|
-
//# debugId=
|
|
265
|
+
//# debugId=6bc45608-cd32-5d3e-ae63-a06b1f3dacef
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.js","sources":["models/comment.ts"],"sourceRoot":"/","sourcesContent":["/**\n * Comment model – comments, replies, and reactions.\n */\nimport { prisma } from \"../lib/prisma.js\";\nimport type { ReactionType } from \"@prisma/client\";\n\nexport const commentSelect = {\n id: true,\n content: true,\n announcementId: true,\n assignmentId: true,\n submissionId: true,\n parentCommentId: true,\n createdAt: true,\n modifiedAt: true,\n author: {\n select: {\n id: true,\n username: true,\n profile: {\n select: {\n displayName: true,\n profilePicture: true,\n profilePictureThumbnail: true,\n },\n },\n },\n },\n reactions: {\n select: {\n type: true,\n user: {\n select: {\n id: true,\n username: true,\n profile: {\n select: {\n displayName: true,\n profilePicture: true,\n profilePictureThumbnail: true,\n },\n },\n },\n },\n },\n },\n} as const;\n\nconst commentClassAuthSelect = {\n id: true,\n teachers: { select: { id: true } },\n students: { select: { id: true } },\n school: {\n select: {\n memberships: {\n where: {\n role: \"ADMIN\" as const,\n status: \"ACTIVE\" as const,\n },\n select: { userId: true },\n },\n },\n },\n} as const;\n\n/** @returns Comment by ID with author and reactions. */\nexport function findCommentById(id: string) {\n return prisma.comment.findUnique({\n where: { id },\n select: commentSelect,\n });\n}\n\n/** @returns Replies to a comment. */\nexport function findRepliesByCommentId(commentId: string) {\n return prisma.comment.findMany({\n where: { parentCommentId: commentId },\n include: {\n author: {\n select: {\n id: true,\n username: true,\n profile: {\n select: {\n displayName: true,\n profilePicture: true,\n profilePictureThumbnail: true,\n },\n },\n },\n },\n },\n });\n}\n\n/** Create a comment (reply). */\nexport function createComment(data: {\n parentCommentId: string;\n content: string;\n authorId: string;\n announcementId?: string | null;\n assignmentId?: string | null;\n submissionId?: string | null;\n studentQuestionProgressId?: string | null;\n}) {\n return prisma.comment.create({\n data,\n });\n}\n\n/** @returns User's reaction on a comment. */\nexport function findReactionByUserAndComment(userId: string, commentId: string) {\n return prisma.reaction.findUnique({\n where: {\n userId_commentId: { userId, commentId },\n },\n });\n}\n\n/** Add or update reaction on a comment. */\nexport function upsertReaction(data: {\n userId: string;\n commentId: string;\n type: string;\n}) {\n return prisma.reaction.upsert({\n where: {\n userId_commentId: {\n userId: data.userId,\n commentId: data.commentId,\n },\n },\n update: { type: data.type as ReactionType },\n create: { ...data, type: data.type as ReactionType },\n include: {\n user: {\n select: {\n id: true,\n username: true,\n profile: {\n select: {\n displayName: true,\n profilePicture: true,\n profilePictureThumbnail: true,\n },\n },\n },\n },\n },\n });\n}\n\n/** Delete a reaction. */\nexport function deleteReactionById(id: string) {\n return prisma.reaction.delete({\n where: { id },\n });\n}\n\n/** @returns Comment with announcement classId. */\nexport function findCommentWithAnnouncement(commentId: string) {\n return prisma.comment.findUnique({\n where: { id: commentId },\n include: {\n announcement: { select: { classId: true } },\n },\n });\n}\n\n/** @returns Comment with the owning class context for authorization. */\nexport function findCommentWithContext(commentId: string) {\n return prisma.comment.findUnique({\n where: { id: commentId },\n include: {\n announcement: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n submission: {\n select: {\n studentId: true,\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n },\n },\n studentQuestionProgress: {\n select: {\n studentId: true,\n studentWorksheetResponse: {\n select: {\n submission: {\n select: {\n studentId: true,\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n parentComment: {\n include: {\n announcement: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n submission: {\n select: {\n studentId: true,\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n },\n },\n studentQuestionProgress: {\n select: {\n studentId: true,\n studentWorksheetResponse: {\n select: {\n submission: {\n select: {\n studentId: true,\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n });\n}\n\n/** @returns Reaction counts by type for a comment. */\nexport function getReactionCountsByCommentId(commentId: string) {\n return prisma.reaction.groupBy({\n by: [\"type\"],\n where: { commentId },\n _count: { type: true },\n });\n}\n"],"names":[],"mappings":"AAAA;;GAEG;;;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,IAAI;IACb,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE;QACN,MAAM,EAAE;YACN,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,MAAM,EAAE;oBACN,WAAW,EAAE,IAAI;oBACjB,cAAc,EAAE,IAAI;oBACpB,uBAAuB,EAAE,IAAI;iBAC9B;aACF;SACF;KACF;IACD,SAAS,EAAE;QACT,MAAM,EAAE;YACN,IAAI,EAAE,IAAI;YACV,IAAI,EAAE;gBACJ,MAAM,EAAE;oBACN,EAAE,EAAE,IAAI;oBACR,QAAQ,EAAE,IAAI;oBACd,OAAO,EAAE;wBACP,MAAM,EAAE;4BACN,WAAW,EAAE,IAAI;4BACjB,cAAc,EAAE,IAAI;4BACpB,uBAAuB,EAAE,IAAI;yBAC9B;qBACF;iBACF;aACF;SACF;KACF;CACO,CAAC;AAEX,MAAM,sBAAsB,GAAG;IAC7B,EAAE,EAAE,IAAI;IACR,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;IAClC,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,EA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gDACV,MAAM,EAAE;oDACN,KAAK,EAAE;wDACL,MAAM,EAAE,sBAAsB;qDAC/B;iDACF;6CACF;yCACF;qCACF;iCACF;6BACF;yBACF;qBACF;iBACF;aACF;SACF;KACF,CAAC,CAAC;AACL,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,4BAA4B,CAAC,SAAiB;IAC5D,OAAO,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC7B,EAAE,EAAE,CAAC,MAAM,CAAC;QACZ,KAAK,EAAE,EAAE,SAAS,EAAE;QACpB,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;KACvB,CAAC,CAAC;AACL,CAAC","debug_id":"8dbc1c18-53a6-535e-8af0-25c781796a36"}
|
|
1
|
+
{"version":3,"file":"comment.js","sources":["models/comment.ts"],"sourceRoot":"/","sourcesContent":["/**\n * Comment model – comments, replies, and reactions.\n */\nimport { prisma } from \"../lib/prisma.js\";\nimport type { ReactionType } from \"@prisma/client\";\n\nexport const commentSelect = {\n id: true,\n content: true,\n announcementId: true,\n assignmentId: true,\n submissionId: true,\n parentCommentId: true,\n isPinned: true,\n createdAt: true,\n modifiedAt: true,\n author: {\n select: {\n id: true,\n username: true,\n profile: {\n select: {\n displayName: true,\n profilePicture: true,\n profilePictureThumbnail: true,\n },\n },\n },\n },\n reactions: {\n select: {\n type: true,\n user: {\n select: {\n id: true,\n username: true,\n profile: {\n select: {\n displayName: true,\n profilePicture: true,\n profilePictureThumbnail: true,\n },\n },\n },\n },\n },\n },\n} as const;\n\nconst commentClassAuthSelect = {\n id: true,\n teachers: { select: { id: true } },\n students: { select: { id: true } },\n school: {\n select: {\n memberships: {\n where: {\n role: \"ADMIN\" as const,\n status: \"ACTIVE\" as const,\n },\n select: { userId: true },\n },\n },\n },\n} as const;\n\n/** @returns Comment by ID with author and reactions. */\nexport function findCommentById(id: string) {\n return prisma.comment.findUnique({\n where: { id },\n select: commentSelect,\n });\n}\n\n/** @returns Replies to a comment. */\nexport function findRepliesByCommentId(commentId: string) {\n return prisma.comment.findMany({\n where: { parentCommentId: commentId },\n include: {\n author: {\n select: {\n id: true,\n username: true,\n profile: {\n select: {\n displayName: true,\n profilePicture: true,\n profilePictureThumbnail: true,\n },\n },\n },\n },\n },\n });\n}\n\n/** Create a comment (reply). */\nexport function createComment(data: {\n parentCommentId: string;\n content: string;\n authorId: string;\n announcementId?: string | null;\n assignmentId?: string | null;\n submissionId?: string | null;\n studentQuestionProgressId?: string | null;\n}) {\n return prisma.comment.create({\n data,\n });\n}\n\n/** @returns User's reaction on a comment. */\nexport function findReactionByUserAndComment(userId: string, commentId: string) {\n return prisma.reaction.findUnique({\n where: {\n userId_commentId: { userId, commentId },\n },\n });\n}\n\n/** Add or update reaction on a comment. */\nexport function upsertReaction(data: {\n userId: string;\n commentId: string;\n type: string;\n}) {\n return prisma.reaction.upsert({\n where: {\n userId_commentId: {\n userId: data.userId,\n commentId: data.commentId,\n },\n },\n update: { type: data.type as ReactionType },\n create: { ...data, type: data.type as ReactionType },\n include: {\n user: {\n select: {\n id: true,\n username: true,\n profile: {\n select: {\n displayName: true,\n profilePicture: true,\n profilePictureThumbnail: true,\n },\n },\n },\n },\n },\n });\n}\n\n/** Delete a reaction. */\nexport function deleteReactionById(id: string) {\n return prisma.reaction.delete({\n where: { id },\n });\n}\n\n/** @returns Comment with announcement classId. */\nexport function findCommentWithAnnouncement(commentId: string) {\n return prisma.comment.findUnique({\n where: { id: commentId },\n include: {\n announcement: { select: { classId: true } },\n },\n });\n}\n\n/** @returns Comment with the owning class context for authorization. */\nexport function findCommentWithContext(commentId: string) {\n return prisma.comment.findUnique({\n where: { id: commentId },\n include: {\n announcement: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n submission: {\n select: {\n studentId: true,\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n },\n },\n studentQuestionProgress: {\n select: {\n studentId: true,\n studentWorksheetResponse: {\n select: {\n submission: {\n select: {\n studentId: true,\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n parentComment: {\n include: {\n announcement: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n submission: {\n select: {\n studentId: true,\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n },\n },\n studentQuestionProgress: {\n select: {\n studentId: true,\n studentWorksheetResponse: {\n select: {\n submission: {\n select: {\n studentId: true,\n assignment: {\n select: {\n class: {\n select: commentClassAuthSelect,\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n },\n });\n}\n\n/** @returns Reaction counts by type for a comment. */\nexport function getReactionCountsByCommentId(commentId: string) {\n return prisma.reaction.groupBy({\n by: [\"type\"],\n where: { commentId },\n _count: { type: true },\n });\n}\n"],"names":[],"mappings":"AAAA;;GAEG;;;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,IAAI;IACb,cAAc,EAAE,IAAI;IACpB,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE,IAAI;IAClB,eAAe,EAAE,IAAI;IACrB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE;QACN,MAAM,EAAE;YACN,EAAE,EAAE,IAAI;YACR,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,MAAM,EAAE;oBACN,WAAW,EAAE,IAAI;oBACjB,cAAc,EAAE,IAAI;oBACpB,uBAAuB,EAAE,IAAI;iBAC9B;aACF;SACF;KACF;IACD,SAAS,EAAE;QACT,MAAM,EAAE;YACN,IAAI,EAAE,IAAI;YACV,IAAI,EAAE;gBACJ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