@studious-lms/server 1.1.24 → 1.2.26
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/dist/lib/fileUpload.d.ts +2 -2
- package/dist/lib/fileUpload.d.ts.map +1 -1
- package/dist/lib/fileUpload.js +76 -14
- package/dist/lib/googleCloudStorage.d.ts +7 -0
- package/dist/lib/googleCloudStorage.d.ts.map +1 -1
- package/dist/lib/googleCloudStorage.js +19 -0
- package/dist/lib/notificationHandler.d.ts +25 -0
- package/dist/lib/notificationHandler.d.ts.map +1 -0
- package/dist/lib/notificationHandler.js +28 -0
- package/dist/routers/_app.d.ts +818 -78
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/announcement.d.ts +290 -3
- package/dist/routers/announcement.d.ts.map +1 -1
- package/dist/routers/announcement.js +896 -10
- package/dist/routers/assignment.d.ts +70 -4
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +265 -131
- package/dist/routers/auth.js +1 -1
- package/dist/routers/file.d.ts +2 -0
- package/dist/routers/file.d.ts.map +1 -1
- package/dist/routers/file.js +9 -6
- package/dist/routers/labChat.d.ts.map +1 -1
- package/dist/routers/labChat.js +13 -5
- package/dist/routers/notifications.d.ts +8 -8
- package/dist/routers/section.d.ts +16 -0
- package/dist/routers/section.d.ts.map +1 -1
- package/dist/routers/section.js +139 -30
- package/dist/seedDatabase.d.ts +2 -2
- package/dist/seedDatabase.d.ts.map +1 -1
- package/dist/seedDatabase.js +2 -1
- package/dist/utils/logger.d.ts +1 -0
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +27 -2
- package/package.json +2 -2
- package/prisma/migrations/20251109122857_annuoncements_comments/migration.sql +30 -0
- package/prisma/migrations/20251109135555_reactions_announcements_comments/migration.sql +35 -0
- package/prisma/schema.prisma +50 -0
- package/src/lib/fileUpload.ts +79 -14
- package/src/lib/googleCloudStorage.ts +19 -0
- package/src/lib/notificationHandler.ts +36 -0
- package/src/routers/announcement.ts +1007 -10
- package/src/routers/assignment.ts +230 -82
- package/src/routers/auth.ts +1 -1
- package/src/routers/file.ts +10 -7
- package/src/routers/labChat.ts +15 -6
- package/src/routers/section.ts +158 -36
- package/src/seedDatabase.ts +2 -1
- package/src/utils/logger.ts +29 -2
- package/tests/setup.ts +3 -9
|
@@ -17,6 +17,37 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
17
17
|
};
|
|
18
18
|
transformer: false;
|
|
19
19
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
20
|
+
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
21
|
+
input: {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
classId: string;
|
|
24
|
+
movedId: string;
|
|
25
|
+
position: "start" | "end" | "before" | "after";
|
|
26
|
+
targetId?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
output: {
|
|
29
|
+
type: import(".prisma/client").$Enums.AssignmentType;
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
dueDate: Date;
|
|
33
|
+
maxGrade: number | null;
|
|
34
|
+
classId: string;
|
|
35
|
+
eventId: string | null;
|
|
36
|
+
markSchemeId: string | null;
|
|
37
|
+
gradingBoundaryId: string | null;
|
|
38
|
+
instructions: string;
|
|
39
|
+
weight: number;
|
|
40
|
+
graded: boolean;
|
|
41
|
+
sectionId: string | null;
|
|
42
|
+
template: boolean;
|
|
43
|
+
createdAt: Date | null;
|
|
44
|
+
modifiedAt: Date | null;
|
|
45
|
+
teacherId: string;
|
|
46
|
+
inProgress: boolean;
|
|
47
|
+
order: number | null;
|
|
48
|
+
} | null;
|
|
49
|
+
meta: object;
|
|
50
|
+
}>;
|
|
20
51
|
order: import("@trpc/server").TRPCMutationProcedure<{
|
|
21
52
|
input: {
|
|
22
53
|
[x: string]: unknown;
|
|
@@ -44,7 +75,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
44
75
|
teacherId: string;
|
|
45
76
|
inProgress: boolean;
|
|
46
77
|
order: number | null;
|
|
47
|
-
};
|
|
78
|
+
} | null;
|
|
48
79
|
meta: object;
|
|
49
80
|
}>;
|
|
50
81
|
move: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -52,7 +83,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
52
83
|
[x: string]: unknown;
|
|
53
84
|
classId: string;
|
|
54
85
|
id: string;
|
|
55
|
-
targetSectionId
|
|
86
|
+
targetSectionId?: string | null | undefined;
|
|
56
87
|
};
|
|
57
88
|
output: {
|
|
58
89
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
@@ -74,7 +105,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
74
105
|
teacherId: string;
|
|
75
106
|
inProgress: boolean;
|
|
76
107
|
order: number | null;
|
|
77
|
-
};
|
|
108
|
+
} | null;
|
|
78
109
|
meta: object;
|
|
79
110
|
}>;
|
|
80
111
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -222,6 +253,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
222
253
|
folderId: string | null;
|
|
223
254
|
conversationId: string | null;
|
|
224
255
|
messageId: string | null;
|
|
256
|
+
announcementId: string | null;
|
|
225
257
|
schoolDevelopementProgramId: string | null;
|
|
226
258
|
} | null;
|
|
227
259
|
thumbnailId: string | null;
|
|
@@ -389,6 +421,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
389
421
|
folderId: string | null;
|
|
390
422
|
conversationId: string | null;
|
|
391
423
|
messageId: string | null;
|
|
424
|
+
announcementId: string | null;
|
|
392
425
|
schoolDevelopementProgramId: string | null;
|
|
393
426
|
}[];
|
|
394
427
|
annotations: {
|
|
@@ -416,6 +449,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
416
449
|
folderId: string | null;
|
|
417
450
|
conversationId: string | null;
|
|
418
451
|
messageId: string | null;
|
|
452
|
+
announcementId: string | null;
|
|
419
453
|
schoolDevelopementProgramId: string | null;
|
|
420
454
|
}[];
|
|
421
455
|
} & {
|
|
@@ -474,6 +508,18 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
474
508
|
student: {
|
|
475
509
|
id: string;
|
|
476
510
|
username: string;
|
|
511
|
+
profile: {
|
|
512
|
+
id: string;
|
|
513
|
+
location: string | null;
|
|
514
|
+
userId: string;
|
|
515
|
+
createdAt: Date;
|
|
516
|
+
displayName: string | null;
|
|
517
|
+
bio: string | null;
|
|
518
|
+
website: string | null;
|
|
519
|
+
profilePicture: string | null;
|
|
520
|
+
profilePictureThumbnail: string | null;
|
|
521
|
+
updatedAt: Date;
|
|
522
|
+
} | null;
|
|
477
523
|
};
|
|
478
524
|
attachments: {
|
|
479
525
|
path: string;
|
|
@@ -500,6 +546,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
500
546
|
folderId: string | null;
|
|
501
547
|
conversationId: string | null;
|
|
502
548
|
messageId: string | null;
|
|
549
|
+
announcementId: string | null;
|
|
503
550
|
schoolDevelopementProgramId: string | null;
|
|
504
551
|
}[];
|
|
505
552
|
annotations: {
|
|
@@ -527,6 +574,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
527
574
|
folderId: string | null;
|
|
528
575
|
conversationId: string | null;
|
|
529
576
|
messageId: string | null;
|
|
577
|
+
announcementId: string | null;
|
|
530
578
|
schoolDevelopementProgramId: string | null;
|
|
531
579
|
}[];
|
|
532
580
|
id: string;
|
|
@@ -594,8 +642,16 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
594
642
|
id: string;
|
|
595
643
|
username: string;
|
|
596
644
|
profile: {
|
|
645
|
+
id: string;
|
|
646
|
+
location: string | null;
|
|
647
|
+
userId: string;
|
|
648
|
+
createdAt: Date;
|
|
597
649
|
displayName: string | null;
|
|
650
|
+
bio: string | null;
|
|
651
|
+
website: string | null;
|
|
598
652
|
profilePicture: string | null;
|
|
653
|
+
profilePictureThumbnail: string | null;
|
|
654
|
+
updatedAt: Date;
|
|
599
655
|
} | null;
|
|
600
656
|
};
|
|
601
657
|
attachments: {
|
|
@@ -623,6 +679,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
623
679
|
folderId: string | null;
|
|
624
680
|
conversationId: string | null;
|
|
625
681
|
messageId: string | null;
|
|
682
|
+
announcementId: string | null;
|
|
626
683
|
schoolDevelopementProgramId: string | null;
|
|
627
684
|
}[];
|
|
628
685
|
annotations: {
|
|
@@ -650,6 +707,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
650
707
|
folderId: string | null;
|
|
651
708
|
conversationId: string | null;
|
|
652
709
|
messageId: string | null;
|
|
710
|
+
announcementId: string | null;
|
|
653
711
|
schoolDevelopementProgramId: string | null;
|
|
654
712
|
}[];
|
|
655
713
|
id: string;
|
|
@@ -750,6 +808,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
750
808
|
folderId: string | null;
|
|
751
809
|
conversationId: string | null;
|
|
752
810
|
messageId: string | null;
|
|
811
|
+
announcementId: string | null;
|
|
753
812
|
schoolDevelopementProgramId: string | null;
|
|
754
813
|
}[];
|
|
755
814
|
} & {
|
|
@@ -849,6 +908,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
849
908
|
folderId: string | null;
|
|
850
909
|
conversationId: string | null;
|
|
851
910
|
messageId: string | null;
|
|
911
|
+
announcementId: string | null;
|
|
852
912
|
schoolDevelopementProgramId: string | null;
|
|
853
913
|
} | null;
|
|
854
914
|
} & {
|
|
@@ -876,6 +936,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
876
936
|
folderId: string | null;
|
|
877
937
|
conversationId: string | null;
|
|
878
938
|
messageId: string | null;
|
|
939
|
+
announcementId: string | null;
|
|
879
940
|
schoolDevelopementProgramId: string | null;
|
|
880
941
|
})[];
|
|
881
942
|
id: string;
|
|
@@ -909,10 +970,10 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
909
970
|
}[] | undefined;
|
|
910
971
|
return?: boolean | undefined;
|
|
911
972
|
rubricGrades?: {
|
|
973
|
+
comments: string;
|
|
912
974
|
criteriaId: string;
|
|
913
975
|
selectedLevelId: string;
|
|
914
976
|
points: number;
|
|
915
|
-
comments: string;
|
|
916
977
|
}[] | undefined;
|
|
917
978
|
};
|
|
918
979
|
output: {
|
|
@@ -989,6 +1050,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
989
1050
|
folderId: string | null;
|
|
990
1051
|
conversationId: string | null;
|
|
991
1052
|
messageId: string | null;
|
|
1053
|
+
announcementId: string | null;
|
|
992
1054
|
schoolDevelopementProgramId: string | null;
|
|
993
1055
|
}[];
|
|
994
1056
|
} & {
|
|
@@ -1193,6 +1255,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1193
1255
|
folderId: string | null;
|
|
1194
1256
|
conversationId: string | null;
|
|
1195
1257
|
messageId: string | null;
|
|
1258
|
+
announcementId: string | null;
|
|
1196
1259
|
schoolDevelopementProgramId: string | null;
|
|
1197
1260
|
}[];
|
|
1198
1261
|
eventAttached: {
|
|
@@ -1283,6 +1346,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1283
1346
|
folderId: string | null;
|
|
1284
1347
|
conversationId: string | null;
|
|
1285
1348
|
messageId: string | null;
|
|
1349
|
+
announcementId: string | null;
|
|
1286
1350
|
schoolDevelopementProgramId: string | null;
|
|
1287
1351
|
}[];
|
|
1288
1352
|
eventAttached: {
|
|
@@ -1374,6 +1438,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1374
1438
|
folderId: string | null;
|
|
1375
1439
|
conversationId: string | null;
|
|
1376
1440
|
messageId: string | null;
|
|
1441
|
+
announcementId: string | null;
|
|
1377
1442
|
schoolDevelopementProgramId: string | null;
|
|
1378
1443
|
}[];
|
|
1379
1444
|
eventAttached: {
|
|
@@ -1464,6 +1529,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1464
1529
|
folderId: string | null;
|
|
1465
1530
|
conversationId: string | null;
|
|
1466
1531
|
messageId: string | null;
|
|
1532
|
+
announcementId: string | null;
|
|
1467
1533
|
schoolDevelopementProgramId: string | null;
|
|
1468
1534
|
}[];
|
|
1469
1535
|
eventAttached: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;AAqKpJ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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