@studious-lms/server 1.2.34 → 1.2.36

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.
@@ -1014,9 +1014,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1014
1014
  content: string;
1015
1015
  createdAt: Date;
1016
1016
  modifiedAt: Date | null;
1017
- announcementId: string;
1017
+ announcementId: string | null;
1018
1018
  parentCommentId: string | null;
1019
1019
  authorId: string;
1020
+ studentQuestionProgressId: string | null;
1020
1021
  };
1021
1022
  };
1022
1023
  meta: object;
@@ -1042,9 +1043,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1042
1043
  content: string;
1043
1044
  createdAt: Date;
1044
1045
  modifiedAt: Date | null;
1045
- announcementId: string;
1046
+ announcementId: string | null;
1046
1047
  parentCommentId: string | null;
1047
1048
  authorId: string;
1049
+ studentQuestionProgressId: string | null;
1048
1050
  };
1049
1051
  };
1050
1052
  meta: object;
@@ -1090,18 +1092,20 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1090
1092
  content: string;
1091
1093
  createdAt: Date;
1092
1094
  modifiedAt: Date | null;
1093
- announcementId: string;
1095
+ announcementId: string | null;
1094
1096
  parentCommentId: string | null;
1095
1097
  authorId: string;
1098
+ studentQuestionProgressId: string | null;
1096
1099
  })[];
1097
1100
  } & {
1098
1101
  id: string;
1099
1102
  content: string;
1100
1103
  createdAt: Date;
1101
1104
  modifiedAt: Date | null;
1102
- announcementId: string;
1105
+ announcementId: string | null;
1103
1106
  parentCommentId: string | null;
1104
1107
  authorId: string;
1108
+ studentQuestionProgressId: string | null;
1105
1109
  })[];
1106
1110
  };
1107
1111
  meta: object;
@@ -4845,7 +4849,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4845
4849
  order: number | null;
4846
4850
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4847
4851
  updatedAt: Date;
4848
- points: number | null;
4852
+ points: number;
4849
4853
  question: string;
4850
4854
  worksheetId: string;
4851
4855
  answer: string;
@@ -4935,7 +4939,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4935
4939
  order: number | null;
4936
4940
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4937
4941
  updatedAt: Date;
4938
- points: number | null;
4942
+ points: number;
4939
4943
  question: string;
4940
4944
  worksheetId: string;
4941
4945
  answer: string;
@@ -4973,7 +4977,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4973
4977
  order: number | null;
4974
4978
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4975
4979
  updatedAt: Date;
4976
- points: number | null;
4980
+ points: number;
4977
4981
  question: string;
4978
4982
  worksheetId: string;
4979
4983
  answer: string;
@@ -4993,7 +4997,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4993
4997
  order: number | null;
4994
4998
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4995
4999
  updatedAt: Date;
4996
- points: number | null;
5000
+ points: number;
4997
5001
  question: string;
4998
5002
  worksheetId: string;
4999
5003
  answer: string;
@@ -5006,17 +5010,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5006
5010
  worksheetId: string;
5007
5011
  };
5008
5012
  output: {
5009
- responses: {
5013
+ responses: ({
5014
+ comments: {
5015
+ reactions: {
5016
+ type: import(".prisma/client").$Enums.ReactionType;
5017
+ user: {
5018
+ id: string;
5019
+ username: string;
5020
+ profile: {
5021
+ displayName: string | null;
5022
+ profilePicture: string | null;
5023
+ profilePictureThumbnail: string | null;
5024
+ } | null;
5025
+ };
5026
+ }[];
5027
+ replies: {
5028
+ id: string;
5029
+ content: string;
5030
+ author: {
5031
+ id: string;
5032
+ username: string;
5033
+ profile: {
5034
+ displayName: string | null;
5035
+ profilePicture: string | null;
5036
+ profilePictureThumbnail: string | null;
5037
+ } | null;
5038
+ };
5039
+ }[];
5040
+ }[];
5041
+ } & {
5010
5042
  id: string;
5011
5043
  feedback: string | null;
5012
5044
  studentId: string;
5013
5045
  createdAt: Date;
5014
- updatedAt: Date;
5046
+ updatedAt: Date | null;
5047
+ points: number;
5015
5048
  questionId: string;
5016
5049
  response: string;
5017
- isCorrect: boolean;
5018
5050
  studentWorksheetResponseId: string | null;
5019
- }[];
5051
+ isCorrect: boolean;
5052
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5053
+ })[];
5020
5054
  } & {
5021
5055
  id: string;
5022
5056
  submissionId: string | null;
@@ -5041,11 +5075,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5041
5075
  feedback: string | null;
5042
5076
  studentId: string;
5043
5077
  createdAt: Date;
5044
- updatedAt: Date;
5078
+ updatedAt: Date | null;
5079
+ points: number;
5045
5080
  questionId: string;
5046
5081
  response: string;
5047
- isCorrect: boolean;
5048
5082
  studentWorksheetResponseId: string | null;
5083
+ isCorrect: boolean;
5084
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5049
5085
  }[];
5050
5086
  } & {
5051
5087
  id: string;
@@ -5069,11 +5105,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5069
5105
  feedback: string | null;
5070
5106
  studentId: string;
5071
5107
  createdAt: Date;
5072
- updatedAt: Date;
5108
+ updatedAt: Date | null;
5109
+ points: number;
5073
5110
  questionId: string;
5074
5111
  response: string;
5075
- isCorrect: boolean;
5076
5112
  studentWorksheetResponseId: string | null;
5113
+ isCorrect: boolean;
5114
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5077
5115
  }[];
5078
5116
  } & {
5079
5117
  id: string;
@@ -5087,115 +5125,156 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5087
5125
  };
5088
5126
  meta: object;
5089
5127
  }>;
5090
- getOrCreateWorksheetResponse: import("@trpc/server").TRPCMutationProcedure<{
5128
+ gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
5091
5129
  input: {
5092
- studentId: string;
5093
- worksheetId: string;
5130
+ questionId: string;
5131
+ studentWorksheetResponseId: string;
5132
+ isCorrect: boolean;
5133
+ feedback?: string | undefined;
5134
+ points?: number | undefined;
5135
+ response?: string | undefined;
5136
+ responseId?: string | undefined;
5137
+ markschemeState?: any;
5138
+ };
5139
+ output: any;
5140
+ meta: object;
5141
+ }>;
5142
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
5143
+ input: {
5144
+ comment: string;
5145
+ responseId: string;
5094
5146
  };
5095
5147
  output: {
5096
- responses: ({
5097
- question: {
5098
- type: import(".prisma/client").$Enums.WorksheetQuestionType;
5148
+ id: string;
5149
+ content: string;
5150
+ createdAt: Date;
5151
+ modifiedAt: Date | null;
5152
+ announcementId: string | null;
5153
+ parentCommentId: string | null;
5154
+ authorId: string;
5155
+ studentQuestionProgressId: string | null;
5156
+ };
5157
+ meta: object;
5158
+ }>;
5159
+ }>>;
5160
+ comment: import("@trpc/server").TRPCBuiltRouter<{
5161
+ ctx: import("../trpc.js").Context;
5162
+ meta: object;
5163
+ errorShape: {
5164
+ data: {
5165
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
5166
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
5167
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
5168
+ httpStatus: number;
5169
+ path?: string;
5170
+ stack?: string;
5171
+ };
5172
+ message: string;
5173
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
5174
+ };
5175
+ transformer: false;
5176
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
5177
+ get: import("@trpc/server").TRPCQueryProcedure<{
5178
+ input: {
5179
+ id: string;
5180
+ };
5181
+ output: {
5182
+ reactions: {
5183
+ type: import(".prisma/client").$Enums.ReactionType;
5184
+ user: {
5099
5185
  id: string;
5100
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
5101
- createdAt: Date;
5102
- order: number | null;
5103
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5104
- updatedAt: Date;
5105
- points: number | null;
5106
- question: string;
5107
- worksheetId: string;
5108
- answer: string;
5186
+ username: string;
5187
+ profile: {
5188
+ displayName: string | null;
5189
+ profilePicture: string | null;
5190
+ profilePictureThumbnail: string | null;
5191
+ } | null;
5109
5192
  };
5110
- } & {
5193
+ }[];
5194
+ replies: {
5111
5195
  id: string;
5112
- feedback: string | null;
5113
- studentId: string;
5114
- createdAt: Date;
5115
- updatedAt: Date;
5116
- questionId: string;
5117
- response: string;
5118
- isCorrect: boolean;
5119
- studentWorksheetResponseId: string | null;
5120
- })[];
5121
- } & {
5196
+ content: string;
5197
+ author: {
5198
+ id: string;
5199
+ username: string;
5200
+ profile: {
5201
+ displayName: string | null;
5202
+ profilePicture: string | null;
5203
+ profilePictureThumbnail: string | null;
5204
+ } | null;
5205
+ };
5206
+ }[];
5207
+ };
5208
+ meta: object;
5209
+ }>;
5210
+ replyToComment: import("@trpc/server").TRPCMutationProcedure<{
5211
+ input: {
5212
+ content: string;
5213
+ parentCommentId: string;
5214
+ };
5215
+ output: {
5122
5216
  id: string;
5123
- submissionId: string | null;
5124
- studentId: string;
5217
+ content: string;
5125
5218
  createdAt: Date;
5126
- updatedAt: Date;
5127
- submittedAt: Date | null;
5128
- submitted: boolean;
5129
- worksheetId: string;
5219
+ modifiedAt: Date | null;
5220
+ announcementId: string | null;
5221
+ parentCommentId: string | null;
5222
+ authorId: string;
5223
+ studentQuestionProgressId: string | null;
5130
5224
  };
5131
5225
  meta: object;
5132
5226
  }>;
5133
- getWorksheetResponse: import("@trpc/server").TRPCQueryProcedure<{
5227
+ addReaction: import("@trpc/server").TRPCMutationProcedure<{
5134
5228
  input: {
5135
- worksheetId: string;
5229
+ type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
5230
+ id: string;
5136
5231
  };
5137
- output: ({
5138
- student: {
5139
- id: string;
5140
- username: string;
5141
- profile: {
5142
- displayName: string | null;
5143
- profilePicture: string | null;
5144
- } | null;
5145
- };
5146
- responses: ({
5147
- question: {
5148
- type: import(".prisma/client").$Enums.WorksheetQuestionType;
5232
+ output: {
5233
+ reaction: {
5234
+ user: {
5149
5235
  id: string;
5150
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
5151
- createdAt: Date;
5152
- order: number | null;
5153
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5154
- updatedAt: Date;
5155
- points: number | null;
5156
- question: string;
5157
- worksheetId: string;
5158
- answer: string;
5236
+ username: string;
5237
+ profile: {
5238
+ displayName: string | null;
5239
+ profilePicture: string | null;
5240
+ profilePictureThumbnail: string | null;
5241
+ } | null;
5159
5242
  };
5160
5243
  } & {
5244
+ type: import(".prisma/client").$Enums.ReactionType;
5161
5245
  id: string;
5162
- feedback: string | null;
5163
- studentId: string;
5246
+ userId: string;
5164
5247
  createdAt: Date;
5165
- updatedAt: Date;
5166
- questionId: string;
5167
- response: string;
5168
- isCorrect: boolean;
5169
- studentWorksheetResponseId: string | null;
5170
- })[];
5171
- } & {
5172
- id: string;
5173
- submissionId: string | null;
5174
- studentId: string;
5175
- createdAt: Date;
5176
- updatedAt: Date;
5177
- submittedAt: Date | null;
5178
- submitted: boolean;
5179
- worksheetId: string;
5180
- }) | null;
5248
+ announcementId: string | null;
5249
+ commentId: string | null;
5250
+ };
5251
+ };
5181
5252
  meta: object;
5182
5253
  }>;
5183
- gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
5254
+ removeReaction: import("@trpc/server").TRPCMutationProcedure<{
5184
5255
  input: {
5185
- responseId: string;
5186
- isCorrect: boolean;
5187
- feedback?: string | undefined;
5256
+ commentId?: string | undefined;
5188
5257
  };
5189
5258
  output: {
5190
- id: string;
5191
- feedback: string | null;
5192
- studentId: string;
5193
- createdAt: Date;
5194
- updatedAt: Date;
5195
- questionId: string;
5196
- response: string;
5197
- isCorrect: boolean;
5198
- studentWorksheetResponseId: string | null;
5259
+ success: boolean;
5260
+ };
5261
+ meta: object;
5262
+ }>;
5263
+ getReactions: import("@trpc/server").TRPCQueryProcedure<{
5264
+ input: {
5265
+ commentId?: string | undefined;
5266
+ };
5267
+ output: {
5268
+ counts: {
5269
+ THUMBSUP: number;
5270
+ CELEBRATE: number;
5271
+ CARE: number;
5272
+ HEART: number;
5273
+ IDEA: number;
5274
+ HAPPY: number;
5275
+ };
5276
+ userReaction: import(".prisma/client").$Enums.ReactionType | null;
5277
+ total: number;
5199
5278
  };
5200
5279
  meta: object;
5201
5280
  }>;
@@ -6219,9 +6298,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6219
6298
  content: string;
6220
6299
  createdAt: Date;
6221
6300
  modifiedAt: Date | null;
6222
- announcementId: string;
6301
+ announcementId: string | null;
6223
6302
  parentCommentId: string | null;
6224
6303
  authorId: string;
6304
+ studentQuestionProgressId: string | null;
6225
6305
  };
6226
6306
  };
6227
6307
  meta: object;
@@ -6247,9 +6327,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6247
6327
  content: string;
6248
6328
  createdAt: Date;
6249
6329
  modifiedAt: Date | null;
6250
- announcementId: string;
6330
+ announcementId: string | null;
6251
6331
  parentCommentId: string | null;
6252
6332
  authorId: string;
6333
+ studentQuestionProgressId: string | null;
6253
6334
  };
6254
6335
  };
6255
6336
  meta: object;
@@ -6295,18 +6376,20 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6295
6376
  content: string;
6296
6377
  createdAt: Date;
6297
6378
  modifiedAt: Date | null;
6298
- announcementId: string;
6379
+ announcementId: string | null;
6299
6380
  parentCommentId: string | null;
6300
6381
  authorId: string;
6382
+ studentQuestionProgressId: string | null;
6301
6383
  })[];
6302
6384
  } & {
6303
6385
  id: string;
6304
6386
  content: string;
6305
6387
  createdAt: Date;
6306
6388
  modifiedAt: Date | null;
6307
- announcementId: string;
6389
+ announcementId: string | null;
6308
6390
  parentCommentId: string | null;
6309
6391
  authorId: string;
6392
+ studentQuestionProgressId: string | null;
6310
6393
  })[];
6311
6394
  };
6312
6395
  meta: object;
@@ -10050,7 +10133,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10050
10133
  order: number | null;
10051
10134
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10052
10135
  updatedAt: Date;
10053
- points: number | null;
10136
+ points: number;
10054
10137
  question: string;
10055
10138
  worksheetId: string;
10056
10139
  answer: string;
@@ -10140,7 +10223,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10140
10223
  order: number | null;
10141
10224
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10142
10225
  updatedAt: Date;
10143
- points: number | null;
10226
+ points: number;
10144
10227
  question: string;
10145
10228
  worksheetId: string;
10146
10229
  answer: string;
@@ -10178,7 +10261,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10178
10261
  order: number | null;
10179
10262
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10180
10263
  updatedAt: Date;
10181
- points: number | null;
10264
+ points: number;
10182
10265
  question: string;
10183
10266
  worksheetId: string;
10184
10267
  answer: string;
@@ -10198,7 +10281,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10198
10281
  order: number | null;
10199
10282
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10200
10283
  updatedAt: Date;
10201
- points: number | null;
10284
+ points: number;
10202
10285
  question: string;
10203
10286
  worksheetId: string;
10204
10287
  answer: string;
@@ -10211,17 +10294,47 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10211
10294
  worksheetId: string;
10212
10295
  };
10213
10296
  output: {
10214
- responses: {
10297
+ responses: ({
10298
+ comments: {
10299
+ reactions: {
10300
+ type: import(".prisma/client").$Enums.ReactionType;
10301
+ user: {
10302
+ id: string;
10303
+ username: string;
10304
+ profile: {
10305
+ displayName: string | null;
10306
+ profilePicture: string | null;
10307
+ profilePictureThumbnail: string | null;
10308
+ } | null;
10309
+ };
10310
+ }[];
10311
+ replies: {
10312
+ id: string;
10313
+ content: string;
10314
+ author: {
10315
+ id: string;
10316
+ username: string;
10317
+ profile: {
10318
+ displayName: string | null;
10319
+ profilePicture: string | null;
10320
+ profilePictureThumbnail: string | null;
10321
+ } | null;
10322
+ };
10323
+ }[];
10324
+ }[];
10325
+ } & {
10215
10326
  id: string;
10216
10327
  feedback: string | null;
10217
10328
  studentId: string;
10218
10329
  createdAt: Date;
10219
- updatedAt: Date;
10330
+ updatedAt: Date | null;
10331
+ points: number;
10220
10332
  questionId: string;
10221
10333
  response: string;
10222
- isCorrect: boolean;
10223
10334
  studentWorksheetResponseId: string | null;
10224
- }[];
10335
+ isCorrect: boolean;
10336
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10337
+ })[];
10225
10338
  } & {
10226
10339
  id: string;
10227
10340
  submissionId: string | null;
@@ -10246,11 +10359,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10246
10359
  feedback: string | null;
10247
10360
  studentId: string;
10248
10361
  createdAt: Date;
10249
- updatedAt: Date;
10362
+ updatedAt: Date | null;
10363
+ points: number;
10250
10364
  questionId: string;
10251
10365
  response: string;
10252
- isCorrect: boolean;
10253
10366
  studentWorksheetResponseId: string | null;
10367
+ isCorrect: boolean;
10368
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10254
10369
  }[];
10255
10370
  } & {
10256
10371
  id: string;
@@ -10274,11 +10389,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10274
10389
  feedback: string | null;
10275
10390
  studentId: string;
10276
10391
  createdAt: Date;
10277
- updatedAt: Date;
10392
+ updatedAt: Date | null;
10393
+ points: number;
10278
10394
  questionId: string;
10279
10395
  response: string;
10280
- isCorrect: boolean;
10281
10396
  studentWorksheetResponseId: string | null;
10397
+ isCorrect: boolean;
10398
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10282
10399
  }[];
10283
10400
  } & {
10284
10401
  id: string;
@@ -10292,115 +10409,156 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10292
10409
  };
10293
10410
  meta: object;
10294
10411
  }>;
10295
- getOrCreateWorksheetResponse: import("@trpc/server").TRPCMutationProcedure<{
10412
+ gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
10296
10413
  input: {
10297
- studentId: string;
10298
- worksheetId: string;
10414
+ questionId: string;
10415
+ studentWorksheetResponseId: string;
10416
+ isCorrect: boolean;
10417
+ feedback?: string | undefined;
10418
+ points?: number | undefined;
10419
+ response?: string | undefined;
10420
+ responseId?: string | undefined;
10421
+ markschemeState?: any;
10422
+ };
10423
+ output: any;
10424
+ meta: object;
10425
+ }>;
10426
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
10427
+ input: {
10428
+ comment: string;
10429
+ responseId: string;
10299
10430
  };
10300
10431
  output: {
10301
- responses: ({
10302
- question: {
10303
- type: import(".prisma/client").$Enums.WorksheetQuestionType;
10432
+ id: string;
10433
+ content: string;
10434
+ createdAt: Date;
10435
+ modifiedAt: Date | null;
10436
+ announcementId: string | null;
10437
+ parentCommentId: string | null;
10438
+ authorId: string;
10439
+ studentQuestionProgressId: string | null;
10440
+ };
10441
+ meta: object;
10442
+ }>;
10443
+ }>>;
10444
+ comment: import("@trpc/server").TRPCBuiltRouter<{
10445
+ ctx: import("../trpc.js").Context;
10446
+ meta: object;
10447
+ errorShape: {
10448
+ data: {
10449
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
10450
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
10451
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
10452
+ httpStatus: number;
10453
+ path?: string;
10454
+ stack?: string;
10455
+ };
10456
+ message: string;
10457
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
10458
+ };
10459
+ transformer: false;
10460
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
10461
+ get: import("@trpc/server").TRPCQueryProcedure<{
10462
+ input: {
10463
+ id: string;
10464
+ };
10465
+ output: {
10466
+ reactions: {
10467
+ type: import(".prisma/client").$Enums.ReactionType;
10468
+ user: {
10304
10469
  id: string;
10305
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
10306
- createdAt: Date;
10307
- order: number | null;
10308
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10309
- updatedAt: Date;
10310
- points: number | null;
10311
- question: string;
10312
- worksheetId: string;
10313
- answer: string;
10470
+ username: string;
10471
+ profile: {
10472
+ displayName: string | null;
10473
+ profilePicture: string | null;
10474
+ profilePictureThumbnail: string | null;
10475
+ } | null;
10314
10476
  };
10315
- } & {
10477
+ }[];
10478
+ replies: {
10316
10479
  id: string;
10317
- feedback: string | null;
10318
- studentId: string;
10319
- createdAt: Date;
10320
- updatedAt: Date;
10321
- questionId: string;
10322
- response: string;
10323
- isCorrect: boolean;
10324
- studentWorksheetResponseId: string | null;
10325
- })[];
10326
- } & {
10480
+ content: string;
10481
+ author: {
10482
+ id: string;
10483
+ username: string;
10484
+ profile: {
10485
+ displayName: string | null;
10486
+ profilePicture: string | null;
10487
+ profilePictureThumbnail: string | null;
10488
+ } | null;
10489
+ };
10490
+ }[];
10491
+ };
10492
+ meta: object;
10493
+ }>;
10494
+ replyToComment: import("@trpc/server").TRPCMutationProcedure<{
10495
+ input: {
10496
+ content: string;
10497
+ parentCommentId: string;
10498
+ };
10499
+ output: {
10327
10500
  id: string;
10328
- submissionId: string | null;
10329
- studentId: string;
10501
+ content: string;
10330
10502
  createdAt: Date;
10331
- updatedAt: Date;
10332
- submittedAt: Date | null;
10333
- submitted: boolean;
10334
- worksheetId: string;
10503
+ modifiedAt: Date | null;
10504
+ announcementId: string | null;
10505
+ parentCommentId: string | null;
10506
+ authorId: string;
10507
+ studentQuestionProgressId: string | null;
10335
10508
  };
10336
10509
  meta: object;
10337
10510
  }>;
10338
- getWorksheetResponse: import("@trpc/server").TRPCQueryProcedure<{
10511
+ addReaction: import("@trpc/server").TRPCMutationProcedure<{
10339
10512
  input: {
10340
- worksheetId: string;
10513
+ type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
10514
+ id: string;
10341
10515
  };
10342
- output: ({
10343
- student: {
10344
- id: string;
10345
- username: string;
10346
- profile: {
10347
- displayName: string | null;
10348
- profilePicture: string | null;
10349
- } | null;
10350
- };
10351
- responses: ({
10352
- question: {
10353
- type: import(".prisma/client").$Enums.WorksheetQuestionType;
10516
+ output: {
10517
+ reaction: {
10518
+ user: {
10354
10519
  id: string;
10355
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
10356
- createdAt: Date;
10357
- order: number | null;
10358
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10359
- updatedAt: Date;
10360
- points: number | null;
10361
- question: string;
10362
- worksheetId: string;
10363
- answer: string;
10520
+ username: string;
10521
+ profile: {
10522
+ displayName: string | null;
10523
+ profilePicture: string | null;
10524
+ profilePictureThumbnail: string | null;
10525
+ } | null;
10364
10526
  };
10365
10527
  } & {
10528
+ type: import(".prisma/client").$Enums.ReactionType;
10366
10529
  id: string;
10367
- feedback: string | null;
10368
- studentId: string;
10530
+ userId: string;
10369
10531
  createdAt: Date;
10370
- updatedAt: Date;
10371
- questionId: string;
10372
- response: string;
10373
- isCorrect: boolean;
10374
- studentWorksheetResponseId: string | null;
10375
- })[];
10376
- } & {
10377
- id: string;
10378
- submissionId: string | null;
10379
- studentId: string;
10380
- createdAt: Date;
10381
- updatedAt: Date;
10382
- submittedAt: Date | null;
10383
- submitted: boolean;
10384
- worksheetId: string;
10385
- }) | null;
10532
+ announcementId: string | null;
10533
+ commentId: string | null;
10534
+ };
10535
+ };
10386
10536
  meta: object;
10387
10537
  }>;
10388
- gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
10538
+ removeReaction: import("@trpc/server").TRPCMutationProcedure<{
10389
10539
  input: {
10390
- responseId: string;
10391
- isCorrect: boolean;
10392
- feedback?: string | undefined;
10540
+ commentId?: string | undefined;
10393
10541
  };
10394
10542
  output: {
10395
- id: string;
10396
- feedback: string | null;
10397
- studentId: string;
10398
- createdAt: Date;
10399
- updatedAt: Date;
10400
- questionId: string;
10401
- response: string;
10402
- isCorrect: boolean;
10403
- studentWorksheetResponseId: string | null;
10543
+ success: boolean;
10544
+ };
10545
+ meta: object;
10546
+ }>;
10547
+ getReactions: import("@trpc/server").TRPCQueryProcedure<{
10548
+ input: {
10549
+ commentId?: string | undefined;
10550
+ };
10551
+ output: {
10552
+ counts: {
10553
+ THUMBSUP: number;
10554
+ CELEBRATE: number;
10555
+ CARE: number;
10556
+ HEART: number;
10557
+ IDEA: number;
10558
+ HAPPY: number;
10559
+ };
10560
+ userReaction: import(".prisma/client").$Enums.ReactionType | null;
10561
+ total: number;
10404
10562
  };
10405
10563
  meta: object;
10406
10564
  }>;