@taiger-common/model 1.0.53 → 1.0.55

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.
Files changed (89) hide show
  1. package/dist/cjs/api/account.js +33 -0
  2. package/dist/cjs/api/applications.js +44 -0
  3. package/dist/cjs/api/audit.js +6 -0
  4. package/dist/cjs/api/auth.js +17 -0
  5. package/dist/cjs/api/common.js +28 -1
  6. package/dist/cjs/api/communications.js +13 -0
  7. package/dist/cjs/api/courses.js +21 -0
  8. package/dist/cjs/api/crm.js +85 -0
  9. package/dist/cjs/api/documentThreads.js +42 -0
  10. package/dist/cjs/api/documentations.js +31 -0
  11. package/dist/cjs/api/events.js +20 -0
  12. package/dist/cjs/api/interviews.js +33 -0
  13. package/dist/cjs/api/meetings.js +18 -0
  14. package/dist/cjs/api/notes.js +6 -0
  15. package/dist/cjs/api/permissions.js +7 -0
  16. package/dist/cjs/api/portals.js +22 -0
  17. package/dist/cjs/api/programRequirements.js +24 -0
  18. package/dist/cjs/api/programs.js +91 -0
  19. package/dist/cjs/api/search.js +22 -0
  20. package/dist/cjs/api/serialized.js +44 -0
  21. package/dist/cjs/api/students.js +27 -0
  22. package/dist/cjs/api/teams.js +46 -0
  23. package/dist/cjs/api/tickets.js +19 -0
  24. package/dist/cjs/api/users.js +40 -0
  25. package/dist/cjs/api/widgets.js +19 -0
  26. package/dist/cjs/index.js +1 -0
  27. package/dist/cjs/schema/index.js +22 -0
  28. package/dist/cjs/schema/models.js +518 -0
  29. package/dist/cjs/schema/serialized.js +202 -0
  30. package/dist/esm/api/account.js +32 -1
  31. package/dist/esm/api/applications.js +43 -1
  32. package/dist/esm/api/audit.js +5 -1
  33. package/dist/esm/api/auth.js +16 -1
  34. package/dist/esm/api/common.js +24 -1
  35. package/dist/esm/api/communications.js +12 -1
  36. package/dist/esm/api/courses.js +20 -1
  37. package/dist/esm/api/crm.js +84 -1
  38. package/dist/esm/api/documentThreads.js +41 -1
  39. package/dist/esm/api/documentations.js +30 -1
  40. package/dist/esm/api/events.js +19 -1
  41. package/dist/esm/api/interviews.js +32 -1
  42. package/dist/esm/api/meetings.js +17 -1
  43. package/dist/esm/api/notes.js +5 -1
  44. package/dist/esm/api/permissions.js +6 -1
  45. package/dist/esm/api/portals.js +21 -1
  46. package/dist/esm/api/programRequirements.js +23 -1
  47. package/dist/esm/api/programs.js +90 -1
  48. package/dist/esm/api/search.js +21 -1
  49. package/dist/esm/api/serialized.js +9 -1
  50. package/dist/esm/api/students.js +26 -1
  51. package/dist/esm/api/teams.js +45 -1
  52. package/dist/esm/api/tickets.js +18 -1
  53. package/dist/esm/api/users.js +39 -1
  54. package/dist/esm/api/widgets.js +18 -1
  55. package/dist/esm/index.js +1 -0
  56. package/dist/esm/schema/index.js +6 -0
  57. package/dist/esm/schema/models.js +515 -0
  58. package/dist/esm/schema/serialized.js +199 -0
  59. package/dist/types/api/account.d.ts +485 -30
  60. package/dist/types/api/applications.d.ts +3392 -39
  61. package/dist/types/api/audit.d.ts +88 -3
  62. package/dist/types/api/auth.d.ts +3402 -14
  63. package/dist/types/api/common.d.ts +68 -8
  64. package/dist/types/api/communications.d.ts +609 -10
  65. package/dist/types/api/courses.d.ts +781 -15
  66. package/dist/types/api/crm.d.ts +1091 -85
  67. package/dist/types/api/documentThreads.d.ts +38228 -39
  68. package/dist/types/api/documentations.d.ts +913 -24
  69. package/dist/types/api/events.d.ts +7191 -17
  70. package/dist/types/api/interviews.d.ts +785 -30
  71. package/dist/types/api/meetings.d.ts +45 -16
  72. package/dist/types/api/notes.d.ts +83 -4
  73. package/dist/types/api/permissions.d.ts +193 -4
  74. package/dist/types/api/portals.d.ts +764 -17
  75. package/dist/types/api/programRequirements.d.ts +2675 -19
  76. package/dist/types/api/programs.d.ts +3019 -96
  77. package/dist/types/api/search.d.ts +286 -20
  78. package/dist/types/api/serialized.d.ts +3 -152
  79. package/dist/types/api/students.d.ts +289 -24
  80. package/dist/types/api/teams.d.ts +3652 -45
  81. package/dist/types/api/tickets.d.ts +948 -14
  82. package/dist/types/api/users.d.ts +6948 -39
  83. package/dist/types/api/widgets.d.ts +221 -16
  84. package/dist/types/index.d.ts +1 -0
  85. package/dist/types/schema/index.d.ts +6 -0
  86. package/dist/types/schema/models.d.ts +2028 -0
  87. package/dist/types/schema/serialized.d.ts +8813 -0
  88. package/dist/umd/index.js +1 -1
  89. package/package.json +4 -2
@@ -1,18 +1,617 @@
1
- import type { ApiResponse, SuccessResponse } from './common';
2
- import type { ICommunicationWithId } from './serialized';
1
+ import { z } from 'zod';
2
+ export declare const GetCommunicationThreadResponseSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ message: z.ZodOptional<z.ZodString>;
5
+ } & {
6
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ student_id: z.ZodOptional<z.ZodString>;
8
+ user_id: z.ZodOptional<z.ZodString>;
9
+ message: z.ZodOptional<z.ZodString>;
10
+ readBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
+ timeStampReadBy: z.ZodOptional<z.ZodUnknown>;
12
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ name: z.ZodString;
14
+ path: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ name: string;
17
+ path: string;
18
+ }, {
19
+ name: string;
20
+ path: string;
21
+ }>, "many">>;
22
+ createdAt: z.ZodOptional<z.ZodDate>;
23
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
24
+ ignoredMessageUpdatedAt: z.ZodOptional<z.ZodDate>;
25
+ ignoredMessageBy: z.ZodOptional<z.ZodString>;
26
+ } & {
27
+ _id: z.ZodString;
28
+ }, "strip", z.ZodTypeAny, {
29
+ _id: string;
30
+ createdAt?: Date | undefined;
31
+ student_id?: string | undefined;
32
+ user_id?: string | undefined;
33
+ message?: string | undefined;
34
+ ignore_message?: boolean | undefined;
35
+ readBy?: string[] | undefined;
36
+ timeStampReadBy?: unknown;
37
+ files?: {
38
+ name: string;
39
+ path: string;
40
+ }[] | undefined;
41
+ ignoredMessageUpdatedAt?: Date | undefined;
42
+ ignoredMessageBy?: string | undefined;
43
+ }, {
44
+ _id: string;
45
+ createdAt?: Date | undefined;
46
+ student_id?: string | undefined;
47
+ user_id?: string | undefined;
48
+ message?: string | undefined;
49
+ ignore_message?: boolean | undefined;
50
+ readBy?: string[] | undefined;
51
+ timeStampReadBy?: unknown;
52
+ files?: {
53
+ name: string;
54
+ path: string;
55
+ }[] | undefined;
56
+ ignoredMessageUpdatedAt?: Date | undefined;
57
+ ignoredMessageBy?: string | undefined;
58
+ }>, "many">>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ success: boolean;
61
+ message?: string | undefined;
62
+ data?: {
63
+ _id: string;
64
+ createdAt?: Date | undefined;
65
+ student_id?: string | undefined;
66
+ user_id?: string | undefined;
67
+ message?: string | undefined;
68
+ ignore_message?: boolean | undefined;
69
+ readBy?: string[] | undefined;
70
+ timeStampReadBy?: unknown;
71
+ files?: {
72
+ name: string;
73
+ path: string;
74
+ }[] | undefined;
75
+ ignoredMessageUpdatedAt?: Date | undefined;
76
+ ignoredMessageBy?: string | undefined;
77
+ }[] | undefined;
78
+ }, {
79
+ success: boolean;
80
+ message?: string | undefined;
81
+ data?: {
82
+ _id: string;
83
+ createdAt?: Date | undefined;
84
+ student_id?: string | undefined;
85
+ user_id?: string | undefined;
86
+ message?: string | undefined;
87
+ ignore_message?: boolean | undefined;
88
+ readBy?: string[] | undefined;
89
+ timeStampReadBy?: unknown;
90
+ files?: {
91
+ name: string;
92
+ path: string;
93
+ }[] | undefined;
94
+ ignoredMessageUpdatedAt?: Date | undefined;
95
+ ignoredMessageBy?: string | undefined;
96
+ }[] | undefined;
97
+ }>;
98
+ export declare const GetMyCommunicationThreadResponseSchema: z.ZodObject<{
99
+ success: z.ZodBoolean;
100
+ message: z.ZodOptional<z.ZodString>;
101
+ } & {
102
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ student_id: z.ZodOptional<z.ZodString>;
104
+ user_id: z.ZodOptional<z.ZodString>;
105
+ message: z.ZodOptional<z.ZodString>;
106
+ readBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
+ timeStampReadBy: z.ZodOptional<z.ZodUnknown>;
108
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
109
+ name: z.ZodString;
110
+ path: z.ZodString;
111
+ }, "strip", z.ZodTypeAny, {
112
+ name: string;
113
+ path: string;
114
+ }, {
115
+ name: string;
116
+ path: string;
117
+ }>, "many">>;
118
+ createdAt: z.ZodOptional<z.ZodDate>;
119
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
120
+ ignoredMessageUpdatedAt: z.ZodOptional<z.ZodDate>;
121
+ ignoredMessageBy: z.ZodOptional<z.ZodString>;
122
+ } & {
123
+ _id: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ _id: string;
126
+ createdAt?: Date | undefined;
127
+ student_id?: string | undefined;
128
+ user_id?: string | undefined;
129
+ message?: string | undefined;
130
+ ignore_message?: boolean | undefined;
131
+ readBy?: string[] | undefined;
132
+ timeStampReadBy?: unknown;
133
+ files?: {
134
+ name: string;
135
+ path: string;
136
+ }[] | undefined;
137
+ ignoredMessageUpdatedAt?: Date | undefined;
138
+ ignoredMessageBy?: string | undefined;
139
+ }, {
140
+ _id: string;
141
+ createdAt?: Date | undefined;
142
+ student_id?: string | undefined;
143
+ user_id?: string | undefined;
144
+ message?: string | undefined;
145
+ ignore_message?: boolean | undefined;
146
+ readBy?: string[] | undefined;
147
+ timeStampReadBy?: unknown;
148
+ files?: {
149
+ name: string;
150
+ path: string;
151
+ }[] | undefined;
152
+ ignoredMessageUpdatedAt?: Date | undefined;
153
+ ignoredMessageBy?: string | undefined;
154
+ }>, "many">>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ success: boolean;
157
+ message?: string | undefined;
158
+ data?: {
159
+ _id: string;
160
+ createdAt?: Date | undefined;
161
+ student_id?: string | undefined;
162
+ user_id?: string | undefined;
163
+ message?: string | undefined;
164
+ ignore_message?: boolean | undefined;
165
+ readBy?: string[] | undefined;
166
+ timeStampReadBy?: unknown;
167
+ files?: {
168
+ name: string;
169
+ path: string;
170
+ }[] | undefined;
171
+ ignoredMessageUpdatedAt?: Date | undefined;
172
+ ignoredMessageBy?: string | undefined;
173
+ }[] | undefined;
174
+ }, {
175
+ success: boolean;
176
+ message?: string | undefined;
177
+ data?: {
178
+ _id: string;
179
+ createdAt?: Date | undefined;
180
+ student_id?: string | undefined;
181
+ user_id?: string | undefined;
182
+ message?: string | undefined;
183
+ ignore_message?: boolean | undefined;
184
+ readBy?: string[] | undefined;
185
+ timeStampReadBy?: unknown;
186
+ files?: {
187
+ name: string;
188
+ path: string;
189
+ }[] | undefined;
190
+ ignoredMessageUpdatedAt?: Date | undefined;
191
+ ignoredMessageBy?: string | undefined;
192
+ }[] | undefined;
193
+ }>;
194
+ export declare const GetCommunicationUnreadNumberResponseSchema: z.ZodObject<{
195
+ success: z.ZodBoolean;
196
+ message: z.ZodOptional<z.ZodString>;
197
+ } & {
198
+ data: z.ZodOptional<z.ZodNumber>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ success: boolean;
201
+ message?: string | undefined;
202
+ data?: number | undefined;
203
+ }, {
204
+ success: boolean;
205
+ message?: string | undefined;
206
+ data?: number | undefined;
207
+ }>;
208
+ export declare const PostCommunicationResponseSchema: z.ZodObject<{
209
+ success: z.ZodBoolean;
210
+ message: z.ZodOptional<z.ZodString>;
211
+ } & {
212
+ data: z.ZodOptional<z.ZodObject<{
213
+ student_id: z.ZodOptional<z.ZodString>;
214
+ user_id: z.ZodOptional<z.ZodString>;
215
+ message: z.ZodOptional<z.ZodString>;
216
+ readBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ timeStampReadBy: z.ZodOptional<z.ZodUnknown>;
218
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
219
+ name: z.ZodString;
220
+ path: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ name: string;
223
+ path: string;
224
+ }, {
225
+ name: string;
226
+ path: string;
227
+ }>, "many">>;
228
+ createdAt: z.ZodOptional<z.ZodDate>;
229
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
230
+ ignoredMessageUpdatedAt: z.ZodOptional<z.ZodDate>;
231
+ ignoredMessageBy: z.ZodOptional<z.ZodString>;
232
+ } & {
233
+ _id: z.ZodString;
234
+ }, "strip", z.ZodTypeAny, {
235
+ _id: string;
236
+ createdAt?: Date | undefined;
237
+ student_id?: string | undefined;
238
+ user_id?: string | undefined;
239
+ message?: string | undefined;
240
+ ignore_message?: boolean | undefined;
241
+ readBy?: string[] | undefined;
242
+ timeStampReadBy?: unknown;
243
+ files?: {
244
+ name: string;
245
+ path: string;
246
+ }[] | undefined;
247
+ ignoredMessageUpdatedAt?: Date | undefined;
248
+ ignoredMessageBy?: string | undefined;
249
+ }, {
250
+ _id: string;
251
+ createdAt?: Date | undefined;
252
+ student_id?: string | undefined;
253
+ user_id?: string | undefined;
254
+ message?: string | undefined;
255
+ ignore_message?: boolean | undefined;
256
+ readBy?: string[] | undefined;
257
+ timeStampReadBy?: unknown;
258
+ files?: {
259
+ name: string;
260
+ path: string;
261
+ }[] | undefined;
262
+ ignoredMessageUpdatedAt?: Date | undefined;
263
+ ignoredMessageBy?: string | undefined;
264
+ }>>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ success: boolean;
267
+ message?: string | undefined;
268
+ data?: {
269
+ _id: string;
270
+ createdAt?: Date | undefined;
271
+ student_id?: string | undefined;
272
+ user_id?: string | undefined;
273
+ message?: string | undefined;
274
+ ignore_message?: boolean | undefined;
275
+ readBy?: string[] | undefined;
276
+ timeStampReadBy?: unknown;
277
+ files?: {
278
+ name: string;
279
+ path: string;
280
+ }[] | undefined;
281
+ ignoredMessageUpdatedAt?: Date | undefined;
282
+ ignoredMessageBy?: string | undefined;
283
+ } | undefined;
284
+ }, {
285
+ success: boolean;
286
+ message?: string | undefined;
287
+ data?: {
288
+ _id: string;
289
+ createdAt?: Date | undefined;
290
+ student_id?: string | undefined;
291
+ user_id?: string | undefined;
292
+ message?: string | undefined;
293
+ ignore_message?: boolean | undefined;
294
+ readBy?: string[] | undefined;
295
+ timeStampReadBy?: unknown;
296
+ files?: {
297
+ name: string;
298
+ path: string;
299
+ }[] | undefined;
300
+ ignoredMessageUpdatedAt?: Date | undefined;
301
+ ignoredMessageBy?: string | undefined;
302
+ } | undefined;
303
+ }>;
304
+ export declare const LoadCommunicationThreadResponseSchema: z.ZodObject<{
305
+ success: z.ZodBoolean;
306
+ message: z.ZodOptional<z.ZodString>;
307
+ } & {
308
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
309
+ student_id: z.ZodOptional<z.ZodString>;
310
+ user_id: z.ZodOptional<z.ZodString>;
311
+ message: z.ZodOptional<z.ZodString>;
312
+ readBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
313
+ timeStampReadBy: z.ZodOptional<z.ZodUnknown>;
314
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
+ name: z.ZodString;
316
+ path: z.ZodString;
317
+ }, "strip", z.ZodTypeAny, {
318
+ name: string;
319
+ path: string;
320
+ }, {
321
+ name: string;
322
+ path: string;
323
+ }>, "many">>;
324
+ createdAt: z.ZodOptional<z.ZodDate>;
325
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
326
+ ignoredMessageUpdatedAt: z.ZodOptional<z.ZodDate>;
327
+ ignoredMessageBy: z.ZodOptional<z.ZodString>;
328
+ } & {
329
+ _id: z.ZodString;
330
+ }, "strip", z.ZodTypeAny, {
331
+ _id: string;
332
+ createdAt?: Date | undefined;
333
+ student_id?: string | undefined;
334
+ user_id?: string | undefined;
335
+ message?: string | undefined;
336
+ ignore_message?: boolean | undefined;
337
+ readBy?: string[] | undefined;
338
+ timeStampReadBy?: unknown;
339
+ files?: {
340
+ name: string;
341
+ path: string;
342
+ }[] | undefined;
343
+ ignoredMessageUpdatedAt?: Date | undefined;
344
+ ignoredMessageBy?: string | undefined;
345
+ }, {
346
+ _id: string;
347
+ createdAt?: Date | undefined;
348
+ student_id?: string | undefined;
349
+ user_id?: string | undefined;
350
+ message?: string | undefined;
351
+ ignore_message?: boolean | undefined;
352
+ readBy?: string[] | undefined;
353
+ timeStampReadBy?: unknown;
354
+ files?: {
355
+ name: string;
356
+ path: string;
357
+ }[] | undefined;
358
+ ignoredMessageUpdatedAt?: Date | undefined;
359
+ ignoredMessageBy?: string | undefined;
360
+ }>, "many">>;
361
+ }, "strip", z.ZodTypeAny, {
362
+ success: boolean;
363
+ message?: string | undefined;
364
+ data?: {
365
+ _id: string;
366
+ createdAt?: Date | undefined;
367
+ student_id?: string | undefined;
368
+ user_id?: string | undefined;
369
+ message?: string | undefined;
370
+ ignore_message?: boolean | undefined;
371
+ readBy?: string[] | undefined;
372
+ timeStampReadBy?: unknown;
373
+ files?: {
374
+ name: string;
375
+ path: string;
376
+ }[] | undefined;
377
+ ignoredMessageUpdatedAt?: Date | undefined;
378
+ ignoredMessageBy?: string | undefined;
379
+ }[] | undefined;
380
+ }, {
381
+ success: boolean;
382
+ message?: string | undefined;
383
+ data?: {
384
+ _id: string;
385
+ createdAt?: Date | undefined;
386
+ student_id?: string | undefined;
387
+ user_id?: string | undefined;
388
+ message?: string | undefined;
389
+ ignore_message?: boolean | undefined;
390
+ readBy?: string[] | undefined;
391
+ timeStampReadBy?: unknown;
392
+ files?: {
393
+ name: string;
394
+ path: string;
395
+ }[] | undefined;
396
+ ignoredMessageUpdatedAt?: Date | undefined;
397
+ ignoredMessageBy?: string | undefined;
398
+ }[] | undefined;
399
+ }>;
400
+ export declare const UpdateCommunicationMessageResponseSchema: z.ZodObject<{
401
+ success: z.ZodBoolean;
402
+ message: z.ZodOptional<z.ZodString>;
403
+ } & {
404
+ data: z.ZodOptional<z.ZodObject<{
405
+ student_id: z.ZodOptional<z.ZodString>;
406
+ user_id: z.ZodOptional<z.ZodString>;
407
+ message: z.ZodOptional<z.ZodString>;
408
+ readBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
409
+ timeStampReadBy: z.ZodOptional<z.ZodUnknown>;
410
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
411
+ name: z.ZodString;
412
+ path: z.ZodString;
413
+ }, "strip", z.ZodTypeAny, {
414
+ name: string;
415
+ path: string;
416
+ }, {
417
+ name: string;
418
+ path: string;
419
+ }>, "many">>;
420
+ createdAt: z.ZodOptional<z.ZodDate>;
421
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
422
+ ignoredMessageUpdatedAt: z.ZodOptional<z.ZodDate>;
423
+ ignoredMessageBy: z.ZodOptional<z.ZodString>;
424
+ } & {
425
+ _id: z.ZodString;
426
+ }, "strip", z.ZodTypeAny, {
427
+ _id: string;
428
+ createdAt?: Date | undefined;
429
+ student_id?: string | undefined;
430
+ user_id?: string | undefined;
431
+ message?: string | undefined;
432
+ ignore_message?: boolean | undefined;
433
+ readBy?: string[] | undefined;
434
+ timeStampReadBy?: unknown;
435
+ files?: {
436
+ name: string;
437
+ path: string;
438
+ }[] | undefined;
439
+ ignoredMessageUpdatedAt?: Date | undefined;
440
+ ignoredMessageBy?: string | undefined;
441
+ }, {
442
+ _id: string;
443
+ createdAt?: Date | undefined;
444
+ student_id?: string | undefined;
445
+ user_id?: string | undefined;
446
+ message?: string | undefined;
447
+ ignore_message?: boolean | undefined;
448
+ readBy?: string[] | undefined;
449
+ timeStampReadBy?: unknown;
450
+ files?: {
451
+ name: string;
452
+ path: string;
453
+ }[] | undefined;
454
+ ignoredMessageUpdatedAt?: Date | undefined;
455
+ ignoredMessageBy?: string | undefined;
456
+ }>>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ success: boolean;
459
+ message?: string | undefined;
460
+ data?: {
461
+ _id: string;
462
+ createdAt?: Date | undefined;
463
+ student_id?: string | undefined;
464
+ user_id?: string | undefined;
465
+ message?: string | undefined;
466
+ ignore_message?: boolean | undefined;
467
+ readBy?: string[] | undefined;
468
+ timeStampReadBy?: unknown;
469
+ files?: {
470
+ name: string;
471
+ path: string;
472
+ }[] | undefined;
473
+ ignoredMessageUpdatedAt?: Date | undefined;
474
+ ignoredMessageBy?: string | undefined;
475
+ } | undefined;
476
+ }, {
477
+ success: boolean;
478
+ message?: string | undefined;
479
+ data?: {
480
+ _id: string;
481
+ createdAt?: Date | undefined;
482
+ student_id?: string | undefined;
483
+ user_id?: string | undefined;
484
+ message?: string | undefined;
485
+ ignore_message?: boolean | undefined;
486
+ readBy?: string[] | undefined;
487
+ timeStampReadBy?: unknown;
488
+ files?: {
489
+ name: string;
490
+ path: string;
491
+ }[] | undefined;
492
+ ignoredMessageUpdatedAt?: Date | undefined;
493
+ ignoredMessageBy?: string | undefined;
494
+ } | undefined;
495
+ }>;
496
+ export declare const DeleteCommunicationMessageResponseSchema: z.ZodObject<{
497
+ success: z.ZodBoolean;
498
+ message: z.ZodOptional<z.ZodString>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ success: boolean;
501
+ message?: string | undefined;
502
+ }, {
503
+ success: boolean;
504
+ message?: string | undefined;
505
+ }>;
506
+ export declare const IgnoreCommunicationMessageResponseSchema: z.ZodObject<{
507
+ success: z.ZodBoolean;
508
+ message: z.ZodOptional<z.ZodString>;
509
+ } & {
510
+ data: z.ZodOptional<z.ZodObject<{
511
+ student_id: z.ZodOptional<z.ZodString>;
512
+ user_id: z.ZodOptional<z.ZodString>;
513
+ message: z.ZodOptional<z.ZodString>;
514
+ readBy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
515
+ timeStampReadBy: z.ZodOptional<z.ZodUnknown>;
516
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
517
+ name: z.ZodString;
518
+ path: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ name: string;
521
+ path: string;
522
+ }, {
523
+ name: string;
524
+ path: string;
525
+ }>, "many">>;
526
+ createdAt: z.ZodOptional<z.ZodDate>;
527
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
528
+ ignoredMessageUpdatedAt: z.ZodOptional<z.ZodDate>;
529
+ ignoredMessageBy: z.ZodOptional<z.ZodString>;
530
+ } & {
531
+ _id: z.ZodString;
532
+ }, "strip", z.ZodTypeAny, {
533
+ _id: string;
534
+ createdAt?: Date | undefined;
535
+ student_id?: string | undefined;
536
+ user_id?: string | undefined;
537
+ message?: string | undefined;
538
+ ignore_message?: boolean | undefined;
539
+ readBy?: string[] | undefined;
540
+ timeStampReadBy?: unknown;
541
+ files?: {
542
+ name: string;
543
+ path: string;
544
+ }[] | undefined;
545
+ ignoredMessageUpdatedAt?: Date | undefined;
546
+ ignoredMessageBy?: string | undefined;
547
+ }, {
548
+ _id: string;
549
+ createdAt?: Date | undefined;
550
+ student_id?: string | undefined;
551
+ user_id?: string | undefined;
552
+ message?: string | undefined;
553
+ ignore_message?: boolean | undefined;
554
+ readBy?: string[] | undefined;
555
+ timeStampReadBy?: unknown;
556
+ files?: {
557
+ name: string;
558
+ path: string;
559
+ }[] | undefined;
560
+ ignoredMessageUpdatedAt?: Date | undefined;
561
+ ignoredMessageBy?: string | undefined;
562
+ }>>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ success: boolean;
565
+ message?: string | undefined;
566
+ data?: {
567
+ _id: string;
568
+ createdAt?: Date | undefined;
569
+ student_id?: string | undefined;
570
+ user_id?: string | undefined;
571
+ message?: string | undefined;
572
+ ignore_message?: boolean | undefined;
573
+ readBy?: string[] | undefined;
574
+ timeStampReadBy?: unknown;
575
+ files?: {
576
+ name: string;
577
+ path: string;
578
+ }[] | undefined;
579
+ ignoredMessageUpdatedAt?: Date | undefined;
580
+ ignoredMessageBy?: string | undefined;
581
+ } | undefined;
582
+ }, {
583
+ success: boolean;
584
+ message?: string | undefined;
585
+ data?: {
586
+ _id: string;
587
+ createdAt?: Date | undefined;
588
+ student_id?: string | undefined;
589
+ user_id?: string | undefined;
590
+ message?: string | undefined;
591
+ ignore_message?: boolean | undefined;
592
+ readBy?: string[] | undefined;
593
+ timeStampReadBy?: unknown;
594
+ files?: {
595
+ name: string;
596
+ path: string;
597
+ }[] | undefined;
598
+ ignoredMessageUpdatedAt?: Date | undefined;
599
+ ignoredMessageBy?: string | undefined;
600
+ } | undefined;
601
+ }>;
3
602
  /** GET /api/communications/:studentId */
4
- export type GetCommunicationThreadResponse = ApiResponse<ICommunicationWithId[]>;
603
+ export type GetCommunicationThreadResponse = z.infer<typeof GetCommunicationThreadResponseSchema>;
5
604
  /** GET /api/communications/all */
6
- export type GetMyCommunicationThreadResponse = ApiResponse<ICommunicationWithId[]>;
605
+ export type GetMyCommunicationThreadResponse = z.infer<typeof GetMyCommunicationThreadResponseSchema>;
7
606
  /** GET /api/communications/ping/all */
8
- export type GetCommunicationUnreadNumberResponse = ApiResponse<number>;
607
+ export type GetCommunicationUnreadNumberResponse = z.infer<typeof GetCommunicationUnreadNumberResponseSchema>;
9
608
  /** POST /api/communications/:studentId */
10
- export type PostCommunicationResponse = ApiResponse<ICommunicationWithId>;
609
+ export type PostCommunicationResponse = z.infer<typeof PostCommunicationResponseSchema>;
11
610
  /** GET /api/communications/:studentId/pages/:pageNumber */
12
- export type LoadCommunicationThreadResponse = ApiResponse<ICommunicationWithId[]>;
611
+ export type LoadCommunicationThreadResponse = z.infer<typeof LoadCommunicationThreadResponseSchema>;
13
612
  /** PUT /api/communications/:communication_id/:communication_messageId */
14
- export type UpdateCommunicationMessageResponse = ApiResponse<ICommunicationWithId>;
613
+ export type UpdateCommunicationMessageResponse = z.infer<typeof UpdateCommunicationMessageResponseSchema>;
15
614
  /** DELETE /api/communications/:student_id/:communication_messageId */
16
- export type DeleteCommunicationMessageResponse = SuccessResponse;
615
+ export type DeleteCommunicationMessageResponse = z.infer<typeof DeleteCommunicationMessageResponseSchema>;
17
616
  /** PUT /api/communications/:student_id/:communication_messageId/:ignoreMessageState/ignore */
18
- export type IgnoreCommunicationMessageResponse = ApiResponse<ICommunicationWithId>;
617
+ export type IgnoreCommunicationMessageResponse = z.infer<typeof IgnoreCommunicationMessageResponseSchema>;