@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
package/dist/routers/_app.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
903
|
+
teacher: {
|
|
904
|
+
id: string;
|
|
905
|
+
username: string;
|
|
906
|
+
};
|
|
839
907
|
createdAt: Date;
|
|
840
|
-
|
|
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;
|
|
@@ -869,6 +1155,37 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
869
1155
|
};
|
|
870
1156
|
transformer: false;
|
|
871
1157
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1158
|
+
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
1159
|
+
input: {
|
|
1160
|
+
[x: string]: unknown;
|
|
1161
|
+
classId: string;
|
|
1162
|
+
movedId: string;
|
|
1163
|
+
position: "start" | "end" | "before" | "after";
|
|
1164
|
+
targetId?: string | undefined;
|
|
1165
|
+
};
|
|
1166
|
+
output: {
|
|
1167
|
+
type: import(".prisma/client").$Enums.AssignmentType;
|
|
1168
|
+
id: string;
|
|
1169
|
+
title: string;
|
|
1170
|
+
dueDate: Date;
|
|
1171
|
+
maxGrade: number | null;
|
|
1172
|
+
classId: string;
|
|
1173
|
+
eventId: string | null;
|
|
1174
|
+
markSchemeId: string | null;
|
|
1175
|
+
gradingBoundaryId: string | null;
|
|
1176
|
+
instructions: string;
|
|
1177
|
+
weight: number;
|
|
1178
|
+
graded: boolean;
|
|
1179
|
+
sectionId: string | null;
|
|
1180
|
+
template: boolean;
|
|
1181
|
+
createdAt: Date | null;
|
|
1182
|
+
modifiedAt: Date | null;
|
|
1183
|
+
teacherId: string;
|
|
1184
|
+
inProgress: boolean;
|
|
1185
|
+
order: number | null;
|
|
1186
|
+
} | null;
|
|
1187
|
+
meta: object;
|
|
1188
|
+
}>;
|
|
872
1189
|
order: import("@trpc/server").TRPCMutationProcedure<{
|
|
873
1190
|
input: {
|
|
874
1191
|
[x: string]: unknown;
|
|
@@ -896,7 +1213,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
896
1213
|
teacherId: string;
|
|
897
1214
|
inProgress: boolean;
|
|
898
1215
|
order: number | null;
|
|
899
|
-
};
|
|
1216
|
+
} | null;
|
|
900
1217
|
meta: object;
|
|
901
1218
|
}>;
|
|
902
1219
|
move: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -904,7 +1221,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
904
1221
|
[x: string]: unknown;
|
|
905
1222
|
classId: string;
|
|
906
1223
|
id: string;
|
|
907
|
-
targetSectionId
|
|
1224
|
+
targetSectionId?: string | null | undefined;
|
|
908
1225
|
};
|
|
909
1226
|
output: {
|
|
910
1227
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
@@ -926,7 +1243,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
926
1243
|
teacherId: string;
|
|
927
1244
|
inProgress: boolean;
|
|
928
1245
|
order: number | null;
|
|
929
|
-
};
|
|
1246
|
+
} | null;
|
|
930
1247
|
meta: object;
|
|
931
1248
|
}>;
|
|
932
1249
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -1074,6 +1391,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1074
1391
|
folderId: string | null;
|
|
1075
1392
|
conversationId: string | null;
|
|
1076
1393
|
messageId: string | null;
|
|
1394
|
+
announcementId: string | null;
|
|
1077
1395
|
schoolDevelopementProgramId: string | null;
|
|
1078
1396
|
} | null;
|
|
1079
1397
|
thumbnailId: string | null;
|
|
@@ -1241,6 +1559,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1241
1559
|
folderId: string | null;
|
|
1242
1560
|
conversationId: string | null;
|
|
1243
1561
|
messageId: string | null;
|
|
1562
|
+
announcementId: string | null;
|
|
1244
1563
|
schoolDevelopementProgramId: string | null;
|
|
1245
1564
|
}[];
|
|
1246
1565
|
annotations: {
|
|
@@ -1268,6 +1587,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1268
1587
|
folderId: string | null;
|
|
1269
1588
|
conversationId: string | null;
|
|
1270
1589
|
messageId: string | null;
|
|
1590
|
+
announcementId: string | null;
|
|
1271
1591
|
schoolDevelopementProgramId: string | null;
|
|
1272
1592
|
}[];
|
|
1273
1593
|
} & {
|
|
@@ -1326,6 +1646,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1326
1646
|
student: {
|
|
1327
1647
|
id: string;
|
|
1328
1648
|
username: string;
|
|
1649
|
+
profile: {
|
|
1650
|
+
id: string;
|
|
1651
|
+
location: string | null;
|
|
1652
|
+
userId: string;
|
|
1653
|
+
createdAt: Date;
|
|
1654
|
+
displayName: string | null;
|
|
1655
|
+
bio: string | null;
|
|
1656
|
+
website: string | null;
|
|
1657
|
+
profilePicture: string | null;
|
|
1658
|
+
profilePictureThumbnail: string | null;
|
|
1659
|
+
updatedAt: Date;
|
|
1660
|
+
} | null;
|
|
1329
1661
|
};
|
|
1330
1662
|
attachments: {
|
|
1331
1663
|
path: string;
|
|
@@ -1352,6 +1684,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1352
1684
|
folderId: string | null;
|
|
1353
1685
|
conversationId: string | null;
|
|
1354
1686
|
messageId: string | null;
|
|
1687
|
+
announcementId: string | null;
|
|
1355
1688
|
schoolDevelopementProgramId: string | null;
|
|
1356
1689
|
}[];
|
|
1357
1690
|
annotations: {
|
|
@@ -1379,6 +1712,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1379
1712
|
folderId: string | null;
|
|
1380
1713
|
conversationId: string | null;
|
|
1381
1714
|
messageId: string | null;
|
|
1715
|
+
announcementId: string | null;
|
|
1382
1716
|
schoolDevelopementProgramId: string | null;
|
|
1383
1717
|
}[];
|
|
1384
1718
|
id: string;
|
|
@@ -1446,8 +1780,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1446
1780
|
id: string;
|
|
1447
1781
|
username: string;
|
|
1448
1782
|
profile: {
|
|
1783
|
+
id: string;
|
|
1784
|
+
location: string | null;
|
|
1785
|
+
userId: string;
|
|
1786
|
+
createdAt: Date;
|
|
1449
1787
|
displayName: string | null;
|
|
1788
|
+
bio: string | null;
|
|
1789
|
+
website: string | null;
|
|
1450
1790
|
profilePicture: string | null;
|
|
1791
|
+
profilePictureThumbnail: string | null;
|
|
1792
|
+
updatedAt: Date;
|
|
1451
1793
|
} | null;
|
|
1452
1794
|
};
|
|
1453
1795
|
attachments: {
|
|
@@ -1475,6 +1817,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1475
1817
|
folderId: string | null;
|
|
1476
1818
|
conversationId: string | null;
|
|
1477
1819
|
messageId: string | null;
|
|
1820
|
+
announcementId: string | null;
|
|
1478
1821
|
schoolDevelopementProgramId: string | null;
|
|
1479
1822
|
}[];
|
|
1480
1823
|
annotations: {
|
|
@@ -1502,6 +1845,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1502
1845
|
folderId: string | null;
|
|
1503
1846
|
conversationId: string | null;
|
|
1504
1847
|
messageId: string | null;
|
|
1848
|
+
announcementId: string | null;
|
|
1505
1849
|
schoolDevelopementProgramId: string | null;
|
|
1506
1850
|
}[];
|
|
1507
1851
|
id: string;
|
|
@@ -1602,6 +1946,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1602
1946
|
folderId: string | null;
|
|
1603
1947
|
conversationId: string | null;
|
|
1604
1948
|
messageId: string | null;
|
|
1949
|
+
announcementId: string | null;
|
|
1605
1950
|
schoolDevelopementProgramId: string | null;
|
|
1606
1951
|
}[];
|
|
1607
1952
|
} & {
|
|
@@ -1701,6 +2046,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1701
2046
|
folderId: string | null;
|
|
1702
2047
|
conversationId: string | null;
|
|
1703
2048
|
messageId: string | null;
|
|
2049
|
+
announcementId: string | null;
|
|
1704
2050
|
schoolDevelopementProgramId: string | null;
|
|
1705
2051
|
} | null;
|
|
1706
2052
|
} & {
|
|
@@ -1728,6 +2074,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1728
2074
|
folderId: string | null;
|
|
1729
2075
|
conversationId: string | null;
|
|
1730
2076
|
messageId: string | null;
|
|
2077
|
+
announcementId: string | null;
|
|
1731
2078
|
schoolDevelopementProgramId: string | null;
|
|
1732
2079
|
})[];
|
|
1733
2080
|
id: string;
|
|
@@ -1761,10 +2108,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1761
2108
|
}[] | undefined;
|
|
1762
2109
|
return?: boolean | undefined;
|
|
1763
2110
|
rubricGrades?: {
|
|
2111
|
+
comments: string;
|
|
1764
2112
|
criteriaId: string;
|
|
1765
2113
|
selectedLevelId: string;
|
|
1766
2114
|
points: number;
|
|
1767
|
-
comments: string;
|
|
1768
2115
|
}[] | undefined;
|
|
1769
2116
|
};
|
|
1770
2117
|
output: {
|
|
@@ -1841,6 +2188,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1841
2188
|
folderId: string | null;
|
|
1842
2189
|
conversationId: string | null;
|
|
1843
2190
|
messageId: string | null;
|
|
2191
|
+
announcementId: string | null;
|
|
1844
2192
|
schoolDevelopementProgramId: string | null;
|
|
1845
2193
|
}[];
|
|
1846
2194
|
} & {
|
|
@@ -2045,6 +2393,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2045
2393
|
folderId: string | null;
|
|
2046
2394
|
conversationId: string | null;
|
|
2047
2395
|
messageId: string | null;
|
|
2396
|
+
announcementId: string | null;
|
|
2048
2397
|
schoolDevelopementProgramId: string | null;
|
|
2049
2398
|
}[];
|
|
2050
2399
|
eventAttached: {
|
|
@@ -2135,6 +2484,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2135
2484
|
folderId: string | null;
|
|
2136
2485
|
conversationId: string | null;
|
|
2137
2486
|
messageId: string | null;
|
|
2487
|
+
announcementId: string | null;
|
|
2138
2488
|
schoolDevelopementProgramId: string | null;
|
|
2139
2489
|
}[];
|
|
2140
2490
|
eventAttached: {
|
|
@@ -2226,6 +2576,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2226
2576
|
folderId: string | null;
|
|
2227
2577
|
conversationId: string | null;
|
|
2228
2578
|
messageId: string | null;
|
|
2579
|
+
announcementId: string | null;
|
|
2229
2580
|
schoolDevelopementProgramId: string | null;
|
|
2230
2581
|
}[];
|
|
2231
2582
|
eventAttached: {
|
|
@@ -2316,6 +2667,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2316
2667
|
folderId: string | null;
|
|
2317
2668
|
conversationId: string | null;
|
|
2318
2669
|
messageId: string | null;
|
|
2670
|
+
announcementId: string | null;
|
|
2319
2671
|
schoolDevelopementProgramId: string | null;
|
|
2320
2672
|
}[];
|
|
2321
2673
|
eventAttached: {
|
|
@@ -2572,6 +2924,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2572
2924
|
};
|
|
2573
2925
|
meta: object;
|
|
2574
2926
|
}>;
|
|
2927
|
+
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
2928
|
+
input: {
|
|
2929
|
+
classId: string;
|
|
2930
|
+
movedId: string;
|
|
2931
|
+
position: "start" | "end" | "before" | "after";
|
|
2932
|
+
targetId?: string | undefined;
|
|
2933
|
+
};
|
|
2934
|
+
output: {
|
|
2935
|
+
id: string;
|
|
2936
|
+
name: string;
|
|
2937
|
+
color: string | null;
|
|
2938
|
+
classId: string;
|
|
2939
|
+
order: number | null;
|
|
2940
|
+
} | null;
|
|
2941
|
+
meta: object;
|
|
2942
|
+
}>;
|
|
2575
2943
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
2576
2944
|
input: {
|
|
2577
2945
|
id: string;
|
|
@@ -3223,6 +3591,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3223
3591
|
folderId: string | null;
|
|
3224
3592
|
conversationId: string | null;
|
|
3225
3593
|
messageId: string | null;
|
|
3594
|
+
announcementId: string | null;
|
|
3226
3595
|
schoolDevelopementProgramId: string | null;
|
|
3227
3596
|
};
|
|
3228
3597
|
meta: object;
|
|
@@ -3264,6 +3633,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3264
3633
|
folderId: string | null;
|
|
3265
3634
|
conversationId: string | null;
|
|
3266
3635
|
messageId: string | null;
|
|
3636
|
+
announcementId: string | null;
|
|
3267
3637
|
schoolDevelopementProgramId: string | null;
|
|
3268
3638
|
};
|
|
3269
3639
|
meta: object;
|
|
@@ -3655,9 +4025,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3655
4025
|
title: string;
|
|
3656
4026
|
content: string;
|
|
3657
4027
|
createdAt: Date;
|
|
3658
|
-
read: boolean;
|
|
3659
|
-
receiverId: string;
|
|
3660
4028
|
senderId: string | null;
|
|
4029
|
+
receiverId: string;
|
|
4030
|
+
read: boolean;
|
|
3661
4031
|
})[];
|
|
3662
4032
|
meta: object;
|
|
3663
4033
|
}>;
|
|
@@ -3677,9 +4047,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3677
4047
|
title: string;
|
|
3678
4048
|
content: string;
|
|
3679
4049
|
createdAt: Date;
|
|
3680
|
-
read: boolean;
|
|
3681
|
-
receiverId: string;
|
|
3682
4050
|
senderId: string | null;
|
|
4051
|
+
receiverId: string;
|
|
4052
|
+
read: boolean;
|
|
3683
4053
|
}) | null;
|
|
3684
4054
|
meta: object;
|
|
3685
4055
|
}>;
|
|
@@ -3694,9 +4064,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3694
4064
|
title: string;
|
|
3695
4065
|
content: string;
|
|
3696
4066
|
createdAt: Date;
|
|
3697
|
-
read: boolean;
|
|
3698
|
-
receiverId: string;
|
|
3699
4067
|
senderId: string | null;
|
|
4068
|
+
receiverId: string;
|
|
4069
|
+
read: boolean;
|
|
3700
4070
|
};
|
|
3701
4071
|
meta: object;
|
|
3702
4072
|
}>;
|
|
@@ -3718,9 +4088,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3718
4088
|
title: string;
|
|
3719
4089
|
content: string;
|
|
3720
4090
|
createdAt: Date;
|
|
3721
|
-
read: boolean;
|
|
3722
|
-
receiverId: string;
|
|
3723
4091
|
senderId: string | null;
|
|
4092
|
+
receiverId: string;
|
|
4093
|
+
read: boolean;
|
|
3724
4094
|
};
|
|
3725
4095
|
meta: object;
|
|
3726
4096
|
}>;
|
|
@@ -5040,110 +5410,396 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5040
5410
|
username: string;
|
|
5041
5411
|
} | null;
|
|
5042
5412
|
id: string;
|
|
5043
|
-
name: string;
|
|
5044
|
-
size: number | null;
|
|
5045
|
-
uploadedAt: Date | null;
|
|
5046
|
-
thumbnailId: string | null;
|
|
5047
|
-
}[];
|
|
5048
|
-
annotations: {
|
|
5413
|
+
name: string;
|
|
5414
|
+
size: number | null;
|
|
5415
|
+
uploadedAt: Date | null;
|
|
5416
|
+
thumbnailId: string | null;
|
|
5417
|
+
}[];
|
|
5418
|
+
annotations: {
|
|
5419
|
+
path: string;
|
|
5420
|
+
type: string;
|
|
5421
|
+
user: {
|
|
5422
|
+
id: string;
|
|
5423
|
+
username: string;
|
|
5424
|
+
} | null;
|
|
5425
|
+
id: string;
|
|
5426
|
+
name: string;
|
|
5427
|
+
size: number | null;
|
|
5428
|
+
uploadedAt: Date | null;
|
|
5429
|
+
thumbnailId: string | null;
|
|
5430
|
+
}[];
|
|
5431
|
+
}[];
|
|
5432
|
+
}[];
|
|
5433
|
+
meta: object;
|
|
5434
|
+
}>;
|
|
5435
|
+
}>>;
|
|
5436
|
+
announcement: import("@trpc/server").TRPCBuiltRouter<{
|
|
5437
|
+
ctx: import("../trpc.js").Context;
|
|
5438
|
+
meta: object;
|
|
5439
|
+
errorShape: {
|
|
5440
|
+
data: {
|
|
5441
|
+
zodError: import("zod").typeToFlattenedError<any, string> | null;
|
|
5442
|
+
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
5443
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
5444
|
+
httpStatus: number;
|
|
5445
|
+
path?: string;
|
|
5446
|
+
stack?: string;
|
|
5447
|
+
};
|
|
5448
|
+
message: string;
|
|
5449
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
5450
|
+
};
|
|
5451
|
+
transformer: false;
|
|
5452
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
5453
|
+
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
5454
|
+
input: {
|
|
5455
|
+
[x: string]: unknown;
|
|
5456
|
+
classId: string;
|
|
5457
|
+
};
|
|
5458
|
+
output: {
|
|
5459
|
+
announcements: {
|
|
5460
|
+
commentCount: number;
|
|
5461
|
+
_count: undefined;
|
|
5462
|
+
id: string;
|
|
5463
|
+
remarks: string;
|
|
5464
|
+
teacher: {
|
|
5465
|
+
id: string;
|
|
5466
|
+
username: string;
|
|
5467
|
+
};
|
|
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
|
+
}[];
|
|
5479
|
+
}[];
|
|
5480
|
+
};
|
|
5481
|
+
meta: object;
|
|
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
|
+
}>;
|
|
5512
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
5513
|
+
input: {
|
|
5514
|
+
[x: string]: unknown;
|
|
5515
|
+
classId: string;
|
|
5516
|
+
remarks: string;
|
|
5517
|
+
files?: {
|
|
5518
|
+
type: string;
|
|
5519
|
+
name: string;
|
|
5520
|
+
size: number;
|
|
5521
|
+
}[] | undefined;
|
|
5522
|
+
existingFileIds?: string[] | undefined;
|
|
5523
|
+
};
|
|
5524
|
+
output: {
|
|
5525
|
+
announcement: {
|
|
5526
|
+
id: string;
|
|
5527
|
+
remarks: string;
|
|
5528
|
+
teacher: {
|
|
5529
|
+
id: string;
|
|
5530
|
+
username: string;
|
|
5531
|
+
};
|
|
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
|
+
}[];
|
|
5543
|
+
};
|
|
5544
|
+
uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
|
|
5545
|
+
};
|
|
5546
|
+
meta: object;
|
|
5547
|
+
}>;
|
|
5548
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
5549
|
+
input: {
|
|
5550
|
+
id: string;
|
|
5551
|
+
data: {
|
|
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;
|
|
5560
|
+
};
|
|
5561
|
+
};
|
|
5562
|
+
output: {
|
|
5563
|
+
announcement: {
|
|
5564
|
+
id: string;
|
|
5565
|
+
remarks: string;
|
|
5566
|
+
teacher: {
|
|
5567
|
+
id: string;
|
|
5568
|
+
username: string;
|
|
5569
|
+
};
|
|
5570
|
+
createdAt: Date;
|
|
5571
|
+
modifiedAt: Date | null;
|
|
5572
|
+
attachments: {
|
|
5049
5573
|
path: string;
|
|
5050
5574
|
type: string;
|
|
5051
|
-
user: {
|
|
5052
|
-
id: string;
|
|
5053
|
-
username: string;
|
|
5054
|
-
} | null;
|
|
5055
5575
|
id: string;
|
|
5056
5576
|
name: string;
|
|
5057
5577
|
size: number | null;
|
|
5058
5578
|
uploadedAt: Date | null;
|
|
5059
5579
|
thumbnailId: string | null;
|
|
5060
5580
|
}[];
|
|
5581
|
+
};
|
|
5582
|
+
uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[] | undefined;
|
|
5583
|
+
};
|
|
5584
|
+
meta: object;
|
|
5585
|
+
}>;
|
|
5586
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
5587
|
+
input: {
|
|
5588
|
+
id: string;
|
|
5589
|
+
};
|
|
5590
|
+
output: {
|
|
5591
|
+
success: boolean;
|
|
5592
|
+
};
|
|
5593
|
+
meta: object;
|
|
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;
|
|
5061
5603
|
}[];
|
|
5062
|
-
|
|
5604
|
+
announcementId: string;
|
|
5605
|
+
};
|
|
5606
|
+
output: {
|
|
5607
|
+
success: boolean;
|
|
5608
|
+
uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[];
|
|
5609
|
+
};
|
|
5063
5610
|
meta: object;
|
|
5064
5611
|
}>;
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
|
|
5073
|
-
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
5074
|
-
httpStatus: number;
|
|
5075
|
-
path?: string;
|
|
5076
|
-
stack?: string;
|
|
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;
|
|
5077
5619
|
};
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5620
|
+
output: {
|
|
5621
|
+
success: boolean;
|
|
5622
|
+
message: string;
|
|
5623
|
+
};
|
|
5624
|
+
meta: object;
|
|
5625
|
+
}>;
|
|
5626
|
+
addComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
5084
5627
|
input: {
|
|
5085
5628
|
[x: string]: unknown;
|
|
5086
5629
|
classId: string;
|
|
5630
|
+
content: string;
|
|
5631
|
+
announcementId: string;
|
|
5632
|
+
parentCommentId?: string | undefined;
|
|
5087
5633
|
};
|
|
5088
5634
|
output: {
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
remarks: string;
|
|
5092
|
-
teacher: {
|
|
5635
|
+
comment: {
|
|
5636
|
+
author: {
|
|
5093
5637
|
id: string;
|
|
5094
5638
|
username: string;
|
|
5639
|
+
profile: {
|
|
5640
|
+
displayName: string | null;
|
|
5641
|
+
profilePicture: string | null;
|
|
5642
|
+
profilePictureThumbnail: string | null;
|
|
5643
|
+
} | null;
|
|
5095
5644
|
};
|
|
5645
|
+
} & {
|
|
5646
|
+
id: string;
|
|
5647
|
+
content: string;
|
|
5096
5648
|
createdAt: Date;
|
|
5097
|
-
|
|
5649
|
+
modifiedAt: Date | null;
|
|
5650
|
+
announcementId: string;
|
|
5651
|
+
parentCommentId: string | null;
|
|
5652
|
+
authorId: string;
|
|
5653
|
+
};
|
|
5098
5654
|
};
|
|
5099
5655
|
meta: object;
|
|
5100
5656
|
}>;
|
|
5101
|
-
|
|
5657
|
+
updateComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
5102
5658
|
input: {
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
remarks: string;
|
|
5659
|
+
id: string;
|
|
5660
|
+
content: string;
|
|
5106
5661
|
};
|
|
5107
5662
|
output: {
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
remarks: string;
|
|
5111
|
-
teacher: {
|
|
5663
|
+
comment: {
|
|
5664
|
+
author: {
|
|
5112
5665
|
id: string;
|
|
5113
5666
|
username: string;
|
|
5667
|
+
profile: {
|
|
5668
|
+
displayName: string | null;
|
|
5669
|
+
profilePicture: string | null;
|
|
5670
|
+
profilePictureThumbnail: string | null;
|
|
5671
|
+
} | null;
|
|
5114
5672
|
};
|
|
5673
|
+
} & {
|
|
5674
|
+
id: string;
|
|
5675
|
+
content: string;
|
|
5115
5676
|
createdAt: Date;
|
|
5677
|
+
modifiedAt: Date | null;
|
|
5678
|
+
announcementId: string;
|
|
5679
|
+
parentCommentId: string | null;
|
|
5680
|
+
authorId: string;
|
|
5116
5681
|
};
|
|
5117
5682
|
};
|
|
5118
5683
|
meta: object;
|
|
5119
5684
|
}>;
|
|
5120
|
-
|
|
5685
|
+
deleteComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
5121
5686
|
input: {
|
|
5122
5687
|
id: string;
|
|
5123
|
-
|
|
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;
|
|
5124
5732
|
content: string;
|
|
5125
|
-
|
|
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;
|
|
5126
5749
|
};
|
|
5127
5750
|
output: {
|
|
5128
|
-
|
|
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;
|
|
5129
5763
|
id: string;
|
|
5130
|
-
|
|
5131
|
-
classId: string;
|
|
5764
|
+
userId: string;
|
|
5132
5765
|
createdAt: Date;
|
|
5133
|
-
|
|
5766
|
+
announcementId: string | null;
|
|
5767
|
+
commentId: string | null;
|
|
5134
5768
|
};
|
|
5135
5769
|
};
|
|
5136
5770
|
meta: object;
|
|
5137
5771
|
}>;
|
|
5138
|
-
|
|
5772
|
+
removeReaction: import("@trpc/server").TRPCMutationProcedure<{
|
|
5139
5773
|
input: {
|
|
5140
|
-
|
|
5774
|
+
announcementId?: string | undefined;
|
|
5775
|
+
commentId?: string | undefined;
|
|
5141
5776
|
};
|
|
5142
5777
|
output: {
|
|
5143
5778
|
success: boolean;
|
|
5144
5779
|
};
|
|
5145
5780
|
meta: object;
|
|
5146
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
|
+
}>;
|
|
5147
5803
|
}>>;
|
|
5148
5804
|
assignment: import("@trpc/server").TRPCBuiltRouter<{
|
|
5149
5805
|
ctx: import("../trpc.js").Context;
|
|
@@ -5162,6 +5818,37 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5162
5818
|
};
|
|
5163
5819
|
transformer: false;
|
|
5164
5820
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
5821
|
+
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
5822
|
+
input: {
|
|
5823
|
+
[x: string]: unknown;
|
|
5824
|
+
classId: string;
|
|
5825
|
+
movedId: string;
|
|
5826
|
+
position: "start" | "end" | "before" | "after";
|
|
5827
|
+
targetId?: string | undefined;
|
|
5828
|
+
};
|
|
5829
|
+
output: {
|
|
5830
|
+
type: import(".prisma/client").$Enums.AssignmentType;
|
|
5831
|
+
id: string;
|
|
5832
|
+
title: string;
|
|
5833
|
+
dueDate: Date;
|
|
5834
|
+
maxGrade: number | null;
|
|
5835
|
+
classId: string;
|
|
5836
|
+
eventId: string | null;
|
|
5837
|
+
markSchemeId: string | null;
|
|
5838
|
+
gradingBoundaryId: string | null;
|
|
5839
|
+
instructions: string;
|
|
5840
|
+
weight: number;
|
|
5841
|
+
graded: boolean;
|
|
5842
|
+
sectionId: string | null;
|
|
5843
|
+
template: boolean;
|
|
5844
|
+
createdAt: Date | null;
|
|
5845
|
+
modifiedAt: Date | null;
|
|
5846
|
+
teacherId: string;
|
|
5847
|
+
inProgress: boolean;
|
|
5848
|
+
order: number | null;
|
|
5849
|
+
} | null;
|
|
5850
|
+
meta: object;
|
|
5851
|
+
}>;
|
|
5165
5852
|
order: import("@trpc/server").TRPCMutationProcedure<{
|
|
5166
5853
|
input: {
|
|
5167
5854
|
[x: string]: unknown;
|
|
@@ -5189,7 +5876,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5189
5876
|
teacherId: string;
|
|
5190
5877
|
inProgress: boolean;
|
|
5191
5878
|
order: number | null;
|
|
5192
|
-
};
|
|
5879
|
+
} | null;
|
|
5193
5880
|
meta: object;
|
|
5194
5881
|
}>;
|
|
5195
5882
|
move: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -5197,7 +5884,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5197
5884
|
[x: string]: unknown;
|
|
5198
5885
|
classId: string;
|
|
5199
5886
|
id: string;
|
|
5200
|
-
targetSectionId
|
|
5887
|
+
targetSectionId?: string | null | undefined;
|
|
5201
5888
|
};
|
|
5202
5889
|
output: {
|
|
5203
5890
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
@@ -5219,7 +5906,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5219
5906
|
teacherId: string;
|
|
5220
5907
|
inProgress: boolean;
|
|
5221
5908
|
order: number | null;
|
|
5222
|
-
};
|
|
5909
|
+
} | null;
|
|
5223
5910
|
meta: object;
|
|
5224
5911
|
}>;
|
|
5225
5912
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -5367,6 +6054,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5367
6054
|
folderId: string | null;
|
|
5368
6055
|
conversationId: string | null;
|
|
5369
6056
|
messageId: string | null;
|
|
6057
|
+
announcementId: string | null;
|
|
5370
6058
|
schoolDevelopementProgramId: string | null;
|
|
5371
6059
|
} | null;
|
|
5372
6060
|
thumbnailId: string | null;
|
|
@@ -5534,6 +6222,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5534
6222
|
folderId: string | null;
|
|
5535
6223
|
conversationId: string | null;
|
|
5536
6224
|
messageId: string | null;
|
|
6225
|
+
announcementId: string | null;
|
|
5537
6226
|
schoolDevelopementProgramId: string | null;
|
|
5538
6227
|
}[];
|
|
5539
6228
|
annotations: {
|
|
@@ -5561,6 +6250,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5561
6250
|
folderId: string | null;
|
|
5562
6251
|
conversationId: string | null;
|
|
5563
6252
|
messageId: string | null;
|
|
6253
|
+
announcementId: string | null;
|
|
5564
6254
|
schoolDevelopementProgramId: string | null;
|
|
5565
6255
|
}[];
|
|
5566
6256
|
} & {
|
|
@@ -5619,6 +6309,18 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5619
6309
|
student: {
|
|
5620
6310
|
id: string;
|
|
5621
6311
|
username: string;
|
|
6312
|
+
profile: {
|
|
6313
|
+
id: string;
|
|
6314
|
+
location: string | null;
|
|
6315
|
+
userId: string;
|
|
6316
|
+
createdAt: Date;
|
|
6317
|
+
displayName: string | null;
|
|
6318
|
+
bio: string | null;
|
|
6319
|
+
website: string | null;
|
|
6320
|
+
profilePicture: string | null;
|
|
6321
|
+
profilePictureThumbnail: string | null;
|
|
6322
|
+
updatedAt: Date;
|
|
6323
|
+
} | null;
|
|
5622
6324
|
};
|
|
5623
6325
|
attachments: {
|
|
5624
6326
|
path: string;
|
|
@@ -5645,6 +6347,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5645
6347
|
folderId: string | null;
|
|
5646
6348
|
conversationId: string | null;
|
|
5647
6349
|
messageId: string | null;
|
|
6350
|
+
announcementId: string | null;
|
|
5648
6351
|
schoolDevelopementProgramId: string | null;
|
|
5649
6352
|
}[];
|
|
5650
6353
|
annotations: {
|
|
@@ -5672,6 +6375,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5672
6375
|
folderId: string | null;
|
|
5673
6376
|
conversationId: string | null;
|
|
5674
6377
|
messageId: string | null;
|
|
6378
|
+
announcementId: string | null;
|
|
5675
6379
|
schoolDevelopementProgramId: string | null;
|
|
5676
6380
|
}[];
|
|
5677
6381
|
id: string;
|
|
@@ -5739,8 +6443,16 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5739
6443
|
id: string;
|
|
5740
6444
|
username: string;
|
|
5741
6445
|
profile: {
|
|
6446
|
+
id: string;
|
|
6447
|
+
location: string | null;
|
|
6448
|
+
userId: string;
|
|
6449
|
+
createdAt: Date;
|
|
5742
6450
|
displayName: string | null;
|
|
6451
|
+
bio: string | null;
|
|
6452
|
+
website: string | null;
|
|
5743
6453
|
profilePicture: string | null;
|
|
6454
|
+
profilePictureThumbnail: string | null;
|
|
6455
|
+
updatedAt: Date;
|
|
5744
6456
|
} | null;
|
|
5745
6457
|
};
|
|
5746
6458
|
attachments: {
|
|
@@ -5768,6 +6480,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5768
6480
|
folderId: string | null;
|
|
5769
6481
|
conversationId: string | null;
|
|
5770
6482
|
messageId: string | null;
|
|
6483
|
+
announcementId: string | null;
|
|
5771
6484
|
schoolDevelopementProgramId: string | null;
|
|
5772
6485
|
}[];
|
|
5773
6486
|
annotations: {
|
|
@@ -5795,6 +6508,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5795
6508
|
folderId: string | null;
|
|
5796
6509
|
conversationId: string | null;
|
|
5797
6510
|
messageId: string | null;
|
|
6511
|
+
announcementId: string | null;
|
|
5798
6512
|
schoolDevelopementProgramId: string | null;
|
|
5799
6513
|
}[];
|
|
5800
6514
|
id: string;
|
|
@@ -5895,6 +6609,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5895
6609
|
folderId: string | null;
|
|
5896
6610
|
conversationId: string | null;
|
|
5897
6611
|
messageId: string | null;
|
|
6612
|
+
announcementId: string | null;
|
|
5898
6613
|
schoolDevelopementProgramId: string | null;
|
|
5899
6614
|
}[];
|
|
5900
6615
|
} & {
|
|
@@ -5994,6 +6709,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5994
6709
|
folderId: string | null;
|
|
5995
6710
|
conversationId: string | null;
|
|
5996
6711
|
messageId: string | null;
|
|
6712
|
+
announcementId: string | null;
|
|
5997
6713
|
schoolDevelopementProgramId: string | null;
|
|
5998
6714
|
} | null;
|
|
5999
6715
|
} & {
|
|
@@ -6021,6 +6737,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6021
6737
|
folderId: string | null;
|
|
6022
6738
|
conversationId: string | null;
|
|
6023
6739
|
messageId: string | null;
|
|
6740
|
+
announcementId: string | null;
|
|
6024
6741
|
schoolDevelopementProgramId: string | null;
|
|
6025
6742
|
})[];
|
|
6026
6743
|
id: string;
|
|
@@ -6054,10 +6771,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6054
6771
|
}[] | undefined;
|
|
6055
6772
|
return?: boolean | undefined;
|
|
6056
6773
|
rubricGrades?: {
|
|
6774
|
+
comments: string;
|
|
6057
6775
|
criteriaId: string;
|
|
6058
6776
|
selectedLevelId: string;
|
|
6059
6777
|
points: number;
|
|
6060
|
-
comments: string;
|
|
6061
6778
|
}[] | undefined;
|
|
6062
6779
|
};
|
|
6063
6780
|
output: {
|
|
@@ -6134,6 +6851,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6134
6851
|
folderId: string | null;
|
|
6135
6852
|
conversationId: string | null;
|
|
6136
6853
|
messageId: string | null;
|
|
6854
|
+
announcementId: string | null;
|
|
6137
6855
|
schoolDevelopementProgramId: string | null;
|
|
6138
6856
|
}[];
|
|
6139
6857
|
} & {
|
|
@@ -6338,6 +7056,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6338
7056
|
folderId: string | null;
|
|
6339
7057
|
conversationId: string | null;
|
|
6340
7058
|
messageId: string | null;
|
|
7059
|
+
announcementId: string | null;
|
|
6341
7060
|
schoolDevelopementProgramId: string | null;
|
|
6342
7061
|
}[];
|
|
6343
7062
|
eventAttached: {
|
|
@@ -6428,6 +7147,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6428
7147
|
folderId: string | null;
|
|
6429
7148
|
conversationId: string | null;
|
|
6430
7149
|
messageId: string | null;
|
|
7150
|
+
announcementId: string | null;
|
|
6431
7151
|
schoolDevelopementProgramId: string | null;
|
|
6432
7152
|
}[];
|
|
6433
7153
|
eventAttached: {
|
|
@@ -6519,6 +7239,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6519
7239
|
folderId: string | null;
|
|
6520
7240
|
conversationId: string | null;
|
|
6521
7241
|
messageId: string | null;
|
|
7242
|
+
announcementId: string | null;
|
|
6522
7243
|
schoolDevelopementProgramId: string | null;
|
|
6523
7244
|
}[];
|
|
6524
7245
|
eventAttached: {
|
|
@@ -6609,6 +7330,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6609
7330
|
folderId: string | null;
|
|
6610
7331
|
conversationId: string | null;
|
|
6611
7332
|
messageId: string | null;
|
|
7333
|
+
announcementId: string | null;
|
|
6612
7334
|
schoolDevelopementProgramId: string | null;
|
|
6613
7335
|
}[];
|
|
6614
7336
|
eventAttached: {
|
|
@@ -6865,6 +7587,22 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6865
7587
|
};
|
|
6866
7588
|
meta: object;
|
|
6867
7589
|
}>;
|
|
7590
|
+
reorder: import("@trpc/server").TRPCMutationProcedure<{
|
|
7591
|
+
input: {
|
|
7592
|
+
classId: string;
|
|
7593
|
+
movedId: string;
|
|
7594
|
+
position: "start" | "end" | "before" | "after";
|
|
7595
|
+
targetId?: string | undefined;
|
|
7596
|
+
};
|
|
7597
|
+
output: {
|
|
7598
|
+
id: string;
|
|
7599
|
+
name: string;
|
|
7600
|
+
color: string | null;
|
|
7601
|
+
classId: string;
|
|
7602
|
+
order: number | null;
|
|
7603
|
+
} | null;
|
|
7604
|
+
meta: object;
|
|
7605
|
+
}>;
|
|
6868
7606
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6869
7607
|
input: {
|
|
6870
7608
|
id: string;
|
|
@@ -7516,6 +8254,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7516
8254
|
folderId: string | null;
|
|
7517
8255
|
conversationId: string | null;
|
|
7518
8256
|
messageId: string | null;
|
|
8257
|
+
announcementId: string | null;
|
|
7519
8258
|
schoolDevelopementProgramId: string | null;
|
|
7520
8259
|
};
|
|
7521
8260
|
meta: object;
|
|
@@ -7557,6 +8296,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7557
8296
|
folderId: string | null;
|
|
7558
8297
|
conversationId: string | null;
|
|
7559
8298
|
messageId: string | null;
|
|
8299
|
+
announcementId: string | null;
|
|
7560
8300
|
schoolDevelopementProgramId: string | null;
|
|
7561
8301
|
};
|
|
7562
8302
|
meta: object;
|
|
@@ -7948,9 +8688,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7948
8688
|
title: string;
|
|
7949
8689
|
content: string;
|
|
7950
8690
|
createdAt: Date;
|
|
7951
|
-
read: boolean;
|
|
7952
|
-
receiverId: string;
|
|
7953
8691
|
senderId: string | null;
|
|
8692
|
+
receiverId: string;
|
|
8693
|
+
read: boolean;
|
|
7954
8694
|
})[];
|
|
7955
8695
|
meta: object;
|
|
7956
8696
|
}>;
|
|
@@ -7970,9 +8710,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7970
8710
|
title: string;
|
|
7971
8711
|
content: string;
|
|
7972
8712
|
createdAt: Date;
|
|
7973
|
-
read: boolean;
|
|
7974
|
-
receiverId: string;
|
|
7975
8713
|
senderId: string | null;
|
|
8714
|
+
receiverId: string;
|
|
8715
|
+
read: boolean;
|
|
7976
8716
|
}) | null;
|
|
7977
8717
|
meta: object;
|
|
7978
8718
|
}>;
|
|
@@ -7987,9 +8727,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7987
8727
|
title: string;
|
|
7988
8728
|
content: string;
|
|
7989
8729
|
createdAt: Date;
|
|
7990
|
-
read: boolean;
|
|
7991
|
-
receiverId: string;
|
|
7992
8730
|
senderId: string | null;
|
|
8731
|
+
receiverId: string;
|
|
8732
|
+
read: boolean;
|
|
7993
8733
|
};
|
|
7994
8734
|
meta: object;
|
|
7995
8735
|
}>;
|
|
@@ -8011,9 +8751,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8011
8751
|
title: string;
|
|
8012
8752
|
content: string;
|
|
8013
8753
|
createdAt: Date;
|
|
8014
|
-
read: boolean;
|
|
8015
|
-
receiverId: string;
|
|
8016
8754
|
senderId: string | null;
|
|
8755
|
+
receiverId: string;
|
|
8756
|
+
read: boolean;
|
|
8017
8757
|
};
|
|
8018
8758
|
meta: object;
|
|
8019
8759
|
}>;
|