@taiger-common/model 1.0.53 → 1.0.54

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,26 +1,960 @@
1
- import type { ApiResponse, SuccessResponse } from './common';
2
- import type { ITicketWithId, IComplaintWithId } from './serialized';
1
+ import { z } from 'zod';
2
+ export declare const GetProgramTicketsResponseSchema: z.ZodObject<{
3
+ success: z.ZodBoolean;
4
+ message: z.ZodOptional<z.ZodString>;
5
+ } & {
6
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ requester_id: z.ZodString;
8
+ resolver_id: z.ZodOptional<z.ZodString>;
9
+ program_id: z.ZodOptional<z.ZodString>;
10
+ status: z.ZodOptional<z.ZodString>;
11
+ type: z.ZodOptional<z.ZodString>;
12
+ description: z.ZodOptional<z.ZodString>;
13
+ feedback: z.ZodOptional<z.ZodString>;
14
+ } & {
15
+ _id: z.ZodString;
16
+ createdAt: z.ZodOptional<z.ZodDate>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ _id: string;
19
+ requester_id: string;
20
+ type?: string | undefined;
21
+ status?: string | undefined;
22
+ createdAt?: Date | undefined;
23
+ program_id?: string | undefined;
24
+ feedback?: string | undefined;
25
+ description?: string | undefined;
26
+ resolver_id?: string | undefined;
27
+ }, {
28
+ _id: string;
29
+ requester_id: string;
30
+ type?: string | undefined;
31
+ status?: string | undefined;
32
+ createdAt?: Date | undefined;
33
+ program_id?: string | undefined;
34
+ feedback?: string | undefined;
35
+ description?: string | undefined;
36
+ resolver_id?: string | undefined;
37
+ }>, "many">>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ success: boolean;
40
+ message?: string | undefined;
41
+ data?: {
42
+ _id: string;
43
+ requester_id: string;
44
+ type?: string | undefined;
45
+ status?: string | undefined;
46
+ createdAt?: Date | undefined;
47
+ program_id?: string | undefined;
48
+ feedback?: string | undefined;
49
+ description?: string | undefined;
50
+ resolver_id?: string | undefined;
51
+ }[] | undefined;
52
+ }, {
53
+ success: boolean;
54
+ message?: string | undefined;
55
+ data?: {
56
+ _id: string;
57
+ requester_id: string;
58
+ type?: string | undefined;
59
+ status?: string | undefined;
60
+ createdAt?: Date | undefined;
61
+ program_id?: string | undefined;
62
+ feedback?: string | undefined;
63
+ description?: string | undefined;
64
+ resolver_id?: string | undefined;
65
+ }[] | undefined;
66
+ }>;
67
+ export declare const GetProgramTicketResponseSchema: z.ZodObject<{
68
+ success: z.ZodBoolean;
69
+ message: z.ZodOptional<z.ZodString>;
70
+ } & {
71
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
72
+ requester_id: z.ZodString;
73
+ resolver_id: z.ZodOptional<z.ZodString>;
74
+ program_id: z.ZodOptional<z.ZodString>;
75
+ status: z.ZodOptional<z.ZodString>;
76
+ type: z.ZodOptional<z.ZodString>;
77
+ description: z.ZodOptional<z.ZodString>;
78
+ feedback: z.ZodOptional<z.ZodString>;
79
+ } & {
80
+ _id: z.ZodString;
81
+ createdAt: z.ZodOptional<z.ZodDate>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ _id: string;
84
+ requester_id: string;
85
+ type?: string | undefined;
86
+ status?: string | undefined;
87
+ createdAt?: Date | undefined;
88
+ program_id?: string | undefined;
89
+ feedback?: string | undefined;
90
+ description?: string | undefined;
91
+ resolver_id?: string | undefined;
92
+ }, {
93
+ _id: string;
94
+ requester_id: string;
95
+ type?: string | undefined;
96
+ status?: string | undefined;
97
+ createdAt?: Date | undefined;
98
+ program_id?: string | undefined;
99
+ feedback?: string | undefined;
100
+ description?: string | undefined;
101
+ resolver_id?: string | undefined;
102
+ }>, "many">>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ success: boolean;
105
+ message?: string | undefined;
106
+ data?: {
107
+ _id: string;
108
+ requester_id: string;
109
+ type?: string | undefined;
110
+ status?: string | undefined;
111
+ createdAt?: Date | undefined;
112
+ program_id?: string | undefined;
113
+ feedback?: string | undefined;
114
+ description?: string | undefined;
115
+ resolver_id?: string | undefined;
116
+ }[] | undefined;
117
+ }, {
118
+ success: boolean;
119
+ message?: string | undefined;
120
+ data?: {
121
+ _id: string;
122
+ requester_id: string;
123
+ type?: string | undefined;
124
+ status?: string | undefined;
125
+ createdAt?: Date | undefined;
126
+ program_id?: string | undefined;
127
+ feedback?: string | undefined;
128
+ description?: string | undefined;
129
+ resolver_id?: string | undefined;
130
+ }[] | undefined;
131
+ }>;
132
+ export declare const CreateTicketResponseSchema: z.ZodObject<{
133
+ success: z.ZodBoolean;
134
+ message: z.ZodOptional<z.ZodString>;
135
+ } & {
136
+ data: z.ZodOptional<z.ZodObject<{
137
+ requester_id: z.ZodString;
138
+ resolver_id: z.ZodOptional<z.ZodString>;
139
+ program_id: z.ZodOptional<z.ZodString>;
140
+ status: z.ZodOptional<z.ZodString>;
141
+ type: z.ZodOptional<z.ZodString>;
142
+ description: z.ZodOptional<z.ZodString>;
143
+ feedback: z.ZodOptional<z.ZodString>;
144
+ } & {
145
+ _id: z.ZodString;
146
+ createdAt: z.ZodOptional<z.ZodDate>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ _id: string;
149
+ requester_id: string;
150
+ type?: string | undefined;
151
+ status?: string | undefined;
152
+ createdAt?: Date | undefined;
153
+ program_id?: string | undefined;
154
+ feedback?: string | undefined;
155
+ description?: string | undefined;
156
+ resolver_id?: string | undefined;
157
+ }, {
158
+ _id: string;
159
+ requester_id: string;
160
+ type?: string | undefined;
161
+ status?: string | undefined;
162
+ createdAt?: Date | undefined;
163
+ program_id?: string | undefined;
164
+ feedback?: string | undefined;
165
+ description?: string | undefined;
166
+ resolver_id?: string | undefined;
167
+ }>>;
168
+ }, "strip", z.ZodTypeAny, {
169
+ success: boolean;
170
+ message?: string | undefined;
171
+ data?: {
172
+ _id: string;
173
+ requester_id: string;
174
+ type?: string | undefined;
175
+ status?: string | undefined;
176
+ createdAt?: Date | undefined;
177
+ program_id?: string | undefined;
178
+ feedback?: string | undefined;
179
+ description?: string | undefined;
180
+ resolver_id?: string | undefined;
181
+ } | undefined;
182
+ }, {
183
+ success: boolean;
184
+ message?: string | undefined;
185
+ data?: {
186
+ _id: string;
187
+ requester_id: string;
188
+ type?: string | undefined;
189
+ status?: string | undefined;
190
+ createdAt?: Date | undefined;
191
+ program_id?: string | undefined;
192
+ feedback?: string | undefined;
193
+ description?: string | undefined;
194
+ resolver_id?: string | undefined;
195
+ } | undefined;
196
+ }>;
197
+ export declare const UpdateTicketResponseSchema: z.ZodObject<{
198
+ success: z.ZodBoolean;
199
+ message: z.ZodOptional<z.ZodString>;
200
+ } & {
201
+ data: z.ZodOptional<z.ZodObject<{
202
+ requester_id: z.ZodString;
203
+ resolver_id: z.ZodOptional<z.ZodString>;
204
+ program_id: z.ZodOptional<z.ZodString>;
205
+ status: z.ZodOptional<z.ZodString>;
206
+ type: z.ZodOptional<z.ZodString>;
207
+ description: z.ZodOptional<z.ZodString>;
208
+ feedback: z.ZodOptional<z.ZodString>;
209
+ } & {
210
+ _id: z.ZodString;
211
+ createdAt: z.ZodOptional<z.ZodDate>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ _id: string;
214
+ requester_id: string;
215
+ type?: string | undefined;
216
+ status?: string | undefined;
217
+ createdAt?: Date | undefined;
218
+ program_id?: string | undefined;
219
+ feedback?: string | undefined;
220
+ description?: string | undefined;
221
+ resolver_id?: string | undefined;
222
+ }, {
223
+ _id: string;
224
+ requester_id: string;
225
+ type?: string | undefined;
226
+ status?: string | undefined;
227
+ createdAt?: Date | undefined;
228
+ program_id?: string | undefined;
229
+ feedback?: string | undefined;
230
+ description?: string | undefined;
231
+ resolver_id?: string | undefined;
232
+ }>>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ success: boolean;
235
+ message?: string | undefined;
236
+ data?: {
237
+ _id: string;
238
+ requester_id: string;
239
+ type?: string | undefined;
240
+ status?: string | undefined;
241
+ createdAt?: Date | undefined;
242
+ program_id?: string | undefined;
243
+ feedback?: string | undefined;
244
+ description?: string | undefined;
245
+ resolver_id?: string | undefined;
246
+ } | undefined;
247
+ }, {
248
+ success: boolean;
249
+ message?: string | undefined;
250
+ data?: {
251
+ _id: string;
252
+ requester_id: string;
253
+ type?: string | undefined;
254
+ status?: string | undefined;
255
+ createdAt?: Date | undefined;
256
+ program_id?: string | undefined;
257
+ feedback?: string | undefined;
258
+ description?: string | undefined;
259
+ resolver_id?: string | undefined;
260
+ } | undefined;
261
+ }>;
262
+ export declare const DeleteTicketResponseSchema: z.ZodObject<{
263
+ success: z.ZodBoolean;
264
+ message: z.ZodOptional<z.ZodString>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ success: boolean;
267
+ message?: string | undefined;
268
+ }, {
269
+ success: boolean;
270
+ message?: string | undefined;
271
+ }>;
272
+ export declare const GetComplaintsResponseSchema: z.ZodObject<{
273
+ success: z.ZodBoolean;
274
+ message: z.ZodOptional<z.ZodString>;
275
+ } & {
276
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
277
+ requester_id: z.ZodString;
278
+ status: z.ZodOptional<z.ZodString>;
279
+ title: z.ZodOptional<z.ZodString>;
280
+ category: z.ZodOptional<z.ZodString>;
281
+ description: z.ZodOptional<z.ZodString>;
282
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
283
+ user_id: z.ZodOptional<z.ZodString>;
284
+ message: z.ZodOptional<z.ZodString>;
285
+ createdAt: z.ZodOptional<z.ZodDate>;
286
+ file: z.ZodOptional<z.ZodArray<z.ZodObject<{
287
+ name: z.ZodString;
288
+ path: z.ZodString;
289
+ }, "strip", z.ZodTypeAny, {
290
+ name: string;
291
+ path: string;
292
+ }, {
293
+ name: string;
294
+ path: string;
295
+ }>, "many">>;
296
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ createdAt?: Date | undefined;
299
+ user_id?: string | undefined;
300
+ message?: string | undefined;
301
+ file?: {
302
+ name: string;
303
+ path: string;
304
+ }[] | undefined;
305
+ ignore_message?: boolean | undefined;
306
+ }, {
307
+ createdAt?: Date | undefined;
308
+ user_id?: string | undefined;
309
+ message?: string | undefined;
310
+ file?: {
311
+ name: string;
312
+ path: string;
313
+ }[] | undefined;
314
+ ignore_message?: boolean | undefined;
315
+ }>, "many">>;
316
+ } & {
317
+ _id: z.ZodString;
318
+ createdAt: z.ZodOptional<z.ZodDate>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ _id: string;
321
+ requester_id: string;
322
+ status?: string | undefined;
323
+ createdAt?: Date | undefined;
324
+ messages?: {
325
+ createdAt?: Date | undefined;
326
+ user_id?: string | undefined;
327
+ message?: string | undefined;
328
+ file?: {
329
+ name: string;
330
+ path: string;
331
+ }[] | undefined;
332
+ ignore_message?: boolean | undefined;
333
+ }[] | undefined;
334
+ description?: string | undefined;
335
+ title?: string | undefined;
336
+ category?: string | undefined;
337
+ }, {
338
+ _id: string;
339
+ requester_id: string;
340
+ status?: string | undefined;
341
+ createdAt?: Date | undefined;
342
+ messages?: {
343
+ createdAt?: Date | undefined;
344
+ user_id?: string | undefined;
345
+ message?: string | undefined;
346
+ file?: {
347
+ name: string;
348
+ path: string;
349
+ }[] | undefined;
350
+ ignore_message?: boolean | undefined;
351
+ }[] | undefined;
352
+ description?: string | undefined;
353
+ title?: string | undefined;
354
+ category?: string | undefined;
355
+ }>, "many">>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ success: boolean;
358
+ message?: string | undefined;
359
+ data?: {
360
+ _id: string;
361
+ requester_id: string;
362
+ status?: string | undefined;
363
+ createdAt?: Date | undefined;
364
+ messages?: {
365
+ createdAt?: Date | undefined;
366
+ user_id?: string | undefined;
367
+ message?: string | undefined;
368
+ file?: {
369
+ name: string;
370
+ path: string;
371
+ }[] | undefined;
372
+ ignore_message?: boolean | undefined;
373
+ }[] | undefined;
374
+ description?: string | undefined;
375
+ title?: string | undefined;
376
+ category?: string | undefined;
377
+ }[] | undefined;
378
+ }, {
379
+ success: boolean;
380
+ message?: string | undefined;
381
+ data?: {
382
+ _id: string;
383
+ requester_id: string;
384
+ status?: string | undefined;
385
+ createdAt?: Date | undefined;
386
+ messages?: {
387
+ createdAt?: Date | undefined;
388
+ user_id?: string | undefined;
389
+ message?: string | undefined;
390
+ file?: {
391
+ name: string;
392
+ path: string;
393
+ }[] | undefined;
394
+ ignore_message?: boolean | undefined;
395
+ }[] | undefined;
396
+ description?: string | undefined;
397
+ title?: string | undefined;
398
+ category?: string | undefined;
399
+ }[] | undefined;
400
+ }>;
401
+ export declare const GetComplaintResponseSchema: z.ZodObject<{
402
+ success: z.ZodBoolean;
403
+ message: z.ZodOptional<z.ZodString>;
404
+ } & {
405
+ data: z.ZodOptional<z.ZodObject<{
406
+ requester_id: z.ZodString;
407
+ status: z.ZodOptional<z.ZodString>;
408
+ title: z.ZodOptional<z.ZodString>;
409
+ category: z.ZodOptional<z.ZodString>;
410
+ description: z.ZodOptional<z.ZodString>;
411
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
412
+ user_id: z.ZodOptional<z.ZodString>;
413
+ message: z.ZodOptional<z.ZodString>;
414
+ createdAt: z.ZodOptional<z.ZodDate>;
415
+ file: z.ZodOptional<z.ZodArray<z.ZodObject<{
416
+ name: z.ZodString;
417
+ path: z.ZodString;
418
+ }, "strip", z.ZodTypeAny, {
419
+ name: string;
420
+ path: string;
421
+ }, {
422
+ name: string;
423
+ path: string;
424
+ }>, "many">>;
425
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
426
+ }, "strip", z.ZodTypeAny, {
427
+ createdAt?: Date | undefined;
428
+ user_id?: string | undefined;
429
+ message?: string | undefined;
430
+ file?: {
431
+ name: string;
432
+ path: string;
433
+ }[] | undefined;
434
+ ignore_message?: boolean | undefined;
435
+ }, {
436
+ createdAt?: Date | undefined;
437
+ user_id?: string | undefined;
438
+ message?: string | undefined;
439
+ file?: {
440
+ name: string;
441
+ path: string;
442
+ }[] | undefined;
443
+ ignore_message?: boolean | undefined;
444
+ }>, "many">>;
445
+ } & {
446
+ _id: z.ZodString;
447
+ createdAt: z.ZodOptional<z.ZodDate>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ _id: string;
450
+ requester_id: string;
451
+ status?: string | undefined;
452
+ createdAt?: Date | undefined;
453
+ messages?: {
454
+ createdAt?: Date | undefined;
455
+ user_id?: string | undefined;
456
+ message?: string | undefined;
457
+ file?: {
458
+ name: string;
459
+ path: string;
460
+ }[] | undefined;
461
+ ignore_message?: boolean | undefined;
462
+ }[] | undefined;
463
+ description?: string | undefined;
464
+ title?: string | undefined;
465
+ category?: string | undefined;
466
+ }, {
467
+ _id: string;
468
+ requester_id: string;
469
+ status?: string | undefined;
470
+ createdAt?: Date | undefined;
471
+ messages?: {
472
+ createdAt?: Date | undefined;
473
+ user_id?: string | undefined;
474
+ message?: string | undefined;
475
+ file?: {
476
+ name: string;
477
+ path: string;
478
+ }[] | undefined;
479
+ ignore_message?: boolean | undefined;
480
+ }[] | undefined;
481
+ description?: string | undefined;
482
+ title?: string | undefined;
483
+ category?: string | undefined;
484
+ }>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ success: boolean;
487
+ message?: string | undefined;
488
+ data?: {
489
+ _id: string;
490
+ requester_id: string;
491
+ status?: string | undefined;
492
+ createdAt?: Date | undefined;
493
+ messages?: {
494
+ createdAt?: Date | undefined;
495
+ user_id?: string | undefined;
496
+ message?: string | undefined;
497
+ file?: {
498
+ name: string;
499
+ path: string;
500
+ }[] | undefined;
501
+ ignore_message?: boolean | undefined;
502
+ }[] | undefined;
503
+ description?: string | undefined;
504
+ title?: string | undefined;
505
+ category?: string | undefined;
506
+ } | undefined;
507
+ }, {
508
+ success: boolean;
509
+ message?: string | undefined;
510
+ data?: {
511
+ _id: string;
512
+ requester_id: string;
513
+ status?: string | undefined;
514
+ createdAt?: Date | undefined;
515
+ messages?: {
516
+ createdAt?: Date | undefined;
517
+ user_id?: string | undefined;
518
+ message?: string | undefined;
519
+ file?: {
520
+ name: string;
521
+ path: string;
522
+ }[] | undefined;
523
+ ignore_message?: boolean | undefined;
524
+ }[] | undefined;
525
+ description?: string | undefined;
526
+ title?: string | undefined;
527
+ category?: string | undefined;
528
+ } | undefined;
529
+ }>;
530
+ export declare const CreateComplaintResponseSchema: z.ZodObject<{
531
+ success: z.ZodBoolean;
532
+ message: z.ZodOptional<z.ZodString>;
533
+ } & {
534
+ data: z.ZodOptional<z.ZodObject<{
535
+ requester_id: z.ZodString;
536
+ status: z.ZodOptional<z.ZodString>;
537
+ title: z.ZodOptional<z.ZodString>;
538
+ category: z.ZodOptional<z.ZodString>;
539
+ description: z.ZodOptional<z.ZodString>;
540
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
541
+ user_id: z.ZodOptional<z.ZodString>;
542
+ message: z.ZodOptional<z.ZodString>;
543
+ createdAt: z.ZodOptional<z.ZodDate>;
544
+ file: z.ZodOptional<z.ZodArray<z.ZodObject<{
545
+ name: z.ZodString;
546
+ path: z.ZodString;
547
+ }, "strip", z.ZodTypeAny, {
548
+ name: string;
549
+ path: string;
550
+ }, {
551
+ name: string;
552
+ path: string;
553
+ }>, "many">>;
554
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
555
+ }, "strip", z.ZodTypeAny, {
556
+ createdAt?: Date | undefined;
557
+ user_id?: string | undefined;
558
+ message?: string | undefined;
559
+ file?: {
560
+ name: string;
561
+ path: string;
562
+ }[] | undefined;
563
+ ignore_message?: boolean | undefined;
564
+ }, {
565
+ createdAt?: Date | undefined;
566
+ user_id?: string | undefined;
567
+ message?: string | undefined;
568
+ file?: {
569
+ name: string;
570
+ path: string;
571
+ }[] | undefined;
572
+ ignore_message?: boolean | undefined;
573
+ }>, "many">>;
574
+ } & {
575
+ _id: z.ZodString;
576
+ createdAt: z.ZodOptional<z.ZodDate>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ _id: string;
579
+ requester_id: string;
580
+ status?: string | undefined;
581
+ createdAt?: Date | undefined;
582
+ messages?: {
583
+ createdAt?: Date | undefined;
584
+ user_id?: string | undefined;
585
+ message?: string | undefined;
586
+ file?: {
587
+ name: string;
588
+ path: string;
589
+ }[] | undefined;
590
+ ignore_message?: boolean | undefined;
591
+ }[] | undefined;
592
+ description?: string | undefined;
593
+ title?: string | undefined;
594
+ category?: string | undefined;
595
+ }, {
596
+ _id: string;
597
+ requester_id: string;
598
+ status?: string | undefined;
599
+ createdAt?: Date | undefined;
600
+ messages?: {
601
+ createdAt?: Date | undefined;
602
+ user_id?: string | undefined;
603
+ message?: string | undefined;
604
+ file?: {
605
+ name: string;
606
+ path: string;
607
+ }[] | undefined;
608
+ ignore_message?: boolean | undefined;
609
+ }[] | undefined;
610
+ description?: string | undefined;
611
+ title?: string | undefined;
612
+ category?: string | undefined;
613
+ }>>;
614
+ }, "strip", z.ZodTypeAny, {
615
+ success: boolean;
616
+ message?: string | undefined;
617
+ data?: {
618
+ _id: string;
619
+ requester_id: string;
620
+ status?: string | undefined;
621
+ createdAt?: Date | undefined;
622
+ messages?: {
623
+ createdAt?: Date | undefined;
624
+ user_id?: string | undefined;
625
+ message?: string | undefined;
626
+ file?: {
627
+ name: string;
628
+ path: string;
629
+ }[] | undefined;
630
+ ignore_message?: boolean | undefined;
631
+ }[] | undefined;
632
+ description?: string | undefined;
633
+ title?: string | undefined;
634
+ category?: string | undefined;
635
+ } | undefined;
636
+ }, {
637
+ success: boolean;
638
+ message?: string | undefined;
639
+ data?: {
640
+ _id: string;
641
+ requester_id: string;
642
+ status?: string | undefined;
643
+ createdAt?: Date | undefined;
644
+ messages?: {
645
+ createdAt?: Date | undefined;
646
+ user_id?: string | undefined;
647
+ message?: string | undefined;
648
+ file?: {
649
+ name: string;
650
+ path: string;
651
+ }[] | undefined;
652
+ ignore_message?: boolean | undefined;
653
+ }[] | undefined;
654
+ description?: string | undefined;
655
+ title?: string | undefined;
656
+ category?: string | undefined;
657
+ } | undefined;
658
+ }>;
659
+ export declare const UpdateComplaintResponseSchema: z.ZodObject<{
660
+ success: z.ZodBoolean;
661
+ message: z.ZodOptional<z.ZodString>;
662
+ } & {
663
+ data: z.ZodOptional<z.ZodObject<{
664
+ requester_id: z.ZodString;
665
+ status: z.ZodOptional<z.ZodString>;
666
+ title: z.ZodOptional<z.ZodString>;
667
+ category: z.ZodOptional<z.ZodString>;
668
+ description: z.ZodOptional<z.ZodString>;
669
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
670
+ user_id: z.ZodOptional<z.ZodString>;
671
+ message: z.ZodOptional<z.ZodString>;
672
+ createdAt: z.ZodOptional<z.ZodDate>;
673
+ file: z.ZodOptional<z.ZodArray<z.ZodObject<{
674
+ name: z.ZodString;
675
+ path: z.ZodString;
676
+ }, "strip", z.ZodTypeAny, {
677
+ name: string;
678
+ path: string;
679
+ }, {
680
+ name: string;
681
+ path: string;
682
+ }>, "many">>;
683
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
684
+ }, "strip", z.ZodTypeAny, {
685
+ createdAt?: Date | undefined;
686
+ user_id?: string | undefined;
687
+ message?: string | undefined;
688
+ file?: {
689
+ name: string;
690
+ path: string;
691
+ }[] | undefined;
692
+ ignore_message?: boolean | undefined;
693
+ }, {
694
+ createdAt?: Date | undefined;
695
+ user_id?: string | undefined;
696
+ message?: string | undefined;
697
+ file?: {
698
+ name: string;
699
+ path: string;
700
+ }[] | undefined;
701
+ ignore_message?: boolean | undefined;
702
+ }>, "many">>;
703
+ } & {
704
+ _id: z.ZodString;
705
+ createdAt: z.ZodOptional<z.ZodDate>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ _id: string;
708
+ requester_id: string;
709
+ status?: string | undefined;
710
+ createdAt?: Date | undefined;
711
+ messages?: {
712
+ createdAt?: Date | undefined;
713
+ user_id?: string | undefined;
714
+ message?: string | undefined;
715
+ file?: {
716
+ name: string;
717
+ path: string;
718
+ }[] | undefined;
719
+ ignore_message?: boolean | undefined;
720
+ }[] | undefined;
721
+ description?: string | undefined;
722
+ title?: string | undefined;
723
+ category?: string | undefined;
724
+ }, {
725
+ _id: string;
726
+ requester_id: string;
727
+ status?: string | undefined;
728
+ createdAt?: Date | undefined;
729
+ messages?: {
730
+ createdAt?: Date | undefined;
731
+ user_id?: string | undefined;
732
+ message?: string | undefined;
733
+ file?: {
734
+ name: string;
735
+ path: string;
736
+ }[] | undefined;
737
+ ignore_message?: boolean | undefined;
738
+ }[] | undefined;
739
+ description?: string | undefined;
740
+ title?: string | undefined;
741
+ category?: string | undefined;
742
+ }>>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ success: boolean;
745
+ message?: string | undefined;
746
+ data?: {
747
+ _id: string;
748
+ requester_id: string;
749
+ status?: string | undefined;
750
+ createdAt?: Date | undefined;
751
+ messages?: {
752
+ createdAt?: Date | undefined;
753
+ user_id?: string | undefined;
754
+ message?: string | undefined;
755
+ file?: {
756
+ name: string;
757
+ path: string;
758
+ }[] | undefined;
759
+ ignore_message?: boolean | undefined;
760
+ }[] | undefined;
761
+ description?: string | undefined;
762
+ title?: string | undefined;
763
+ category?: string | undefined;
764
+ } | undefined;
765
+ }, {
766
+ success: boolean;
767
+ message?: string | undefined;
768
+ data?: {
769
+ _id: string;
770
+ requester_id: string;
771
+ status?: string | undefined;
772
+ createdAt?: Date | undefined;
773
+ messages?: {
774
+ createdAt?: Date | undefined;
775
+ user_id?: string | undefined;
776
+ message?: string | undefined;
777
+ file?: {
778
+ name: string;
779
+ path: string;
780
+ }[] | undefined;
781
+ ignore_message?: boolean | undefined;
782
+ }[] | undefined;
783
+ description?: string | undefined;
784
+ title?: string | undefined;
785
+ category?: string | undefined;
786
+ } | undefined;
787
+ }>;
788
+ export declare const PostMessageInComplaintResponseSchema: z.ZodObject<{
789
+ success: z.ZodBoolean;
790
+ message: z.ZodOptional<z.ZodString>;
791
+ } & {
792
+ data: z.ZodOptional<z.ZodObject<{
793
+ requester_id: z.ZodString;
794
+ status: z.ZodOptional<z.ZodString>;
795
+ title: z.ZodOptional<z.ZodString>;
796
+ category: z.ZodOptional<z.ZodString>;
797
+ description: z.ZodOptional<z.ZodString>;
798
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
799
+ user_id: z.ZodOptional<z.ZodString>;
800
+ message: z.ZodOptional<z.ZodString>;
801
+ createdAt: z.ZodOptional<z.ZodDate>;
802
+ file: z.ZodOptional<z.ZodArray<z.ZodObject<{
803
+ name: z.ZodString;
804
+ path: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ name: string;
807
+ path: string;
808
+ }, {
809
+ name: string;
810
+ path: string;
811
+ }>, "many">>;
812
+ ignore_message: z.ZodOptional<z.ZodBoolean>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ createdAt?: Date | undefined;
815
+ user_id?: string | undefined;
816
+ message?: string | undefined;
817
+ file?: {
818
+ name: string;
819
+ path: string;
820
+ }[] | undefined;
821
+ ignore_message?: boolean | undefined;
822
+ }, {
823
+ createdAt?: Date | undefined;
824
+ user_id?: string | undefined;
825
+ message?: string | undefined;
826
+ file?: {
827
+ name: string;
828
+ path: string;
829
+ }[] | undefined;
830
+ ignore_message?: boolean | undefined;
831
+ }>, "many">>;
832
+ } & {
833
+ _id: z.ZodString;
834
+ createdAt: z.ZodOptional<z.ZodDate>;
835
+ }, "strip", z.ZodTypeAny, {
836
+ _id: string;
837
+ requester_id: string;
838
+ status?: string | undefined;
839
+ createdAt?: Date | undefined;
840
+ messages?: {
841
+ createdAt?: Date | undefined;
842
+ user_id?: string | undefined;
843
+ message?: string | undefined;
844
+ file?: {
845
+ name: string;
846
+ path: string;
847
+ }[] | undefined;
848
+ ignore_message?: boolean | undefined;
849
+ }[] | undefined;
850
+ description?: string | undefined;
851
+ title?: string | undefined;
852
+ category?: string | undefined;
853
+ }, {
854
+ _id: string;
855
+ requester_id: string;
856
+ status?: string | undefined;
857
+ createdAt?: Date | undefined;
858
+ messages?: {
859
+ createdAt?: Date | undefined;
860
+ user_id?: string | undefined;
861
+ message?: string | undefined;
862
+ file?: {
863
+ name: string;
864
+ path: string;
865
+ }[] | undefined;
866
+ ignore_message?: boolean | undefined;
867
+ }[] | undefined;
868
+ description?: string | undefined;
869
+ title?: string | undefined;
870
+ category?: string | undefined;
871
+ }>>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ success: boolean;
874
+ message?: string | undefined;
875
+ data?: {
876
+ _id: string;
877
+ requester_id: string;
878
+ status?: string | undefined;
879
+ createdAt?: Date | undefined;
880
+ messages?: {
881
+ createdAt?: Date | undefined;
882
+ user_id?: string | undefined;
883
+ message?: string | undefined;
884
+ file?: {
885
+ name: string;
886
+ path: string;
887
+ }[] | undefined;
888
+ ignore_message?: boolean | undefined;
889
+ }[] | undefined;
890
+ description?: string | undefined;
891
+ title?: string | undefined;
892
+ category?: string | undefined;
893
+ } | undefined;
894
+ }, {
895
+ success: boolean;
896
+ message?: string | undefined;
897
+ data?: {
898
+ _id: string;
899
+ requester_id: string;
900
+ status?: string | undefined;
901
+ createdAt?: Date | undefined;
902
+ messages?: {
903
+ createdAt?: Date | undefined;
904
+ user_id?: string | undefined;
905
+ message?: string | undefined;
906
+ file?: {
907
+ name: string;
908
+ path: string;
909
+ }[] | undefined;
910
+ ignore_message?: boolean | undefined;
911
+ }[] | undefined;
912
+ description?: string | undefined;
913
+ title?: string | undefined;
914
+ category?: string | undefined;
915
+ } | undefined;
916
+ }>;
917
+ export declare const DeleteMessageInComplaintResponseSchema: z.ZodObject<{
918
+ success: z.ZodBoolean;
919
+ message: z.ZodOptional<z.ZodString>;
920
+ }, "strip", z.ZodTypeAny, {
921
+ success: boolean;
922
+ message?: string | undefined;
923
+ }, {
924
+ success: boolean;
925
+ message?: string | undefined;
926
+ }>;
927
+ export declare const DeleteComplaintResponseSchema: z.ZodObject<{
928
+ success: z.ZodBoolean;
929
+ message: z.ZodOptional<z.ZodString>;
930
+ }, "strip", z.ZodTypeAny, {
931
+ success: boolean;
932
+ message?: string | undefined;
933
+ }, {
934
+ success: boolean;
935
+ message?: string | undefined;
936
+ }>;
3
937
  /** GET /api/tickets */
4
- export type GetProgramTicketsResponse = ApiResponse<ITicketWithId[]>;
938
+ export type GetProgramTicketsResponse = z.infer<typeof GetProgramTicketsResponseSchema>;
5
939
  /** GET /api/tickets?type=&program_id= (single ticket) */
6
- export type GetProgramTicketResponse = ApiResponse<ITicketWithId[]>;
940
+ export type GetProgramTicketResponse = z.infer<typeof GetProgramTicketResponseSchema>;
7
941
  /** POST /api/tickets/ */
8
- export type CreateTicketResponse = ApiResponse<ITicketWithId>;
942
+ export type CreateTicketResponse = z.infer<typeof CreateTicketResponseSchema>;
9
943
  /** PUT /api/tickets/:ticket_id */
10
- export type UpdateTicketResponse = ApiResponse<ITicketWithId>;
944
+ export type UpdateTicketResponse = z.infer<typeof UpdateTicketResponseSchema>;
11
945
  /** DELETE /api/tickets/:ticket_id */
12
- export type DeleteTicketResponse = SuccessResponse;
946
+ export type DeleteTicketResponse = z.infer<typeof DeleteTicketResponseSchema>;
13
947
  /** GET /api/complaints */
14
- export type GetComplaintsResponse = ApiResponse<IComplaintWithId[]>;
948
+ export type GetComplaintsResponse = z.infer<typeof GetComplaintsResponseSchema>;
15
949
  /** GET /api/complaints/:ticketId */
16
- export type GetComplaintResponse = ApiResponse<IComplaintWithId>;
950
+ export type GetComplaintResponse = z.infer<typeof GetComplaintResponseSchema>;
17
951
  /** POST /api/complaints/ */
18
- export type CreateComplaintResponse = ApiResponse<IComplaintWithId>;
952
+ export type CreateComplaintResponse = z.infer<typeof CreateComplaintResponseSchema>;
19
953
  /** PUT /api/complaints/:ticketId */
20
- export type UpdateComplaintResponse = ApiResponse<IComplaintWithId>;
954
+ export type UpdateComplaintResponse = z.infer<typeof UpdateComplaintResponseSchema>;
21
955
  /** POST /api/complaints/new-message/:ticketId/:studentId */
22
- export type PostMessageInComplaintResponse = ApiResponse<IComplaintWithId>;
956
+ export type PostMessageInComplaintResponse = z.infer<typeof PostMessageInComplaintResponseSchema>;
23
957
  /** DELETE /api/complaints/:ticketId/:message_id */
24
- export type DeleteMessageInComplaintResponse = SuccessResponse;
958
+ export type DeleteMessageInComplaintResponse = z.infer<typeof DeleteMessageInComplaintResponseSchema>;
25
959
  /** DELETE /api/complaints/:ticketId */
26
- export type DeleteComplaintResponse = SuccessResponse;
960
+ export type DeleteComplaintResponse = z.infer<typeof DeleteComplaintResponseSchema>;