@studious-lms/server 1.2.33 → 1.2.35

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,6 +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;
4852
+ points: number;
4848
4853
  question: string;
4849
4854
  worksheetId: string;
4850
4855
  answer: string;
@@ -4924,6 +4929,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4924
4929
  answer: string;
4925
4930
  options?: any;
4926
4931
  markScheme?: any;
4932
+ points?: number | undefined;
4927
4933
  };
4928
4934
  output: {
4929
4935
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
@@ -4933,6 +4939,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4933
4939
  order: number | null;
4934
4940
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4935
4941
  updatedAt: Date;
4942
+ points: number;
4936
4943
  question: string;
4937
4944
  worksheetId: string;
4938
4945
  answer: string;
@@ -4958,6 +4965,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4958
4965
  type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
4959
4966
  options?: any;
4960
4967
  markScheme?: any;
4968
+ points?: number | undefined;
4961
4969
  question?: string | undefined;
4962
4970
  answer?: string | undefined;
4963
4971
  };
@@ -4969,6 +4977,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4969
4977
  order: number | null;
4970
4978
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4971
4979
  updatedAt: Date;
4980
+ points: number;
4972
4981
  question: string;
4973
4982
  worksheetId: string;
4974
4983
  answer: string;
@@ -4988,6 +4997,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4988
4997
  order: number | null;
4989
4998
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
4990
4999
  updatedAt: Date;
5000
+ points: number;
4991
5001
  question: string;
4992
5002
  worksheetId: string;
4993
5003
  answer: string;
@@ -5005,11 +5015,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5005
5015
  feedback: string | null;
5006
5016
  studentId: string;
5007
5017
  createdAt: Date;
5008
- updatedAt: Date;
5018
+ updatedAt: Date | null;
5019
+ points: number;
5009
5020
  questionId: string;
5010
5021
  response: string;
5011
- isCorrect: boolean;
5012
5022
  studentWorksheetResponseId: string | null;
5023
+ isCorrect: boolean;
5024
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5013
5025
  }[];
5014
5026
  } & {
5015
5027
  id: string;
@@ -5035,11 +5047,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5035
5047
  feedback: string | null;
5036
5048
  studentId: string;
5037
5049
  createdAt: Date;
5038
- updatedAt: Date;
5050
+ updatedAt: Date | null;
5051
+ points: number;
5039
5052
  questionId: string;
5040
5053
  response: string;
5041
- isCorrect: boolean;
5042
5054
  studentWorksheetResponseId: string | null;
5055
+ isCorrect: boolean;
5056
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5043
5057
  }[];
5044
5058
  } & {
5045
5059
  id: string;
@@ -5063,11 +5077,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5063
5077
  feedback: string | null;
5064
5078
  studentId: string;
5065
5079
  createdAt: Date;
5066
- updatedAt: Date;
5080
+ updatedAt: Date | null;
5081
+ points: number;
5067
5082
  questionId: string;
5068
5083
  response: string;
5069
- isCorrect: boolean;
5070
5084
  studentWorksheetResponseId: string | null;
5085
+ isCorrect: boolean;
5086
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5071
5087
  }[];
5072
5088
  } & {
5073
5089
  id: string;
@@ -5081,113 +5097,156 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5081
5097
  };
5082
5098
  meta: object;
5083
5099
  }>;
5084
- getOrCreateWorksheetResponse: import("@trpc/server").TRPCMutationProcedure<{
5100
+ gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
5085
5101
  input: {
5086
- studentId: string;
5087
- worksheetId: string;
5102
+ questionId: string;
5103
+ studentWorksheetResponseId: string;
5104
+ isCorrect: boolean;
5105
+ feedback?: string | undefined;
5106
+ points?: number | undefined;
5107
+ response?: string | undefined;
5108
+ responseId?: string | undefined;
5109
+ markschemeState?: any;
5110
+ };
5111
+ output: any;
5112
+ meta: object;
5113
+ }>;
5114
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
5115
+ input: {
5116
+ comment: string;
5117
+ responseId: string;
5088
5118
  };
5089
5119
  output: {
5090
- responses: ({
5091
- question: {
5092
- type: import(".prisma/client").$Enums.WorksheetQuestionType;
5120
+ id: string;
5121
+ content: string;
5122
+ createdAt: Date;
5123
+ modifiedAt: Date | null;
5124
+ announcementId: string | null;
5125
+ parentCommentId: string | null;
5126
+ authorId: string;
5127
+ studentQuestionProgressId: string | null;
5128
+ };
5129
+ meta: object;
5130
+ }>;
5131
+ }>>;
5132
+ comment: import("@trpc/server").TRPCBuiltRouter<{
5133
+ ctx: import("../trpc.js").Context;
5134
+ meta: object;
5135
+ errorShape: {
5136
+ data: {
5137
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
5138
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
5139
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
5140
+ httpStatus: number;
5141
+ path?: string;
5142
+ stack?: string;
5143
+ };
5144
+ message: string;
5145
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
5146
+ };
5147
+ transformer: false;
5148
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
5149
+ get: import("@trpc/server").TRPCQueryProcedure<{
5150
+ input: {
5151
+ id: string;
5152
+ };
5153
+ output: {
5154
+ reactions: {
5155
+ type: import(".prisma/client").$Enums.ReactionType;
5156
+ user: {
5093
5157
  id: string;
5094
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
5095
- createdAt: Date;
5096
- order: number | null;
5097
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5098
- updatedAt: Date;
5099
- question: string;
5100
- worksheetId: string;
5101
- answer: string;
5158
+ username: string;
5159
+ profile: {
5160
+ displayName: string | null;
5161
+ profilePicture: string | null;
5162
+ profilePictureThumbnail: string | null;
5163
+ } | null;
5102
5164
  };
5103
- } & {
5165
+ }[];
5166
+ replies: {
5104
5167
  id: string;
5105
- feedback: string | null;
5106
- studentId: string;
5107
- createdAt: Date;
5108
- updatedAt: Date;
5109
- questionId: string;
5110
- response: string;
5111
- isCorrect: boolean;
5112
- studentWorksheetResponseId: string | null;
5113
- })[];
5114
- } & {
5168
+ content: string;
5169
+ author: {
5170
+ id: string;
5171
+ username: string;
5172
+ profile: {
5173
+ displayName: string | null;
5174
+ profilePicture: string | null;
5175
+ profilePictureThumbnail: string | null;
5176
+ } | null;
5177
+ };
5178
+ }[];
5179
+ } | null;
5180
+ meta: object;
5181
+ }>;
5182
+ replyToComment: import("@trpc/server").TRPCMutationProcedure<{
5183
+ input: {
5184
+ content: string;
5185
+ parentCommentId: string;
5186
+ };
5187
+ output: {
5115
5188
  id: string;
5116
- submissionId: string | null;
5117
- studentId: string;
5189
+ content: string;
5118
5190
  createdAt: Date;
5119
- updatedAt: Date;
5120
- submittedAt: Date | null;
5121
- submitted: boolean;
5122
- worksheetId: string;
5191
+ modifiedAt: Date | null;
5192
+ announcementId: string | null;
5193
+ parentCommentId: string | null;
5194
+ authorId: string;
5195
+ studentQuestionProgressId: string | null;
5123
5196
  };
5124
5197
  meta: object;
5125
5198
  }>;
5126
- getWorksheetResponse: import("@trpc/server").TRPCQueryProcedure<{
5199
+ addReaction: import("@trpc/server").TRPCMutationProcedure<{
5127
5200
  input: {
5128
- worksheetId: string;
5201
+ type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
5202
+ id: string;
5129
5203
  };
5130
- output: ({
5131
- student: {
5132
- id: string;
5133
- username: string;
5134
- profile: {
5135
- displayName: string | null;
5136
- profilePicture: string | null;
5137
- } | null;
5138
- };
5139
- responses: ({
5140
- question: {
5141
- type: import(".prisma/client").$Enums.WorksheetQuestionType;
5204
+ output: {
5205
+ reaction: {
5206
+ user: {
5142
5207
  id: string;
5143
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
5144
- createdAt: Date;
5145
- order: number | null;
5146
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
5147
- updatedAt: Date;
5148
- question: string;
5149
- worksheetId: string;
5150
- answer: string;
5208
+ username: string;
5209
+ profile: {
5210
+ displayName: string | null;
5211
+ profilePicture: string | null;
5212
+ profilePictureThumbnail: string | null;
5213
+ } | null;
5151
5214
  };
5152
5215
  } & {
5216
+ type: import(".prisma/client").$Enums.ReactionType;
5153
5217
  id: string;
5154
- feedback: string | null;
5155
- studentId: string;
5218
+ userId: string;
5156
5219
  createdAt: Date;
5157
- updatedAt: Date;
5158
- questionId: string;
5159
- response: string;
5160
- isCorrect: boolean;
5161
- studentWorksheetResponseId: string | null;
5162
- })[];
5163
- } & {
5164
- id: string;
5165
- submissionId: string | null;
5166
- studentId: string;
5167
- createdAt: Date;
5168
- updatedAt: Date;
5169
- submittedAt: Date | null;
5170
- submitted: boolean;
5171
- worksheetId: string;
5172
- }) | null;
5220
+ announcementId: string | null;
5221
+ commentId: string | null;
5222
+ };
5223
+ };
5173
5224
  meta: object;
5174
5225
  }>;
5175
- gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
5226
+ removeReaction: import("@trpc/server").TRPCMutationProcedure<{
5176
5227
  input: {
5177
- responseId: string;
5178
- isCorrect: boolean;
5179
- feedback?: string | undefined;
5228
+ commentId?: string | undefined;
5180
5229
  };
5181
5230
  output: {
5182
- id: string;
5183
- feedback: string | null;
5184
- studentId: string;
5185
- createdAt: Date;
5186
- updatedAt: Date;
5187
- questionId: string;
5188
- response: string;
5189
- isCorrect: boolean;
5190
- studentWorksheetResponseId: string | null;
5231
+ success: boolean;
5232
+ };
5233
+ meta: object;
5234
+ }>;
5235
+ getReactions: import("@trpc/server").TRPCQueryProcedure<{
5236
+ input: {
5237
+ commentId?: string | undefined;
5238
+ };
5239
+ output: {
5240
+ counts: {
5241
+ THUMBSUP: number;
5242
+ CELEBRATE: number;
5243
+ CARE: number;
5244
+ HEART: number;
5245
+ IDEA: number;
5246
+ HAPPY: number;
5247
+ };
5248
+ userReaction: import(".prisma/client").$Enums.ReactionType | null;
5249
+ total: number;
5191
5250
  };
5192
5251
  meta: object;
5193
5252
  }>;
@@ -6211,9 +6270,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6211
6270
  content: string;
6212
6271
  createdAt: Date;
6213
6272
  modifiedAt: Date | null;
6214
- announcementId: string;
6273
+ announcementId: string | null;
6215
6274
  parentCommentId: string | null;
6216
6275
  authorId: string;
6276
+ studentQuestionProgressId: string | null;
6217
6277
  };
6218
6278
  };
6219
6279
  meta: object;
@@ -6239,9 +6299,10 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6239
6299
  content: string;
6240
6300
  createdAt: Date;
6241
6301
  modifiedAt: Date | null;
6242
- announcementId: string;
6302
+ announcementId: string | null;
6243
6303
  parentCommentId: string | null;
6244
6304
  authorId: string;
6305
+ studentQuestionProgressId: string | null;
6245
6306
  };
6246
6307
  };
6247
6308
  meta: object;
@@ -6287,18 +6348,20 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6287
6348
  content: string;
6288
6349
  createdAt: Date;
6289
6350
  modifiedAt: Date | null;
6290
- announcementId: string;
6351
+ announcementId: string | null;
6291
6352
  parentCommentId: string | null;
6292
6353
  authorId: string;
6354
+ studentQuestionProgressId: string | null;
6293
6355
  })[];
6294
6356
  } & {
6295
6357
  id: string;
6296
6358
  content: string;
6297
6359
  createdAt: Date;
6298
6360
  modifiedAt: Date | null;
6299
- announcementId: string;
6361
+ announcementId: string | null;
6300
6362
  parentCommentId: string | null;
6301
6363
  authorId: string;
6364
+ studentQuestionProgressId: string | null;
6302
6365
  })[];
6303
6366
  };
6304
6367
  meta: object;
@@ -10042,6 +10105,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10042
10105
  order: number | null;
10043
10106
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10044
10107
  updatedAt: Date;
10108
+ points: number;
10045
10109
  question: string;
10046
10110
  worksheetId: string;
10047
10111
  answer: string;
@@ -10121,6 +10185,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10121
10185
  answer: string;
10122
10186
  options?: any;
10123
10187
  markScheme?: any;
10188
+ points?: number | undefined;
10124
10189
  };
10125
10190
  output: {
10126
10191
  type: import(".prisma/client").$Enums.WorksheetQuestionType;
@@ -10130,6 +10195,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10130
10195
  order: number | null;
10131
10196
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10132
10197
  updatedAt: Date;
10198
+ points: number;
10133
10199
  question: string;
10134
10200
  worksheetId: string;
10135
10201
  answer: string;
@@ -10155,6 +10221,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10155
10221
  type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
10156
10222
  options?: any;
10157
10223
  markScheme?: any;
10224
+ points?: number | undefined;
10158
10225
  question?: string | undefined;
10159
10226
  answer?: string | undefined;
10160
10227
  };
@@ -10166,6 +10233,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10166
10233
  order: number | null;
10167
10234
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10168
10235
  updatedAt: Date;
10236
+ points: number;
10169
10237
  question: string;
10170
10238
  worksheetId: string;
10171
10239
  answer: string;
@@ -10185,6 +10253,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10185
10253
  order: number | null;
10186
10254
  markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10187
10255
  updatedAt: Date;
10256
+ points: number;
10188
10257
  question: string;
10189
10258
  worksheetId: string;
10190
10259
  answer: string;
@@ -10202,11 +10271,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10202
10271
  feedback: string | null;
10203
10272
  studentId: string;
10204
10273
  createdAt: Date;
10205
- updatedAt: Date;
10274
+ updatedAt: Date | null;
10275
+ points: number;
10206
10276
  questionId: string;
10207
10277
  response: string;
10208
- isCorrect: boolean;
10209
10278
  studentWorksheetResponseId: string | null;
10279
+ isCorrect: boolean;
10280
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10210
10281
  }[];
10211
10282
  } & {
10212
10283
  id: string;
@@ -10232,11 +10303,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10232
10303
  feedback: string | null;
10233
10304
  studentId: string;
10234
10305
  createdAt: Date;
10235
- updatedAt: Date;
10306
+ updatedAt: Date | null;
10307
+ points: number;
10236
10308
  questionId: string;
10237
10309
  response: string;
10238
- isCorrect: boolean;
10239
10310
  studentWorksheetResponseId: string | null;
10311
+ isCorrect: boolean;
10312
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10240
10313
  }[];
10241
10314
  } & {
10242
10315
  id: string;
@@ -10260,11 +10333,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10260
10333
  feedback: string | null;
10261
10334
  studentId: string;
10262
10335
  createdAt: Date;
10263
- updatedAt: Date;
10336
+ updatedAt: Date | null;
10337
+ points: number;
10264
10338
  questionId: string;
10265
10339
  response: string;
10266
- isCorrect: boolean;
10267
10340
  studentWorksheetResponseId: string | null;
10341
+ isCorrect: boolean;
10342
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10268
10343
  }[];
10269
10344
  } & {
10270
10345
  id: string;
@@ -10278,113 +10353,156 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10278
10353
  };
10279
10354
  meta: object;
10280
10355
  }>;
10281
- getOrCreateWorksheetResponse: import("@trpc/server").TRPCMutationProcedure<{
10356
+ gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
10282
10357
  input: {
10283
- studentId: string;
10284
- worksheetId: string;
10358
+ questionId: string;
10359
+ studentWorksheetResponseId: string;
10360
+ isCorrect: boolean;
10361
+ feedback?: string | undefined;
10362
+ points?: number | undefined;
10363
+ response?: string | undefined;
10364
+ responseId?: string | undefined;
10365
+ markschemeState?: any;
10366
+ };
10367
+ output: any;
10368
+ meta: object;
10369
+ }>;
10370
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
10371
+ input: {
10372
+ comment: string;
10373
+ responseId: string;
10285
10374
  };
10286
10375
  output: {
10287
- responses: ({
10288
- question: {
10289
- type: import(".prisma/client").$Enums.WorksheetQuestionType;
10376
+ id: string;
10377
+ content: string;
10378
+ createdAt: Date;
10379
+ modifiedAt: Date | null;
10380
+ announcementId: string | null;
10381
+ parentCommentId: string | null;
10382
+ authorId: string;
10383
+ studentQuestionProgressId: string | null;
10384
+ };
10385
+ meta: object;
10386
+ }>;
10387
+ }>>;
10388
+ comment: import("@trpc/server").TRPCBuiltRouter<{
10389
+ ctx: import("../trpc.js").Context;
10390
+ meta: object;
10391
+ errorShape: {
10392
+ data: {
10393
+ zodError: import("zod").typeToFlattenedError<any, string> | null;
10394
+ prismaError: import("../utils/prismaErrorHandler.js").PrismaErrorInfo | null;
10395
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
10396
+ httpStatus: number;
10397
+ path?: string;
10398
+ stack?: string;
10399
+ };
10400
+ message: string;
10401
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
10402
+ };
10403
+ transformer: false;
10404
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
10405
+ get: import("@trpc/server").TRPCQueryProcedure<{
10406
+ input: {
10407
+ id: string;
10408
+ };
10409
+ output: {
10410
+ reactions: {
10411
+ type: import(".prisma/client").$Enums.ReactionType;
10412
+ user: {
10290
10413
  id: string;
10291
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
10292
- createdAt: Date;
10293
- order: number | null;
10294
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10295
- updatedAt: Date;
10296
- question: string;
10297
- worksheetId: string;
10298
- answer: string;
10414
+ username: string;
10415
+ profile: {
10416
+ displayName: string | null;
10417
+ profilePicture: string | null;
10418
+ profilePictureThumbnail: string | null;
10419
+ } | null;
10299
10420
  };
10300
- } & {
10421
+ }[];
10422
+ replies: {
10301
10423
  id: string;
10302
- feedback: string | null;
10303
- studentId: string;
10304
- createdAt: Date;
10305
- updatedAt: Date;
10306
- questionId: string;
10307
- response: string;
10308
- isCorrect: boolean;
10309
- studentWorksheetResponseId: string | null;
10310
- })[];
10311
- } & {
10424
+ content: string;
10425
+ author: {
10426
+ id: string;
10427
+ username: string;
10428
+ profile: {
10429
+ displayName: string | null;
10430
+ profilePicture: string | null;
10431
+ profilePictureThumbnail: string | null;
10432
+ } | null;
10433
+ };
10434
+ }[];
10435
+ } | null;
10436
+ meta: object;
10437
+ }>;
10438
+ replyToComment: import("@trpc/server").TRPCMutationProcedure<{
10439
+ input: {
10440
+ content: string;
10441
+ parentCommentId: string;
10442
+ };
10443
+ output: {
10312
10444
  id: string;
10313
- submissionId: string | null;
10314
- studentId: string;
10445
+ content: string;
10315
10446
  createdAt: Date;
10316
- updatedAt: Date;
10317
- submittedAt: Date | null;
10318
- submitted: boolean;
10319
- worksheetId: string;
10447
+ modifiedAt: Date | null;
10448
+ announcementId: string | null;
10449
+ parentCommentId: string | null;
10450
+ authorId: string;
10451
+ studentQuestionProgressId: string | null;
10320
10452
  };
10321
10453
  meta: object;
10322
10454
  }>;
10323
- getWorksheetResponse: import("@trpc/server").TRPCQueryProcedure<{
10455
+ addReaction: import("@trpc/server").TRPCMutationProcedure<{
10324
10456
  input: {
10325
- worksheetId: string;
10457
+ type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
10458
+ id: string;
10326
10459
  };
10327
- output: ({
10328
- student: {
10329
- id: string;
10330
- username: string;
10331
- profile: {
10332
- displayName: string | null;
10333
- profilePicture: string | null;
10334
- } | null;
10335
- };
10336
- responses: ({
10337
- question: {
10338
- type: import(".prisma/client").$Enums.WorksheetQuestionType;
10460
+ output: {
10461
+ reaction: {
10462
+ user: {
10339
10463
  id: string;
10340
- options: import("@prisma/client/runtime/library.js").JsonValue | null;
10341
- createdAt: Date;
10342
- order: number | null;
10343
- markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
10344
- updatedAt: Date;
10345
- question: string;
10346
- worksheetId: string;
10347
- answer: string;
10464
+ username: string;
10465
+ profile: {
10466
+ displayName: string | null;
10467
+ profilePicture: string | null;
10468
+ profilePictureThumbnail: string | null;
10469
+ } | null;
10348
10470
  };
10349
10471
  } & {
10472
+ type: import(".prisma/client").$Enums.ReactionType;
10350
10473
  id: string;
10351
- feedback: string | null;
10352
- studentId: string;
10474
+ userId: string;
10353
10475
  createdAt: Date;
10354
- updatedAt: Date;
10355
- questionId: string;
10356
- response: string;
10357
- isCorrect: boolean;
10358
- studentWorksheetResponseId: string | null;
10359
- })[];
10360
- } & {
10361
- id: string;
10362
- submissionId: string | null;
10363
- studentId: string;
10364
- createdAt: Date;
10365
- updatedAt: Date;
10366
- submittedAt: Date | null;
10367
- submitted: boolean;
10368
- worksheetId: string;
10369
- }) | null;
10476
+ announcementId: string | null;
10477
+ commentId: string | null;
10478
+ };
10479
+ };
10370
10480
  meta: object;
10371
10481
  }>;
10372
- gradeAnswer: import("@trpc/server").TRPCMutationProcedure<{
10482
+ removeReaction: import("@trpc/server").TRPCMutationProcedure<{
10373
10483
  input: {
10374
- responseId: string;
10375
- isCorrect: boolean;
10376
- feedback?: string | undefined;
10484
+ commentId?: string | undefined;
10377
10485
  };
10378
10486
  output: {
10379
- id: string;
10380
- feedback: string | null;
10381
- studentId: string;
10382
- createdAt: Date;
10383
- updatedAt: Date;
10384
- questionId: string;
10385
- response: string;
10386
- isCorrect: boolean;
10387
- studentWorksheetResponseId: string | null;
10487
+ success: boolean;
10488
+ };
10489
+ meta: object;
10490
+ }>;
10491
+ getReactions: import("@trpc/server").TRPCQueryProcedure<{
10492
+ input: {
10493
+ commentId?: string | undefined;
10494
+ };
10495
+ output: {
10496
+ counts: {
10497
+ THUMBSUP: number;
10498
+ CELEBRATE: number;
10499
+ CARE: number;
10500
+ HEART: number;
10501
+ IDEA: number;
10502
+ HAPPY: number;
10503
+ };
10504
+ userReaction: import(".prisma/client").$Enums.ReactionType | null;
10505
+ total: number;
10388
10506
  };
10389
10507
  meta: object;
10390
10508
  }>;