@studious-lms/server 1.1.26 → 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.
@@ -794,6 +794,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
794
794
  };
795
795
  output: {
796
796
  announcements: {
797
+ commentCount: number;
798
+ _count: undefined;
797
799
  id: string;
798
800
  remarks: string;
799
801
  teacher: {
@@ -801,15 +803,60 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
801
803
  username: string;
802
804
  };
803
805
  createdAt: Date;
806
+ modifiedAt: Date | null;
807
+ attachments: {
808
+ path: string;
809
+ type: string;
810
+ id: string;
811
+ name: string;
812
+ size: number | null;
813
+ uploadedAt: Date | null;
814
+ thumbnailId: string | null;
815
+ }[];
804
816
  }[];
805
817
  };
806
818
  meta: object;
807
819
  }>;
820
+ get: import("@trpc/server").TRPCQueryProcedure<{
821
+ input: {
822
+ [x: string]: unknown;
823
+ classId: string;
824
+ id: string;
825
+ };
826
+ output: {
827
+ announcement: {
828
+ id: string;
829
+ remarks: string;
830
+ teacher: {
831
+ id: string;
832
+ username: string;
833
+ };
834
+ createdAt: Date;
835
+ modifiedAt: Date | null;
836
+ attachments: {
837
+ path: string;
838
+ type: string;
839
+ id: string;
840
+ name: string;
841
+ size: number | null;
842
+ uploadedAt: Date | null;
843
+ thumbnailId: string | null;
844
+ }[];
845
+ };
846
+ };
847
+ meta: object;
848
+ }>;
808
849
  create: import("@trpc/server").TRPCMutationProcedure<{
809
850
  input: {
810
851
  [x: string]: unknown;
811
852
  classId: string;
812
853
  remarks: string;
854
+ files?: {
855
+ type: string;
856
+ name: string;
857
+ size: number;
858
+ }[] | undefined;
859
+ existingFileIds?: string[] | undefined;
813
860
  };
814
861
  output: {
815
862
  announcement: {
@@ -820,7 +867,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
820
867
  username: string;
821
868
  };
822
869
  createdAt: Date;
870
+ modifiedAt: Date | null;
871
+ attachments: {
872
+ path: string;
873
+ type: string;
874
+ id: string;
875
+ name: string;
876
+ size: number | null;
877
+ uploadedAt: Date | null;
878
+ thumbnailId: string | null;
879
+ }[];
823
880
  };
881
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
824
882
  };
825
883
  meta: object;
826
884
  }>;
@@ -828,17 +886,37 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
828
886
  input: {
829
887
  id: string;
830
888
  data: {
831
- content: string;
889
+ files?: {
890
+ type: string;
891
+ name: string;
892
+ size: number;
893
+ }[] | undefined;
894
+ remarks?: string | undefined;
895
+ existingFileIds?: string[] | undefined;
896
+ removedAttachments?: string[] | undefined;
832
897
  };
833
898
  };
834
899
  output: {
835
900
  announcement: {
836
901
  id: string;
837
902
  remarks: string;
838
- classId: string;
903
+ teacher: {
904
+ id: string;
905
+ username: string;
906
+ };
839
907
  createdAt: Date;
840
- teacherId: string;
908
+ modifiedAt: Date | null;
909
+ attachments: {
910
+ path: string;
911
+ type: string;
912
+ id: string;
913
+ name: string;
914
+ size: number | null;
915
+ uploadedAt: Date | null;
916
+ thumbnailId: string | null;
917
+ }[];
841
918
  };
919
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
842
920
  };
843
921
  meta: object;
844
922
  }>;
@@ -851,6 +929,214 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
851
929
  };
852
930
  meta: object;
853
931
  }>;
932
+ getAnnouncementUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
933
+ input: {
934
+ [x: string]: unknown;
935
+ classId: string;
936
+ files: {
937
+ type: string;
938
+ name: string;
939
+ size: number;
940
+ }[];
941
+ announcementId: string;
942
+ };
943
+ output: {
944
+ success: boolean;
945
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[];
946
+ };
947
+ meta: object;
948
+ }>;
949
+ confirmAnnouncementUpload: import("@trpc/server").TRPCMutationProcedure<{
950
+ input: {
951
+ [x: string]: unknown;
952
+ classId: string;
953
+ fileId: string;
954
+ uploadSuccess: boolean;
955
+ errorMessage?: string | undefined;
956
+ };
957
+ output: {
958
+ success: boolean;
959
+ message: string;
960
+ };
961
+ meta: object;
962
+ }>;
963
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
964
+ input: {
965
+ [x: string]: unknown;
966
+ classId: string;
967
+ content: string;
968
+ announcementId: string;
969
+ parentCommentId?: string | undefined;
970
+ };
971
+ output: {
972
+ comment: {
973
+ author: {
974
+ id: string;
975
+ username: string;
976
+ profile: {
977
+ displayName: string | null;
978
+ profilePicture: string | null;
979
+ profilePictureThumbnail: string | null;
980
+ } | null;
981
+ };
982
+ } & {
983
+ id: string;
984
+ content: string;
985
+ createdAt: Date;
986
+ modifiedAt: Date | null;
987
+ announcementId: string;
988
+ parentCommentId: string | null;
989
+ authorId: string;
990
+ };
991
+ };
992
+ meta: object;
993
+ }>;
994
+ updateComment: import("@trpc/server").TRPCMutationProcedure<{
995
+ input: {
996
+ id: string;
997
+ content: string;
998
+ };
999
+ output: {
1000
+ comment: {
1001
+ author: {
1002
+ id: string;
1003
+ username: string;
1004
+ profile: {
1005
+ displayName: string | null;
1006
+ profilePicture: string | null;
1007
+ profilePictureThumbnail: string | null;
1008
+ } | null;
1009
+ };
1010
+ } & {
1011
+ id: string;
1012
+ content: string;
1013
+ createdAt: Date;
1014
+ modifiedAt: Date | null;
1015
+ announcementId: string;
1016
+ parentCommentId: string | null;
1017
+ authorId: string;
1018
+ };
1019
+ };
1020
+ meta: object;
1021
+ }>;
1022
+ deleteComment: import("@trpc/server").TRPCMutationProcedure<{
1023
+ input: {
1024
+ id: string;
1025
+ };
1026
+ output: {
1027
+ success: boolean;
1028
+ };
1029
+ meta: object;
1030
+ }>;
1031
+ getComments: import("@trpc/server").TRPCQueryProcedure<{
1032
+ input: {
1033
+ [x: string]: unknown;
1034
+ classId: string;
1035
+ announcementId: string;
1036
+ };
1037
+ output: {
1038
+ comments: ({
1039
+ author: {
1040
+ id: string;
1041
+ username: string;
1042
+ profile: {
1043
+ displayName: string | null;
1044
+ profilePicture: string | null;
1045
+ profilePictureThumbnail: string | null;
1046
+ } | null;
1047
+ };
1048
+ replies: ({
1049
+ author: {
1050
+ id: string;
1051
+ username: string;
1052
+ profile: {
1053
+ displayName: string | null;
1054
+ profilePicture: string | null;
1055
+ profilePictureThumbnail: string | null;
1056
+ } | null;
1057
+ };
1058
+ } & {
1059
+ id: string;
1060
+ content: string;
1061
+ createdAt: Date;
1062
+ modifiedAt: Date | null;
1063
+ announcementId: string;
1064
+ parentCommentId: string | null;
1065
+ authorId: string;
1066
+ })[];
1067
+ } & {
1068
+ id: string;
1069
+ content: string;
1070
+ createdAt: Date;
1071
+ modifiedAt: Date | null;
1072
+ announcementId: string;
1073
+ parentCommentId: string | null;
1074
+ authorId: string;
1075
+ })[];
1076
+ };
1077
+ meta: object;
1078
+ }>;
1079
+ addReaction: import("@trpc/server").TRPCMutationProcedure<{
1080
+ input: {
1081
+ [x: string]: unknown;
1082
+ classId: string;
1083
+ type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
1084
+ announcementId?: string | undefined;
1085
+ commentId?: string | undefined;
1086
+ };
1087
+ output: {
1088
+ reaction: {
1089
+ user: {
1090
+ id: string;
1091
+ username: string;
1092
+ profile: {
1093
+ displayName: string | null;
1094
+ profilePicture: string | null;
1095
+ profilePictureThumbnail: string | null;
1096
+ } | null;
1097
+ };
1098
+ } & {
1099
+ type: import(".prisma/client").$Enums.ReactionType;
1100
+ id: string;
1101
+ userId: string;
1102
+ createdAt: Date;
1103
+ announcementId: string | null;
1104
+ commentId: string | null;
1105
+ };
1106
+ };
1107
+ meta: object;
1108
+ }>;
1109
+ removeReaction: import("@trpc/server").TRPCMutationProcedure<{
1110
+ input: {
1111
+ announcementId?: string | undefined;
1112
+ commentId?: string | undefined;
1113
+ };
1114
+ output: {
1115
+ success: boolean;
1116
+ };
1117
+ meta: object;
1118
+ }>;
1119
+ getReactions: import("@trpc/server").TRPCQueryProcedure<{
1120
+ input: {
1121
+ [x: string]: unknown;
1122
+ classId: string;
1123
+ announcementId?: string | undefined;
1124
+ commentId?: string | undefined;
1125
+ };
1126
+ output: {
1127
+ counts: {
1128
+ THUMBSUP: number;
1129
+ CELEBRATE: number;
1130
+ CARE: number;
1131
+ HEART: number;
1132
+ IDEA: number;
1133
+ HAPPY: number;
1134
+ };
1135
+ userReaction: import(".prisma/client").$Enums.ReactionType | null;
1136
+ total: number;
1137
+ };
1138
+ meta: object;
1139
+ }>;
854
1140
  }>>;
855
1141
  assignment: import("@trpc/server").TRPCBuiltRouter<{
856
1142
  ctx: import("../trpc.js").Context;
@@ -1105,6 +1391,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1105
1391
  folderId: string | null;
1106
1392
  conversationId: string | null;
1107
1393
  messageId: string | null;
1394
+ announcementId: string | null;
1108
1395
  schoolDevelopementProgramId: string | null;
1109
1396
  } | null;
1110
1397
  thumbnailId: string | null;
@@ -1272,6 +1559,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1272
1559
  folderId: string | null;
1273
1560
  conversationId: string | null;
1274
1561
  messageId: string | null;
1562
+ announcementId: string | null;
1275
1563
  schoolDevelopementProgramId: string | null;
1276
1564
  }[];
1277
1565
  annotations: {
@@ -1299,6 +1587,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1299
1587
  folderId: string | null;
1300
1588
  conversationId: string | null;
1301
1589
  messageId: string | null;
1590
+ announcementId: string | null;
1302
1591
  schoolDevelopementProgramId: string | null;
1303
1592
  }[];
1304
1593
  } & {
@@ -1395,6 +1684,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1395
1684
  folderId: string | null;
1396
1685
  conversationId: string | null;
1397
1686
  messageId: string | null;
1687
+ announcementId: string | null;
1398
1688
  schoolDevelopementProgramId: string | null;
1399
1689
  }[];
1400
1690
  annotations: {
@@ -1422,6 +1712,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1422
1712
  folderId: string | null;
1423
1713
  conversationId: string | null;
1424
1714
  messageId: string | null;
1715
+ announcementId: string | null;
1425
1716
  schoolDevelopementProgramId: string | null;
1426
1717
  }[];
1427
1718
  id: string;
@@ -1526,6 +1817,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1526
1817
  folderId: string | null;
1527
1818
  conversationId: string | null;
1528
1819
  messageId: string | null;
1820
+ announcementId: string | null;
1529
1821
  schoolDevelopementProgramId: string | null;
1530
1822
  }[];
1531
1823
  annotations: {
@@ -1553,6 +1845,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1553
1845
  folderId: string | null;
1554
1846
  conversationId: string | null;
1555
1847
  messageId: string | null;
1848
+ announcementId: string | null;
1556
1849
  schoolDevelopementProgramId: string | null;
1557
1850
  }[];
1558
1851
  id: string;
@@ -1653,6 +1946,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1653
1946
  folderId: string | null;
1654
1947
  conversationId: string | null;
1655
1948
  messageId: string | null;
1949
+ announcementId: string | null;
1656
1950
  schoolDevelopementProgramId: string | null;
1657
1951
  }[];
1658
1952
  } & {
@@ -1752,6 +2046,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1752
2046
  folderId: string | null;
1753
2047
  conversationId: string | null;
1754
2048
  messageId: string | null;
2049
+ announcementId: string | null;
1755
2050
  schoolDevelopementProgramId: string | null;
1756
2051
  } | null;
1757
2052
  } & {
@@ -1779,6 +2074,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1779
2074
  folderId: string | null;
1780
2075
  conversationId: string | null;
1781
2076
  messageId: string | null;
2077
+ announcementId: string | null;
1782
2078
  schoolDevelopementProgramId: string | null;
1783
2079
  })[];
1784
2080
  id: string;
@@ -1812,10 +2108,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1812
2108
  }[] | undefined;
1813
2109
  return?: boolean | undefined;
1814
2110
  rubricGrades?: {
2111
+ comments: string;
1815
2112
  criteriaId: string;
1816
2113
  selectedLevelId: string;
1817
2114
  points: number;
1818
- comments: string;
1819
2115
  }[] | undefined;
1820
2116
  };
1821
2117
  output: {
@@ -1892,6 +2188,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1892
2188
  folderId: string | null;
1893
2189
  conversationId: string | null;
1894
2190
  messageId: string | null;
2191
+ announcementId: string | null;
1895
2192
  schoolDevelopementProgramId: string | null;
1896
2193
  }[];
1897
2194
  } & {
@@ -2096,6 +2393,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2096
2393
  folderId: string | null;
2097
2394
  conversationId: string | null;
2098
2395
  messageId: string | null;
2396
+ announcementId: string | null;
2099
2397
  schoolDevelopementProgramId: string | null;
2100
2398
  }[];
2101
2399
  eventAttached: {
@@ -2186,6 +2484,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2186
2484
  folderId: string | null;
2187
2485
  conversationId: string | null;
2188
2486
  messageId: string | null;
2487
+ announcementId: string | null;
2189
2488
  schoolDevelopementProgramId: string | null;
2190
2489
  }[];
2191
2490
  eventAttached: {
@@ -2277,6 +2576,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2277
2576
  folderId: string | null;
2278
2577
  conversationId: string | null;
2279
2578
  messageId: string | null;
2579
+ announcementId: string | null;
2280
2580
  schoolDevelopementProgramId: string | null;
2281
2581
  }[];
2282
2582
  eventAttached: {
@@ -2367,6 +2667,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2367
2667
  folderId: string | null;
2368
2668
  conversationId: string | null;
2369
2669
  messageId: string | null;
2670
+ announcementId: string | null;
2370
2671
  schoolDevelopementProgramId: string | null;
2371
2672
  }[];
2372
2673
  eventAttached: {
@@ -3290,6 +3591,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3290
3591
  folderId: string | null;
3291
3592
  conversationId: string | null;
3292
3593
  messageId: string | null;
3594
+ announcementId: string | null;
3293
3595
  schoolDevelopementProgramId: string | null;
3294
3596
  };
3295
3597
  meta: object;
@@ -3331,6 +3633,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3331
3633
  folderId: string | null;
3332
3634
  conversationId: string | null;
3333
3635
  messageId: string | null;
3636
+ announcementId: string | null;
3334
3637
  schoolDevelopementProgramId: string | null;
3335
3638
  };
3336
3639
  meta: object;
@@ -5154,6 +5457,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5154
5457
  };
5155
5458
  output: {
5156
5459
  announcements: {
5460
+ commentCount: number;
5461
+ _count: undefined;
5157
5462
  id: string;
5158
5463
  remarks: string;
5159
5464
  teacher: {
@@ -5161,15 +5466,60 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5161
5466
  username: string;
5162
5467
  };
5163
5468
  createdAt: Date;
5469
+ modifiedAt: Date | null;
5470
+ attachments: {
5471
+ path: string;
5472
+ type: string;
5473
+ id: string;
5474
+ name: string;
5475
+ size: number | null;
5476
+ uploadedAt: Date | null;
5477
+ thumbnailId: string | null;
5478
+ }[];
5164
5479
  }[];
5165
5480
  };
5166
5481
  meta: object;
5167
5482
  }>;
5483
+ get: import("@trpc/server").TRPCQueryProcedure<{
5484
+ input: {
5485
+ [x: string]: unknown;
5486
+ classId: string;
5487
+ id: string;
5488
+ };
5489
+ output: {
5490
+ announcement: {
5491
+ id: string;
5492
+ remarks: string;
5493
+ teacher: {
5494
+ id: string;
5495
+ username: string;
5496
+ };
5497
+ createdAt: Date;
5498
+ modifiedAt: Date | null;
5499
+ attachments: {
5500
+ path: string;
5501
+ type: string;
5502
+ id: string;
5503
+ name: string;
5504
+ size: number | null;
5505
+ uploadedAt: Date | null;
5506
+ thumbnailId: string | null;
5507
+ }[];
5508
+ };
5509
+ };
5510
+ meta: object;
5511
+ }>;
5168
5512
  create: import("@trpc/server").TRPCMutationProcedure<{
5169
5513
  input: {
5170
5514
  [x: string]: unknown;
5171
5515
  classId: string;
5172
5516
  remarks: string;
5517
+ files?: {
5518
+ type: string;
5519
+ name: string;
5520
+ size: number;
5521
+ }[] | undefined;
5522
+ existingFileIds?: string[] | undefined;
5173
5523
  };
5174
5524
  output: {
5175
5525
  announcement: {
@@ -5180,7 +5530,18 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5180
5530
  username: string;
5181
5531
  };
5182
5532
  createdAt: Date;
5533
+ modifiedAt: Date | null;
5534
+ attachments: {
5535
+ path: string;
5536
+ type: string;
5537
+ id: string;
5538
+ name: string;
5539
+ size: number | null;
5540
+ uploadedAt: Date | null;
5541
+ thumbnailId: string | null;
5542
+ }[];
5183
5543
  };
5544
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
5184
5545
  };
5185
5546
  meta: object;
5186
5547
  }>;
@@ -5188,17 +5549,37 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5188
5549
  input: {
5189
5550
  id: string;
5190
5551
  data: {
5191
- content: string;
5552
+ files?: {
5553
+ type: string;
5554
+ name: string;
5555
+ size: number;
5556
+ }[] | undefined;
5557
+ remarks?: string | undefined;
5558
+ existingFileIds?: string[] | undefined;
5559
+ removedAttachments?: string[] | undefined;
5192
5560
  };
5193
5561
  };
5194
5562
  output: {
5195
5563
  announcement: {
5196
5564
  id: string;
5197
5565
  remarks: string;
5198
- classId: string;
5566
+ teacher: {
5567
+ id: string;
5568
+ username: string;
5569
+ };
5199
5570
  createdAt: Date;
5200
- teacherId: string;
5571
+ modifiedAt: Date | null;
5572
+ attachments: {
5573
+ path: string;
5574
+ type: string;
5575
+ id: string;
5576
+ name: string;
5577
+ size: number | null;
5578
+ uploadedAt: Date | null;
5579
+ thumbnailId: string | null;
5580
+ }[];
5201
5581
  };
5582
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
5202
5583
  };
5203
5584
  meta: object;
5204
5585
  }>;
@@ -5211,6 +5592,214 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5211
5592
  };
5212
5593
  meta: object;
5213
5594
  }>;
5595
+ getAnnouncementUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
5596
+ input: {
5597
+ [x: string]: unknown;
5598
+ classId: string;
5599
+ files: {
5600
+ type: string;
5601
+ name: string;
5602
+ size: number;
5603
+ }[];
5604
+ announcementId: string;
5605
+ };
5606
+ output: {
5607
+ success: boolean;
5608
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[];
5609
+ };
5610
+ meta: object;
5611
+ }>;
5612
+ confirmAnnouncementUpload: import("@trpc/server").TRPCMutationProcedure<{
5613
+ input: {
5614
+ [x: string]: unknown;
5615
+ classId: string;
5616
+ fileId: string;
5617
+ uploadSuccess: boolean;
5618
+ errorMessage?: string | undefined;
5619
+ };
5620
+ output: {
5621
+ success: boolean;
5622
+ message: string;
5623
+ };
5624
+ meta: object;
5625
+ }>;
5626
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
5627
+ input: {
5628
+ [x: string]: unknown;
5629
+ classId: string;
5630
+ content: string;
5631
+ announcementId: string;
5632
+ parentCommentId?: string | undefined;
5633
+ };
5634
+ output: {
5635
+ comment: {
5636
+ author: {
5637
+ id: string;
5638
+ username: string;
5639
+ profile: {
5640
+ displayName: string | null;
5641
+ profilePicture: string | null;
5642
+ profilePictureThumbnail: string | null;
5643
+ } | null;
5644
+ };
5645
+ } & {
5646
+ id: string;
5647
+ content: string;
5648
+ createdAt: Date;
5649
+ modifiedAt: Date | null;
5650
+ announcementId: string;
5651
+ parentCommentId: string | null;
5652
+ authorId: string;
5653
+ };
5654
+ };
5655
+ meta: object;
5656
+ }>;
5657
+ updateComment: import("@trpc/server").TRPCMutationProcedure<{
5658
+ input: {
5659
+ id: string;
5660
+ content: string;
5661
+ };
5662
+ output: {
5663
+ comment: {
5664
+ author: {
5665
+ id: string;
5666
+ username: string;
5667
+ profile: {
5668
+ displayName: string | null;
5669
+ profilePicture: string | null;
5670
+ profilePictureThumbnail: string | null;
5671
+ } | null;
5672
+ };
5673
+ } & {
5674
+ id: string;
5675
+ content: string;
5676
+ createdAt: Date;
5677
+ modifiedAt: Date | null;
5678
+ announcementId: string;
5679
+ parentCommentId: string | null;
5680
+ authorId: string;
5681
+ };
5682
+ };
5683
+ meta: object;
5684
+ }>;
5685
+ deleteComment: import("@trpc/server").TRPCMutationProcedure<{
5686
+ input: {
5687
+ id: string;
5688
+ };
5689
+ output: {
5690
+ success: boolean;
5691
+ };
5692
+ meta: object;
5693
+ }>;
5694
+ getComments: import("@trpc/server").TRPCQueryProcedure<{
5695
+ input: {
5696
+ [x: string]: unknown;
5697
+ classId: string;
5698
+ announcementId: string;
5699
+ };
5700
+ output: {
5701
+ comments: ({
5702
+ author: {
5703
+ id: string;
5704
+ username: string;
5705
+ profile: {
5706
+ displayName: string | null;
5707
+ profilePicture: string | null;
5708
+ profilePictureThumbnail: string | null;
5709
+ } | null;
5710
+ };
5711
+ replies: ({
5712
+ author: {
5713
+ id: string;
5714
+ username: string;
5715
+ profile: {
5716
+ displayName: string | null;
5717
+ profilePicture: string | null;
5718
+ profilePictureThumbnail: string | null;
5719
+ } | null;
5720
+ };
5721
+ } & {
5722
+ id: string;
5723
+ content: string;
5724
+ createdAt: Date;
5725
+ modifiedAt: Date | null;
5726
+ announcementId: string;
5727
+ parentCommentId: string | null;
5728
+ authorId: string;
5729
+ })[];
5730
+ } & {
5731
+ id: string;
5732
+ content: string;
5733
+ createdAt: Date;
5734
+ modifiedAt: Date | null;
5735
+ announcementId: string;
5736
+ parentCommentId: string | null;
5737
+ authorId: string;
5738
+ })[];
5739
+ };
5740
+ meta: object;
5741
+ }>;
5742
+ addReaction: import("@trpc/server").TRPCMutationProcedure<{
5743
+ input: {
5744
+ [x: string]: unknown;
5745
+ classId: string;
5746
+ type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
5747
+ announcementId?: string | undefined;
5748
+ commentId?: string | undefined;
5749
+ };
5750
+ output: {
5751
+ reaction: {
5752
+ user: {
5753
+ id: string;
5754
+ username: string;
5755
+ profile: {
5756
+ displayName: string | null;
5757
+ profilePicture: string | null;
5758
+ profilePictureThumbnail: string | null;
5759
+ } | null;
5760
+ };
5761
+ } & {
5762
+ type: import(".prisma/client").$Enums.ReactionType;
5763
+ id: string;
5764
+ userId: string;
5765
+ createdAt: Date;
5766
+ announcementId: string | null;
5767
+ commentId: string | null;
5768
+ };
5769
+ };
5770
+ meta: object;
5771
+ }>;
5772
+ removeReaction: import("@trpc/server").TRPCMutationProcedure<{
5773
+ input: {
5774
+ announcementId?: string | undefined;
5775
+ commentId?: string | undefined;
5776
+ };
5777
+ output: {
5778
+ success: boolean;
5779
+ };
5780
+ meta: object;
5781
+ }>;
5782
+ getReactions: import("@trpc/server").TRPCQueryProcedure<{
5783
+ input: {
5784
+ [x: string]: unknown;
5785
+ classId: string;
5786
+ announcementId?: string | undefined;
5787
+ commentId?: string | undefined;
5788
+ };
5789
+ output: {
5790
+ counts: {
5791
+ THUMBSUP: number;
5792
+ CELEBRATE: number;
5793
+ CARE: number;
5794
+ HEART: number;
5795
+ IDEA: number;
5796
+ HAPPY: number;
5797
+ };
5798
+ userReaction: import(".prisma/client").$Enums.ReactionType | null;
5799
+ total: number;
5800
+ };
5801
+ meta: object;
5802
+ }>;
5214
5803
  }>>;
5215
5804
  assignment: import("@trpc/server").TRPCBuiltRouter<{
5216
5805
  ctx: import("../trpc.js").Context;
@@ -5465,6 +6054,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5465
6054
  folderId: string | null;
5466
6055
  conversationId: string | null;
5467
6056
  messageId: string | null;
6057
+ announcementId: string | null;
5468
6058
  schoolDevelopementProgramId: string | null;
5469
6059
  } | null;
5470
6060
  thumbnailId: string | null;
@@ -5632,6 +6222,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5632
6222
  folderId: string | null;
5633
6223
  conversationId: string | null;
5634
6224
  messageId: string | null;
6225
+ announcementId: string | null;
5635
6226
  schoolDevelopementProgramId: string | null;
5636
6227
  }[];
5637
6228
  annotations: {
@@ -5659,6 +6250,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5659
6250
  folderId: string | null;
5660
6251
  conversationId: string | null;
5661
6252
  messageId: string | null;
6253
+ announcementId: string | null;
5662
6254
  schoolDevelopementProgramId: string | null;
5663
6255
  }[];
5664
6256
  } & {
@@ -5755,6 +6347,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5755
6347
  folderId: string | null;
5756
6348
  conversationId: string | null;
5757
6349
  messageId: string | null;
6350
+ announcementId: string | null;
5758
6351
  schoolDevelopementProgramId: string | null;
5759
6352
  }[];
5760
6353
  annotations: {
@@ -5782,6 +6375,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5782
6375
  folderId: string | null;
5783
6376
  conversationId: string | null;
5784
6377
  messageId: string | null;
6378
+ announcementId: string | null;
5785
6379
  schoolDevelopementProgramId: string | null;
5786
6380
  }[];
5787
6381
  id: string;
@@ -5886,6 +6480,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5886
6480
  folderId: string | null;
5887
6481
  conversationId: string | null;
5888
6482
  messageId: string | null;
6483
+ announcementId: string | null;
5889
6484
  schoolDevelopementProgramId: string | null;
5890
6485
  }[];
5891
6486
  annotations: {
@@ -5913,6 +6508,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5913
6508
  folderId: string | null;
5914
6509
  conversationId: string | null;
5915
6510
  messageId: string | null;
6511
+ announcementId: string | null;
5916
6512
  schoolDevelopementProgramId: string | null;
5917
6513
  }[];
5918
6514
  id: string;
@@ -6013,6 +6609,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6013
6609
  folderId: string | null;
6014
6610
  conversationId: string | null;
6015
6611
  messageId: string | null;
6612
+ announcementId: string | null;
6016
6613
  schoolDevelopementProgramId: string | null;
6017
6614
  }[];
6018
6615
  } & {
@@ -6112,6 +6709,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6112
6709
  folderId: string | null;
6113
6710
  conversationId: string | null;
6114
6711
  messageId: string | null;
6712
+ announcementId: string | null;
6115
6713
  schoolDevelopementProgramId: string | null;
6116
6714
  } | null;
6117
6715
  } & {
@@ -6139,6 +6737,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6139
6737
  folderId: string | null;
6140
6738
  conversationId: string | null;
6141
6739
  messageId: string | null;
6740
+ announcementId: string | null;
6142
6741
  schoolDevelopementProgramId: string | null;
6143
6742
  })[];
6144
6743
  id: string;
@@ -6172,10 +6771,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6172
6771
  }[] | undefined;
6173
6772
  return?: boolean | undefined;
6174
6773
  rubricGrades?: {
6774
+ comments: string;
6175
6775
  criteriaId: string;
6176
6776
  selectedLevelId: string;
6177
6777
  points: number;
6178
- comments: string;
6179
6778
  }[] | undefined;
6180
6779
  };
6181
6780
  output: {
@@ -6252,6 +6851,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6252
6851
  folderId: string | null;
6253
6852
  conversationId: string | null;
6254
6853
  messageId: string | null;
6854
+ announcementId: string | null;
6255
6855
  schoolDevelopementProgramId: string | null;
6256
6856
  }[];
6257
6857
  } & {
@@ -6456,6 +7056,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6456
7056
  folderId: string | null;
6457
7057
  conversationId: string | null;
6458
7058
  messageId: string | null;
7059
+ announcementId: string | null;
6459
7060
  schoolDevelopementProgramId: string | null;
6460
7061
  }[];
6461
7062
  eventAttached: {
@@ -6546,6 +7147,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6546
7147
  folderId: string | null;
6547
7148
  conversationId: string | null;
6548
7149
  messageId: string | null;
7150
+ announcementId: string | null;
6549
7151
  schoolDevelopementProgramId: string | null;
6550
7152
  }[];
6551
7153
  eventAttached: {
@@ -6637,6 +7239,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6637
7239
  folderId: string | null;
6638
7240
  conversationId: string | null;
6639
7241
  messageId: string | null;
7242
+ announcementId: string | null;
6640
7243
  schoolDevelopementProgramId: string | null;
6641
7244
  }[];
6642
7245
  eventAttached: {
@@ -6727,6 +7330,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6727
7330
  folderId: string | null;
6728
7331
  conversationId: string | null;
6729
7332
  messageId: string | null;
7333
+ announcementId: string | null;
6730
7334
  schoolDevelopementProgramId: string | null;
6731
7335
  }[];
6732
7336
  eventAttached: {
@@ -7650,6 +8254,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7650
8254
  folderId: string | null;
7651
8255
  conversationId: string | null;
7652
8256
  messageId: string | null;
8257
+ announcementId: string | null;
7653
8258
  schoolDevelopementProgramId: string | null;
7654
8259
  };
7655
8260
  meta: object;
@@ -7691,6 +8296,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7691
8296
  folderId: string | null;
7692
8297
  conversationId: string | null;
7693
8298
  messageId: string | null;
8299
+ announcementId: string | null;
7694
8300
  schoolDevelopementProgramId: string | null;
7695
8301
  };
7696
8302
  meta: object;