@studious-lms/server 1.1.26 → 1.2.27

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.
@@ -1 +1 @@
1
- {"version":3,"file":"_app.d.ts","sourceRoot":"","sources":["../../src/routers/_app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAc1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { type DirectUploadFile } from "../lib/fileUpload.js";
2
3
  export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<{
3
4
  ctx: import("../trpc.js").Context;
4
5
  meta: object;
@@ -23,6 +24,8 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
23
24
  };
24
25
  output: {
25
26
  announcements: {
27
+ commentCount: number;
28
+ _count: undefined;
26
29
  id: string;
27
30
  remarks: string;
28
31
  teacher: {
@@ -30,15 +33,60 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
30
33
  username: string;
31
34
  };
32
35
  createdAt: Date;
36
+ modifiedAt: Date | null;
37
+ attachments: {
38
+ path: string;
39
+ type: string;
40
+ id: string;
41
+ name: string;
42
+ size: number | null;
43
+ uploadedAt: Date | null;
44
+ thumbnailId: string | null;
45
+ }[];
33
46
  }[];
34
47
  };
35
48
  meta: object;
36
49
  }>;
50
+ get: import("@trpc/server").TRPCQueryProcedure<{
51
+ input: {
52
+ [x: string]: unknown;
53
+ classId: string;
54
+ id: string;
55
+ };
56
+ output: {
57
+ announcement: {
58
+ id: string;
59
+ remarks: string;
60
+ teacher: {
61
+ id: string;
62
+ username: string;
63
+ };
64
+ createdAt: Date;
65
+ modifiedAt: Date | null;
66
+ attachments: {
67
+ path: string;
68
+ type: string;
69
+ id: string;
70
+ name: string;
71
+ size: number | null;
72
+ uploadedAt: Date | null;
73
+ thumbnailId: string | null;
74
+ }[];
75
+ };
76
+ };
77
+ meta: object;
78
+ }>;
37
79
  create: import("@trpc/server").TRPCMutationProcedure<{
38
80
  input: {
39
81
  [x: string]: unknown;
40
82
  classId: string;
41
83
  remarks: string;
84
+ files?: {
85
+ type: string;
86
+ name: string;
87
+ size: number;
88
+ }[] | undefined;
89
+ existingFileIds?: string[] | undefined;
42
90
  };
43
91
  output: {
44
92
  announcement: {
@@ -49,7 +97,18 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
49
97
  username: string;
50
98
  };
51
99
  createdAt: Date;
100
+ modifiedAt: Date | null;
101
+ attachments: {
102
+ path: string;
103
+ type: string;
104
+ id: string;
105
+ name: string;
106
+ size: number | null;
107
+ uploadedAt: Date | null;
108
+ thumbnailId: string | null;
109
+ }[];
52
110
  };
111
+ uploadFiles: DirectUploadFile[] | undefined;
53
112
  };
54
113
  meta: object;
55
114
  }>;
@@ -57,17 +116,37 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
57
116
  input: {
58
117
  id: string;
59
118
  data: {
60
- content: string;
119
+ files?: {
120
+ type: string;
121
+ name: string;
122
+ size: number;
123
+ }[] | undefined;
124
+ remarks?: string | undefined;
125
+ existingFileIds?: string[] | undefined;
126
+ removedAttachments?: string[] | undefined;
61
127
  };
62
128
  };
63
129
  output: {
64
130
  announcement: {
65
131
  id: string;
66
132
  remarks: string;
67
- classId: string;
133
+ teacher: {
134
+ id: string;
135
+ username: string;
136
+ };
68
137
  createdAt: Date;
69
- teacherId: string;
138
+ modifiedAt: Date | null;
139
+ attachments: {
140
+ path: string;
141
+ type: string;
142
+ id: string;
143
+ name: string;
144
+ size: number | null;
145
+ uploadedAt: Date | null;
146
+ thumbnailId: string | null;
147
+ }[];
70
148
  };
149
+ uploadFiles: DirectUploadFile[] | undefined;
71
150
  };
72
151
  meta: object;
73
152
  }>;
@@ -80,5 +159,213 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
80
159
  };
81
160
  meta: object;
82
161
  }>;
162
+ getAnnouncementUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
163
+ input: {
164
+ [x: string]: unknown;
165
+ classId: string;
166
+ files: {
167
+ type: string;
168
+ name: string;
169
+ size: number;
170
+ }[];
171
+ announcementId: string;
172
+ };
173
+ output: {
174
+ success: boolean;
175
+ uploadFiles: DirectUploadFile[];
176
+ };
177
+ meta: object;
178
+ }>;
179
+ confirmAnnouncementUpload: import("@trpc/server").TRPCMutationProcedure<{
180
+ input: {
181
+ [x: string]: unknown;
182
+ classId: string;
183
+ fileId: string;
184
+ uploadSuccess: boolean;
185
+ errorMessage?: string | undefined;
186
+ };
187
+ output: {
188
+ success: boolean;
189
+ message: string;
190
+ };
191
+ meta: object;
192
+ }>;
193
+ addComment: import("@trpc/server").TRPCMutationProcedure<{
194
+ input: {
195
+ [x: string]: unknown;
196
+ classId: string;
197
+ content: string;
198
+ announcementId: string;
199
+ parentCommentId?: string | undefined;
200
+ };
201
+ output: {
202
+ comment: {
203
+ author: {
204
+ id: string;
205
+ username: string;
206
+ profile: {
207
+ displayName: string | null;
208
+ profilePicture: string | null;
209
+ profilePictureThumbnail: string | null;
210
+ } | null;
211
+ };
212
+ } & {
213
+ id: string;
214
+ content: string;
215
+ createdAt: Date;
216
+ modifiedAt: Date | null;
217
+ announcementId: string;
218
+ parentCommentId: string | null;
219
+ authorId: string;
220
+ };
221
+ };
222
+ meta: object;
223
+ }>;
224
+ updateComment: import("@trpc/server").TRPCMutationProcedure<{
225
+ input: {
226
+ id: string;
227
+ content: string;
228
+ };
229
+ output: {
230
+ comment: {
231
+ author: {
232
+ id: string;
233
+ username: string;
234
+ profile: {
235
+ displayName: string | null;
236
+ profilePicture: string | null;
237
+ profilePictureThumbnail: string | null;
238
+ } | null;
239
+ };
240
+ } & {
241
+ id: string;
242
+ content: string;
243
+ createdAt: Date;
244
+ modifiedAt: Date | null;
245
+ announcementId: string;
246
+ parentCommentId: string | null;
247
+ authorId: string;
248
+ };
249
+ };
250
+ meta: object;
251
+ }>;
252
+ deleteComment: import("@trpc/server").TRPCMutationProcedure<{
253
+ input: {
254
+ id: string;
255
+ };
256
+ output: {
257
+ success: boolean;
258
+ };
259
+ meta: object;
260
+ }>;
261
+ getComments: import("@trpc/server").TRPCQueryProcedure<{
262
+ input: {
263
+ [x: string]: unknown;
264
+ classId: string;
265
+ announcementId: string;
266
+ };
267
+ output: {
268
+ comments: ({
269
+ author: {
270
+ id: string;
271
+ username: string;
272
+ profile: {
273
+ displayName: string | null;
274
+ profilePicture: string | null;
275
+ profilePictureThumbnail: string | null;
276
+ } | null;
277
+ };
278
+ replies: ({
279
+ author: {
280
+ id: string;
281
+ username: string;
282
+ profile: {
283
+ displayName: string | null;
284
+ profilePicture: string | null;
285
+ profilePictureThumbnail: string | null;
286
+ } | null;
287
+ };
288
+ } & {
289
+ id: string;
290
+ content: string;
291
+ createdAt: Date;
292
+ modifiedAt: Date | null;
293
+ announcementId: string;
294
+ parentCommentId: string | null;
295
+ authorId: string;
296
+ })[];
297
+ } & {
298
+ id: string;
299
+ content: string;
300
+ createdAt: Date;
301
+ modifiedAt: Date | null;
302
+ announcementId: string;
303
+ parentCommentId: string | null;
304
+ authorId: string;
305
+ })[];
306
+ };
307
+ meta: object;
308
+ }>;
309
+ addReaction: import("@trpc/server").TRPCMutationProcedure<{
310
+ input: {
311
+ [x: string]: unknown;
312
+ classId: string;
313
+ type: "THUMBSUP" | "CELEBRATE" | "CARE" | "HEART" | "IDEA" | "HAPPY";
314
+ announcementId?: string | undefined;
315
+ commentId?: string | undefined;
316
+ };
317
+ output: {
318
+ reaction: {
319
+ user: {
320
+ id: string;
321
+ username: string;
322
+ profile: {
323
+ displayName: string | null;
324
+ profilePicture: string | null;
325
+ profilePictureThumbnail: string | null;
326
+ } | null;
327
+ };
328
+ } & {
329
+ type: import(".prisma/client").$Enums.ReactionType;
330
+ id: string;
331
+ userId: string;
332
+ createdAt: Date;
333
+ announcementId: string | null;
334
+ commentId: string | null;
335
+ };
336
+ };
337
+ meta: object;
338
+ }>;
339
+ removeReaction: import("@trpc/server").TRPCMutationProcedure<{
340
+ input: {
341
+ announcementId?: string | undefined;
342
+ commentId?: string | undefined;
343
+ };
344
+ output: {
345
+ success: boolean;
346
+ };
347
+ meta: object;
348
+ }>;
349
+ getReactions: import("@trpc/server").TRPCQueryProcedure<{
350
+ input: {
351
+ [x: string]: unknown;
352
+ classId: string;
353
+ announcementId?: string | undefined;
354
+ commentId?: string | undefined;
355
+ };
356
+ output: {
357
+ counts: {
358
+ THUMBSUP: number;
359
+ CELEBRATE: number;
360
+ CARE: number;
361
+ HEART: number;
362
+ IDEA: number;
363
+ HAPPY: number;
364
+ };
365
+ userReaction: import(".prisma/client").$Enums.ReactionType | null;
366
+ total: number;
367
+ };
368
+ meta: object;
369
+ }>;
83
370
  }>>;
84
371
  //# sourceMappingURL=announcement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"announcement.d.ts","sourceRoot":"","sources":["../../src/routers/announcement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8I7B,CAAC"}
1
+ {"version":3,"file":"announcement.d.ts","sourceRoot":"","sources":["../../src/routers/announcement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAA8C,KAAK,gBAAgB,EAAuB,MAAM,sBAAsB,CAAC;AA+C9H,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqjC7B,CAAC"}