@taiger-common/model 1.0.52 → 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 (95) 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/model/Documentthread.js +1 -4
  28. package/dist/cjs/model/Program.js +0 -4
  29. package/dist/cjs/schema/index.js +22 -0
  30. package/dist/cjs/schema/models.js +518 -0
  31. package/dist/cjs/schema/serialized.js +202 -0
  32. package/dist/esm/api/account.js +32 -1
  33. package/dist/esm/api/applications.js +43 -1
  34. package/dist/esm/api/audit.js +5 -1
  35. package/dist/esm/api/auth.js +16 -1
  36. package/dist/esm/api/common.js +24 -1
  37. package/dist/esm/api/communications.js +12 -1
  38. package/dist/esm/api/courses.js +20 -1
  39. package/dist/esm/api/crm.js +84 -1
  40. package/dist/esm/api/documentThreads.js +41 -1
  41. package/dist/esm/api/documentations.js +30 -1
  42. package/dist/esm/api/events.js +19 -1
  43. package/dist/esm/api/interviews.js +32 -1
  44. package/dist/esm/api/meetings.js +17 -1
  45. package/dist/esm/api/notes.js +5 -1
  46. package/dist/esm/api/permissions.js +6 -1
  47. package/dist/esm/api/portals.js +21 -1
  48. package/dist/esm/api/programRequirements.js +23 -1
  49. package/dist/esm/api/programs.js +90 -1
  50. package/dist/esm/api/search.js +21 -1
  51. package/dist/esm/api/serialized.js +9 -1
  52. package/dist/esm/api/students.js +26 -1
  53. package/dist/esm/api/teams.js +45 -1
  54. package/dist/esm/api/tickets.js +18 -1
  55. package/dist/esm/api/users.js +39 -1
  56. package/dist/esm/api/widgets.js +18 -1
  57. package/dist/esm/index.js +1 -0
  58. package/dist/esm/model/Documentthread.js +1 -4
  59. package/dist/esm/model/Program.js +0 -4
  60. package/dist/esm/schema/index.js +6 -0
  61. package/dist/esm/schema/models.js +515 -0
  62. package/dist/esm/schema/serialized.js +199 -0
  63. package/dist/types/api/account.d.ts +485 -30
  64. package/dist/types/api/applications.d.ts +3392 -39
  65. package/dist/types/api/audit.d.ts +88 -3
  66. package/dist/types/api/auth.d.ts +3402 -14
  67. package/dist/types/api/common.d.ts +68 -8
  68. package/dist/types/api/communications.d.ts +609 -10
  69. package/dist/types/api/courses.d.ts +781 -15
  70. package/dist/types/api/crm.d.ts +1091 -85
  71. package/dist/types/api/documentThreads.d.ts +38228 -39
  72. package/dist/types/api/documentations.d.ts +913 -24
  73. package/dist/types/api/events.d.ts +7191 -17
  74. package/dist/types/api/interviews.d.ts +785 -30
  75. package/dist/types/api/meetings.d.ts +45 -27
  76. package/dist/types/api/notes.d.ts +83 -4
  77. package/dist/types/api/permissions.d.ts +193 -4
  78. package/dist/types/api/portals.d.ts +764 -17
  79. package/dist/types/api/programRequirements.d.ts +2675 -19
  80. package/dist/types/api/programs.d.ts +3019 -96
  81. package/dist/types/api/search.d.ts +286 -20
  82. package/dist/types/api/serialized.d.ts +3 -152
  83. package/dist/types/api/students.d.ts +289 -24
  84. package/dist/types/api/teams.d.ts +3652 -47
  85. package/dist/types/api/tickets.d.ts +948 -14
  86. package/dist/types/api/users.d.ts +6948 -39
  87. package/dist/types/api/widgets.d.ts +221 -16
  88. package/dist/types/index.d.ts +1 -0
  89. package/dist/types/model/Documentthread.d.ts +1 -2
  90. package/dist/types/model/Program.d.ts +0 -5
  91. package/dist/types/schema/index.d.ts +6 -0
  92. package/dist/types/schema/models.d.ts +2028 -0
  93. package/dist/types/schema/serialized.d.ts +8813 -0
  94. package/dist/umd/index.js +1 -1
  95. package/package.json +4 -2
@@ -1,47 +1,802 @@
1
- import type { ApiResponse, SuccessResponse } from './common';
2
- import type { IInterviewWithId, IInterviewSurveyResponseWithId, IStudentResponse, IAuditWithId } from './serialized';
1
+ import { z } from 'zod';
2
+ export declare const GetInterviewsResponseSchema: 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
+ trainer_id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ thread_id: z.ZodOptional<z.ZodString>;
10
+ program_id: z.ZodOptional<z.ZodString>;
11
+ event_id: z.ZodOptional<z.ZodString>;
12
+ interview_description: z.ZodOptional<z.ZodString>;
13
+ interviewer: z.ZodOptional<z.ZodString>;
14
+ interview_duration: z.ZodOptional<z.ZodString>;
15
+ interview_date: z.ZodOptional<z.ZodDate>;
16
+ isClosed: z.ZodOptional<z.ZodBoolean>;
17
+ start: z.ZodOptional<z.ZodDate>;
18
+ end: z.ZodOptional<z.ZodDate>;
19
+ } & {
20
+ _id: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ _id: string;
23
+ student_id?: string | undefined;
24
+ program_id?: string | undefined;
25
+ end?: Date | undefined;
26
+ start?: Date | undefined;
27
+ trainer_id?: string[] | undefined;
28
+ thread_id?: string | undefined;
29
+ event_id?: string | undefined;
30
+ interview_description?: string | undefined;
31
+ interviewer?: string | undefined;
32
+ interview_duration?: string | undefined;
33
+ interview_date?: Date | undefined;
34
+ isClosed?: boolean | undefined;
35
+ }, {
36
+ _id: string;
37
+ student_id?: string | undefined;
38
+ program_id?: string | undefined;
39
+ end?: Date | undefined;
40
+ start?: Date | undefined;
41
+ trainer_id?: string[] | undefined;
42
+ thread_id?: string | undefined;
43
+ event_id?: string | undefined;
44
+ interview_description?: string | undefined;
45
+ interviewer?: string | undefined;
46
+ interview_duration?: string | undefined;
47
+ interview_date?: Date | undefined;
48
+ isClosed?: boolean | undefined;
49
+ }>, "many">>;
50
+ }, "strip", z.ZodTypeAny, {
51
+ success: boolean;
52
+ message?: string | undefined;
53
+ data?: {
54
+ _id: string;
55
+ student_id?: string | undefined;
56
+ program_id?: string | undefined;
57
+ end?: Date | undefined;
58
+ start?: Date | undefined;
59
+ trainer_id?: string[] | undefined;
60
+ thread_id?: string | undefined;
61
+ event_id?: string | undefined;
62
+ interview_description?: string | undefined;
63
+ interviewer?: string | undefined;
64
+ interview_duration?: string | undefined;
65
+ interview_date?: Date | undefined;
66
+ isClosed?: boolean | undefined;
67
+ }[] | undefined;
68
+ }, {
69
+ success: boolean;
70
+ message?: string | undefined;
71
+ data?: {
72
+ _id: string;
73
+ student_id?: string | undefined;
74
+ program_id?: string | undefined;
75
+ end?: Date | undefined;
76
+ start?: Date | undefined;
77
+ trainer_id?: string[] | undefined;
78
+ thread_id?: string | undefined;
79
+ event_id?: string | undefined;
80
+ interview_description?: string | undefined;
81
+ interviewer?: string | undefined;
82
+ interview_duration?: string | undefined;
83
+ interview_date?: Date | undefined;
84
+ isClosed?: boolean | undefined;
85
+ }[] | undefined;
86
+ }>;
87
+ export declare const GetInterviewResponseSchema: z.ZodObject<{
88
+ success: z.ZodBoolean;
89
+ data: z.ZodOptional<z.ZodObject<{
90
+ student_id: z.ZodOptional<z.ZodString>;
91
+ trainer_id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
+ thread_id: z.ZodOptional<z.ZodString>;
93
+ program_id: z.ZodOptional<z.ZodString>;
94
+ event_id: z.ZodOptional<z.ZodString>;
95
+ interview_description: z.ZodOptional<z.ZodString>;
96
+ interviewer: z.ZodOptional<z.ZodString>;
97
+ interview_duration: z.ZodOptional<z.ZodString>;
98
+ interview_date: z.ZodOptional<z.ZodDate>;
99
+ isClosed: z.ZodOptional<z.ZodBoolean>;
100
+ start: z.ZodOptional<z.ZodDate>;
101
+ end: z.ZodOptional<z.ZodDate>;
102
+ } & {
103
+ _id: z.ZodString;
104
+ }, "strip", z.ZodTypeAny, {
105
+ _id: string;
106
+ student_id?: string | undefined;
107
+ program_id?: string | undefined;
108
+ end?: Date | undefined;
109
+ start?: Date | undefined;
110
+ trainer_id?: string[] | undefined;
111
+ thread_id?: string | undefined;
112
+ event_id?: string | undefined;
113
+ interview_description?: string | undefined;
114
+ interviewer?: string | undefined;
115
+ interview_duration?: string | undefined;
116
+ interview_date?: Date | undefined;
117
+ isClosed?: boolean | undefined;
118
+ }, {
119
+ _id: string;
120
+ student_id?: string | undefined;
121
+ program_id?: string | undefined;
122
+ end?: Date | undefined;
123
+ start?: Date | undefined;
124
+ trainer_id?: string[] | undefined;
125
+ thread_id?: string | undefined;
126
+ event_id?: string | undefined;
127
+ interview_description?: string | undefined;
128
+ interviewer?: string | undefined;
129
+ interview_duration?: string | undefined;
130
+ interview_date?: Date | undefined;
131
+ isClosed?: boolean | undefined;
132
+ }>>;
133
+ interviewAuditLog: z.ZodOptional<z.ZodArray<z.ZodObject<{
134
+ performedBy: z.ZodOptional<z.ZodString>;
135
+ targetUserId: z.ZodOptional<z.ZodString>;
136
+ targetDocumentThreadId: z.ZodOptional<z.ZodString>;
137
+ interviewThreadId: z.ZodOptional<z.ZodString>;
138
+ action: z.ZodOptional<z.ZodString>;
139
+ field: z.ZodOptional<z.ZodString>;
140
+ changes: z.ZodOptional<z.ZodObject<{
141
+ before: z.ZodOptional<z.ZodUnknown>;
142
+ after: z.ZodOptional<z.ZodUnknown>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ before?: unknown;
145
+ after?: unknown;
146
+ }, {
147
+ before?: unknown;
148
+ after?: unknown;
149
+ }>>;
150
+ } & {
151
+ _id: z.ZodString;
152
+ createdAt: z.ZodOptional<z.ZodDate>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ _id: string;
155
+ createdAt?: Date | undefined;
156
+ performedBy?: string | undefined;
157
+ targetUserId?: string | undefined;
158
+ targetDocumentThreadId?: string | undefined;
159
+ interviewThreadId?: string | undefined;
160
+ action?: string | undefined;
161
+ field?: string | undefined;
162
+ changes?: {
163
+ before?: unknown;
164
+ after?: unknown;
165
+ } | undefined;
166
+ }, {
167
+ _id: string;
168
+ createdAt?: Date | undefined;
169
+ performedBy?: string | undefined;
170
+ targetUserId?: string | undefined;
171
+ targetDocumentThreadId?: string | undefined;
172
+ interviewThreadId?: string | undefined;
173
+ action?: string | undefined;
174
+ field?: string | undefined;
175
+ changes?: {
176
+ before?: unknown;
177
+ after?: unknown;
178
+ } | undefined;
179
+ }>, "many">>;
180
+ }, "strip", z.ZodTypeAny, {
181
+ success: boolean;
182
+ data?: {
183
+ _id: string;
184
+ student_id?: string | undefined;
185
+ program_id?: string | undefined;
186
+ end?: Date | undefined;
187
+ start?: Date | undefined;
188
+ trainer_id?: string[] | undefined;
189
+ thread_id?: string | undefined;
190
+ event_id?: string | undefined;
191
+ interview_description?: string | undefined;
192
+ interviewer?: string | undefined;
193
+ interview_duration?: string | undefined;
194
+ interview_date?: Date | undefined;
195
+ isClosed?: boolean | undefined;
196
+ } | undefined;
197
+ interviewAuditLog?: {
198
+ _id: string;
199
+ createdAt?: Date | undefined;
200
+ performedBy?: string | undefined;
201
+ targetUserId?: string | undefined;
202
+ targetDocumentThreadId?: string | undefined;
203
+ interviewThreadId?: string | undefined;
204
+ action?: string | undefined;
205
+ field?: string | undefined;
206
+ changes?: {
207
+ before?: unknown;
208
+ after?: unknown;
209
+ } | undefined;
210
+ }[] | undefined;
211
+ }, {
212
+ success: boolean;
213
+ data?: {
214
+ _id: string;
215
+ student_id?: string | undefined;
216
+ program_id?: string | undefined;
217
+ end?: Date | undefined;
218
+ start?: Date | undefined;
219
+ trainer_id?: string[] | undefined;
220
+ thread_id?: string | undefined;
221
+ event_id?: string | undefined;
222
+ interview_description?: string | undefined;
223
+ interviewer?: string | undefined;
224
+ interview_duration?: string | undefined;
225
+ interview_date?: Date | undefined;
226
+ isClosed?: boolean | undefined;
227
+ } | undefined;
228
+ interviewAuditLog?: {
229
+ _id: string;
230
+ createdAt?: Date | undefined;
231
+ performedBy?: string | undefined;
232
+ targetUserId?: string | undefined;
233
+ targetDocumentThreadId?: string | undefined;
234
+ interviewThreadId?: string | undefined;
235
+ action?: string | undefined;
236
+ field?: string | undefined;
237
+ changes?: {
238
+ before?: unknown;
239
+ after?: unknown;
240
+ } | undefined;
241
+ }[] | undefined;
242
+ }>;
243
+ export declare const GetMyInterviewsResponseSchema: z.ZodObject<{
244
+ success: z.ZodBoolean;
245
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
246
+ student_id: z.ZodOptional<z.ZodString>;
247
+ trainer_id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
248
+ thread_id: z.ZodOptional<z.ZodString>;
249
+ program_id: z.ZodOptional<z.ZodString>;
250
+ event_id: z.ZodOptional<z.ZodString>;
251
+ interview_description: z.ZodOptional<z.ZodString>;
252
+ interviewer: z.ZodOptional<z.ZodString>;
253
+ interview_duration: z.ZodOptional<z.ZodString>;
254
+ interview_date: z.ZodOptional<z.ZodDate>;
255
+ isClosed: z.ZodOptional<z.ZodBoolean>;
256
+ start: z.ZodOptional<z.ZodDate>;
257
+ end: z.ZodOptional<z.ZodDate>;
258
+ } & {
259
+ _id: z.ZodString;
260
+ }, "strip", z.ZodTypeAny, {
261
+ _id: string;
262
+ student_id?: string | undefined;
263
+ program_id?: string | undefined;
264
+ end?: Date | undefined;
265
+ start?: Date | undefined;
266
+ trainer_id?: string[] | undefined;
267
+ thread_id?: string | undefined;
268
+ event_id?: string | undefined;
269
+ interview_description?: string | undefined;
270
+ interviewer?: string | undefined;
271
+ interview_duration?: string | undefined;
272
+ interview_date?: Date | undefined;
273
+ isClosed?: boolean | undefined;
274
+ }, {
275
+ _id: string;
276
+ student_id?: string | undefined;
277
+ program_id?: string | undefined;
278
+ end?: Date | undefined;
279
+ start?: Date | undefined;
280
+ trainer_id?: string[] | undefined;
281
+ thread_id?: string | undefined;
282
+ event_id?: string | undefined;
283
+ interview_description?: string | undefined;
284
+ interviewer?: string | undefined;
285
+ interview_duration?: string | undefined;
286
+ interview_date?: Date | undefined;
287
+ isClosed?: boolean | undefined;
288
+ }>, "many">>;
289
+ students: z.ZodOptional<z.ZodArray<z.ZodType<import("..").IStudentResponseDef, z.ZodTypeDef, import("..").IStudentResponseDef>, "many">>;
290
+ student: z.ZodOptional<z.ZodType<import("..").IStudentResponseDef, z.ZodTypeDef, import("..").IStudentResponseDef>>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ success: boolean;
293
+ data?: {
294
+ _id: string;
295
+ student_id?: string | undefined;
296
+ program_id?: string | undefined;
297
+ end?: Date | undefined;
298
+ start?: Date | undefined;
299
+ trainer_id?: string[] | undefined;
300
+ thread_id?: string | undefined;
301
+ event_id?: string | undefined;
302
+ interview_description?: string | undefined;
303
+ interviewer?: string | undefined;
304
+ interview_duration?: string | undefined;
305
+ interview_date?: Date | undefined;
306
+ isClosed?: boolean | undefined;
307
+ }[] | undefined;
308
+ students?: import("..").IStudentResponseDef[] | undefined;
309
+ student?: import("..").IStudentResponseDef | undefined;
310
+ }, {
311
+ success: boolean;
312
+ data?: {
313
+ _id: string;
314
+ student_id?: string | undefined;
315
+ program_id?: string | undefined;
316
+ end?: Date | undefined;
317
+ start?: Date | undefined;
318
+ trainer_id?: string[] | undefined;
319
+ thread_id?: string | undefined;
320
+ event_id?: string | undefined;
321
+ interview_description?: string | undefined;
322
+ interviewer?: string | undefined;
323
+ interview_duration?: string | undefined;
324
+ interview_date?: Date | undefined;
325
+ isClosed?: boolean | undefined;
326
+ }[] | undefined;
327
+ students?: import("..").IStudentResponseDef[] | undefined;
328
+ student?: import("..").IStudentResponseDef | undefined;
329
+ }>;
330
+ export declare const GetInterviewsByProgramIdResponseSchema: z.ZodObject<{
331
+ success: z.ZodBoolean;
332
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
333
+ student_id: z.ZodOptional<z.ZodString>;
334
+ trainer_id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
335
+ thread_id: z.ZodOptional<z.ZodString>;
336
+ program_id: z.ZodOptional<z.ZodString>;
337
+ event_id: z.ZodOptional<z.ZodString>;
338
+ interview_description: z.ZodOptional<z.ZodString>;
339
+ interviewer: z.ZodOptional<z.ZodString>;
340
+ interview_duration: z.ZodOptional<z.ZodString>;
341
+ interview_date: z.ZodOptional<z.ZodDate>;
342
+ isClosed: z.ZodOptional<z.ZodBoolean>;
343
+ start: z.ZodOptional<z.ZodDate>;
344
+ end: z.ZodOptional<z.ZodDate>;
345
+ } & {
346
+ _id: z.ZodString;
347
+ }, "strip", z.ZodTypeAny, {
348
+ _id: string;
349
+ student_id?: string | undefined;
350
+ program_id?: string | undefined;
351
+ end?: Date | undefined;
352
+ start?: Date | undefined;
353
+ trainer_id?: string[] | undefined;
354
+ thread_id?: string | undefined;
355
+ event_id?: string | undefined;
356
+ interview_description?: string | undefined;
357
+ interviewer?: string | undefined;
358
+ interview_duration?: string | undefined;
359
+ interview_date?: Date | undefined;
360
+ isClosed?: boolean | undefined;
361
+ }, {
362
+ _id: string;
363
+ student_id?: string | undefined;
364
+ program_id?: string | undefined;
365
+ end?: Date | undefined;
366
+ start?: Date | undefined;
367
+ trainer_id?: string[] | undefined;
368
+ thread_id?: string | undefined;
369
+ event_id?: string | undefined;
370
+ interview_description?: string | undefined;
371
+ interviewer?: string | undefined;
372
+ interview_duration?: string | undefined;
373
+ interview_date?: Date | undefined;
374
+ isClosed?: boolean | undefined;
375
+ }>, "many">>;
376
+ count: z.ZodOptional<z.ZodNumber>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ success: boolean;
379
+ data?: {
380
+ _id: string;
381
+ student_id?: string | undefined;
382
+ program_id?: string | undefined;
383
+ end?: Date | undefined;
384
+ start?: Date | undefined;
385
+ trainer_id?: string[] | undefined;
386
+ thread_id?: string | undefined;
387
+ event_id?: string | undefined;
388
+ interview_description?: string | undefined;
389
+ interviewer?: string | undefined;
390
+ interview_duration?: string | undefined;
391
+ interview_date?: Date | undefined;
392
+ isClosed?: boolean | undefined;
393
+ }[] | undefined;
394
+ count?: number | undefined;
395
+ }, {
396
+ success: boolean;
397
+ data?: {
398
+ _id: string;
399
+ student_id?: string | undefined;
400
+ program_id?: string | undefined;
401
+ end?: Date | undefined;
402
+ start?: Date | undefined;
403
+ trainer_id?: string[] | undefined;
404
+ thread_id?: string | undefined;
405
+ event_id?: string | undefined;
406
+ interview_description?: string | undefined;
407
+ interviewer?: string | undefined;
408
+ interview_duration?: string | undefined;
409
+ interview_date?: Date | undefined;
410
+ isClosed?: boolean | undefined;
411
+ }[] | undefined;
412
+ count?: number | undefined;
413
+ }>;
414
+ export declare const GetInterviewsByStudentIdResponseSchema: z.ZodObject<{
415
+ success: z.ZodBoolean;
416
+ data: z.ZodOptional<z.ZodArray<z.ZodObject<{
417
+ student_id: z.ZodOptional<z.ZodString>;
418
+ trainer_id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
419
+ thread_id: z.ZodOptional<z.ZodString>;
420
+ program_id: z.ZodOptional<z.ZodString>;
421
+ event_id: z.ZodOptional<z.ZodString>;
422
+ interview_description: z.ZodOptional<z.ZodString>;
423
+ interviewer: z.ZodOptional<z.ZodString>;
424
+ interview_duration: z.ZodOptional<z.ZodString>;
425
+ interview_date: z.ZodOptional<z.ZodDate>;
426
+ isClosed: z.ZodOptional<z.ZodBoolean>;
427
+ start: z.ZodOptional<z.ZodDate>;
428
+ end: z.ZodOptional<z.ZodDate>;
429
+ } & {
430
+ _id: z.ZodString;
431
+ }, "strip", z.ZodTypeAny, {
432
+ _id: string;
433
+ student_id?: string | undefined;
434
+ program_id?: string | undefined;
435
+ end?: Date | undefined;
436
+ start?: Date | undefined;
437
+ trainer_id?: string[] | undefined;
438
+ thread_id?: string | undefined;
439
+ event_id?: string | undefined;
440
+ interview_description?: string | undefined;
441
+ interviewer?: string | undefined;
442
+ interview_duration?: string | undefined;
443
+ interview_date?: Date | undefined;
444
+ isClosed?: boolean | undefined;
445
+ }, {
446
+ _id: string;
447
+ student_id?: string | undefined;
448
+ program_id?: string | undefined;
449
+ end?: Date | undefined;
450
+ start?: Date | undefined;
451
+ trainer_id?: string[] | undefined;
452
+ thread_id?: string | undefined;
453
+ event_id?: string | undefined;
454
+ interview_description?: string | undefined;
455
+ interviewer?: string | undefined;
456
+ interview_duration?: string | undefined;
457
+ interview_date?: Date | undefined;
458
+ isClosed?: boolean | undefined;
459
+ }>, "many">>;
460
+ count: z.ZodOptional<z.ZodNumber>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ success: boolean;
463
+ data?: {
464
+ _id: string;
465
+ student_id?: string | undefined;
466
+ program_id?: string | undefined;
467
+ end?: Date | undefined;
468
+ start?: Date | undefined;
469
+ trainer_id?: string[] | undefined;
470
+ thread_id?: string | undefined;
471
+ event_id?: string | undefined;
472
+ interview_description?: string | undefined;
473
+ interviewer?: string | undefined;
474
+ interview_duration?: string | undefined;
475
+ interview_date?: Date | undefined;
476
+ isClosed?: boolean | undefined;
477
+ }[] | undefined;
478
+ count?: number | undefined;
479
+ }, {
480
+ success: boolean;
481
+ data?: {
482
+ _id: string;
483
+ student_id?: string | undefined;
484
+ program_id?: string | undefined;
485
+ end?: Date | undefined;
486
+ start?: Date | undefined;
487
+ trainer_id?: string[] | undefined;
488
+ thread_id?: string | undefined;
489
+ event_id?: string | undefined;
490
+ interview_description?: string | undefined;
491
+ interviewer?: string | undefined;
492
+ interview_duration?: string | undefined;
493
+ interview_date?: Date | undefined;
494
+ isClosed?: boolean | undefined;
495
+ }[] | undefined;
496
+ count?: number | undefined;
497
+ }>;
498
+ export declare const GetInterviewSurveyResponseSchema: z.ZodObject<{
499
+ success: z.ZodBoolean;
500
+ message: z.ZodOptional<z.ZodString>;
501
+ } & {
502
+ data: z.ZodOptional<z.ZodObject<{
503
+ student_id: z.ZodOptional<z.ZodString>;
504
+ interview_id: z.ZodOptional<z.ZodString>;
505
+ program_id: z.ZodOptional<z.ZodString>;
506
+ responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
507
+ questionId: z.ZodOptional<z.ZodString>;
508
+ answer: z.ZodOptional<z.ZodNumber>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ questionId?: string | undefined;
511
+ answer?: number | undefined;
512
+ }, {
513
+ questionId?: string | undefined;
514
+ answer?: number | undefined;
515
+ }>, "many">>;
516
+ isFinal: z.ZodOptional<z.ZodBoolean>;
517
+ interviewQuestions: z.ZodOptional<z.ZodString>;
518
+ interviewFeedback: z.ZodOptional<z.ZodString>;
519
+ } & {
520
+ _id: z.ZodString;
521
+ }, "strip", z.ZodTypeAny, {
522
+ _id: string;
523
+ student_id?: string | undefined;
524
+ program_id?: string | undefined;
525
+ interview_id?: string | undefined;
526
+ responses?: {
527
+ questionId?: string | undefined;
528
+ answer?: number | undefined;
529
+ }[] | undefined;
530
+ isFinal?: boolean | undefined;
531
+ interviewQuestions?: string | undefined;
532
+ interviewFeedback?: string | undefined;
533
+ }, {
534
+ _id: string;
535
+ student_id?: string | undefined;
536
+ program_id?: string | undefined;
537
+ interview_id?: string | undefined;
538
+ responses?: {
539
+ questionId?: string | undefined;
540
+ answer?: number | undefined;
541
+ }[] | undefined;
542
+ isFinal?: boolean | undefined;
543
+ interviewQuestions?: string | undefined;
544
+ interviewFeedback?: string | undefined;
545
+ }>>;
546
+ }, "strip", z.ZodTypeAny, {
547
+ success: boolean;
548
+ message?: string | undefined;
549
+ data?: {
550
+ _id: string;
551
+ student_id?: string | undefined;
552
+ program_id?: string | undefined;
553
+ interview_id?: string | undefined;
554
+ responses?: {
555
+ questionId?: string | undefined;
556
+ answer?: number | undefined;
557
+ }[] | undefined;
558
+ isFinal?: boolean | undefined;
559
+ interviewQuestions?: string | undefined;
560
+ interviewFeedback?: string | undefined;
561
+ } | undefined;
562
+ }, {
563
+ success: boolean;
564
+ message?: string | undefined;
565
+ data?: {
566
+ _id: string;
567
+ student_id?: string | undefined;
568
+ program_id?: string | undefined;
569
+ interview_id?: string | undefined;
570
+ responses?: {
571
+ questionId?: string | undefined;
572
+ answer?: number | undefined;
573
+ }[] | undefined;
574
+ isFinal?: boolean | undefined;
575
+ interviewQuestions?: string | undefined;
576
+ interviewFeedback?: string | undefined;
577
+ } | undefined;
578
+ }>;
579
+ export declare const UpdateInterviewSurveyResponseSchema: z.ZodObject<{
580
+ success: z.ZodBoolean;
581
+ message: z.ZodOptional<z.ZodString>;
582
+ } & {
583
+ data: z.ZodOptional<z.ZodObject<{
584
+ student_id: z.ZodOptional<z.ZodString>;
585
+ interview_id: z.ZodOptional<z.ZodString>;
586
+ program_id: z.ZodOptional<z.ZodString>;
587
+ responses: z.ZodOptional<z.ZodArray<z.ZodObject<{
588
+ questionId: z.ZodOptional<z.ZodString>;
589
+ answer: z.ZodOptional<z.ZodNumber>;
590
+ }, "strip", z.ZodTypeAny, {
591
+ questionId?: string | undefined;
592
+ answer?: number | undefined;
593
+ }, {
594
+ questionId?: string | undefined;
595
+ answer?: number | undefined;
596
+ }>, "many">>;
597
+ isFinal: z.ZodOptional<z.ZodBoolean>;
598
+ interviewQuestions: z.ZodOptional<z.ZodString>;
599
+ interviewFeedback: z.ZodOptional<z.ZodString>;
600
+ } & {
601
+ _id: z.ZodString;
602
+ }, "strip", z.ZodTypeAny, {
603
+ _id: string;
604
+ student_id?: string | undefined;
605
+ program_id?: string | undefined;
606
+ interview_id?: string | undefined;
607
+ responses?: {
608
+ questionId?: string | undefined;
609
+ answer?: number | undefined;
610
+ }[] | undefined;
611
+ isFinal?: boolean | undefined;
612
+ interviewQuestions?: string | undefined;
613
+ interviewFeedback?: string | undefined;
614
+ }, {
615
+ _id: string;
616
+ student_id?: string | undefined;
617
+ program_id?: string | undefined;
618
+ interview_id?: string | undefined;
619
+ responses?: {
620
+ questionId?: string | undefined;
621
+ answer?: number | undefined;
622
+ }[] | undefined;
623
+ isFinal?: boolean | undefined;
624
+ interviewQuestions?: string | undefined;
625
+ interviewFeedback?: string | undefined;
626
+ }>>;
627
+ }, "strip", z.ZodTypeAny, {
628
+ success: boolean;
629
+ message?: string | undefined;
630
+ data?: {
631
+ _id: string;
632
+ student_id?: string | undefined;
633
+ program_id?: string | undefined;
634
+ interview_id?: string | undefined;
635
+ responses?: {
636
+ questionId?: string | undefined;
637
+ answer?: number | undefined;
638
+ }[] | undefined;
639
+ isFinal?: boolean | undefined;
640
+ interviewQuestions?: string | undefined;
641
+ interviewFeedback?: string | undefined;
642
+ } | undefined;
643
+ }, {
644
+ success: boolean;
645
+ message?: string | undefined;
646
+ data?: {
647
+ _id: string;
648
+ student_id?: string | undefined;
649
+ program_id?: string | undefined;
650
+ interview_id?: string | undefined;
651
+ responses?: {
652
+ questionId?: string | undefined;
653
+ answer?: number | undefined;
654
+ }[] | undefined;
655
+ isFinal?: boolean | undefined;
656
+ interviewQuestions?: string | undefined;
657
+ interviewFeedback?: string | undefined;
658
+ } | undefined;
659
+ }>;
660
+ export declare const CreateInterviewResponseSchema: z.ZodObject<{
661
+ success: z.ZodBoolean;
662
+ message: z.ZodOptional<z.ZodString>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ success: boolean;
665
+ message?: string | undefined;
666
+ }, {
667
+ success: boolean;
668
+ message?: string | undefined;
669
+ }>;
670
+ export declare const DeleteInterviewResponseSchema: z.ZodObject<{
671
+ success: z.ZodBoolean;
672
+ message: z.ZodOptional<z.ZodString>;
673
+ }, "strip", z.ZodTypeAny, {
674
+ success: boolean;
675
+ message?: string | undefined;
676
+ }, {
677
+ success: boolean;
678
+ message?: string | undefined;
679
+ }>;
680
+ export declare const UpdateInterviewResponseSchema: z.ZodObject<{
681
+ success: z.ZodBoolean;
682
+ message: z.ZodOptional<z.ZodString>;
683
+ } & {
684
+ data: z.ZodOptional<z.ZodObject<{
685
+ student_id: z.ZodOptional<z.ZodString>;
686
+ trainer_id: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
687
+ thread_id: z.ZodOptional<z.ZodString>;
688
+ program_id: z.ZodOptional<z.ZodString>;
689
+ event_id: z.ZodOptional<z.ZodString>;
690
+ interview_description: z.ZodOptional<z.ZodString>;
691
+ interviewer: z.ZodOptional<z.ZodString>;
692
+ interview_duration: z.ZodOptional<z.ZodString>;
693
+ interview_date: z.ZodOptional<z.ZodDate>;
694
+ isClosed: z.ZodOptional<z.ZodBoolean>;
695
+ start: z.ZodOptional<z.ZodDate>;
696
+ end: z.ZodOptional<z.ZodDate>;
697
+ } & {
698
+ _id: z.ZodString;
699
+ }, "strip", z.ZodTypeAny, {
700
+ _id: string;
701
+ student_id?: string | undefined;
702
+ program_id?: string | undefined;
703
+ end?: Date | undefined;
704
+ start?: Date | undefined;
705
+ trainer_id?: string[] | undefined;
706
+ thread_id?: string | undefined;
707
+ event_id?: string | undefined;
708
+ interview_description?: string | undefined;
709
+ interviewer?: string | undefined;
710
+ interview_duration?: string | undefined;
711
+ interview_date?: Date | undefined;
712
+ isClosed?: boolean | undefined;
713
+ }, {
714
+ _id: string;
715
+ student_id?: string | undefined;
716
+ program_id?: string | undefined;
717
+ end?: Date | undefined;
718
+ start?: Date | undefined;
719
+ trainer_id?: string[] | undefined;
720
+ thread_id?: string | undefined;
721
+ event_id?: string | undefined;
722
+ interview_description?: string | undefined;
723
+ interviewer?: string | undefined;
724
+ interview_duration?: string | undefined;
725
+ interview_date?: Date | undefined;
726
+ isClosed?: boolean | undefined;
727
+ }>>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ success: boolean;
730
+ message?: string | undefined;
731
+ data?: {
732
+ _id: string;
733
+ student_id?: string | undefined;
734
+ program_id?: string | undefined;
735
+ end?: Date | undefined;
736
+ start?: Date | undefined;
737
+ trainer_id?: string[] | undefined;
738
+ thread_id?: string | undefined;
739
+ event_id?: string | undefined;
740
+ interview_description?: string | undefined;
741
+ interviewer?: string | undefined;
742
+ interview_duration?: string | undefined;
743
+ interview_date?: Date | undefined;
744
+ isClosed?: boolean | undefined;
745
+ } | undefined;
746
+ }, {
747
+ success: boolean;
748
+ message?: string | undefined;
749
+ data?: {
750
+ _id: string;
751
+ student_id?: string | undefined;
752
+ program_id?: string | undefined;
753
+ end?: Date | undefined;
754
+ start?: Date | undefined;
755
+ trainer_id?: string[] | undefined;
756
+ thread_id?: string | undefined;
757
+ event_id?: string | undefined;
758
+ interview_description?: string | undefined;
759
+ interviewer?: string | undefined;
760
+ interview_duration?: string | undefined;
761
+ interview_date?: Date | undefined;
762
+ isClosed?: boolean | undefined;
763
+ } | undefined;
764
+ }>;
765
+ export declare const AddInterviewTrainingDateTimeResponseSchema: z.ZodObject<{
766
+ success: z.ZodBoolean;
767
+ message: z.ZodOptional<z.ZodString>;
768
+ }, "strip", z.ZodTypeAny, {
769
+ success: boolean;
770
+ message?: string | undefined;
771
+ }, {
772
+ success: boolean;
773
+ message?: string | undefined;
774
+ }>;
3
775
  /** GET /api/interviews, GET /api/interviews/open */
4
- export type GetInterviewsResponse = ApiResponse<IInterviewWithId[]>;
776
+ export type GetInterviewsResponse = z.infer<typeof GetInterviewsResponseSchema>;
5
777
  /**
6
778
  * GET /api/interviews/:interview_id
7
779
  * Non-standard: also returns interviewAuditLog
8
780
  */
9
- export interface GetInterviewResponse {
10
- success: boolean;
11
- data?: IInterviewWithId;
12
- interviewAuditLog?: IAuditWithId[];
13
- }
781
+ export type GetInterviewResponse = z.infer<typeof GetInterviewResponseSchema>;
14
782
  /**
15
783
  * GET /api/interviews/my-interviews
16
784
  * Non-standard: returns students or student alongside data
17
785
  */
18
- export interface GetMyInterviewsResponse {
19
- success: boolean;
20
- data?: IInterviewWithId[];
21
- students?: IStudentResponse[];
22
- student?: IStudentResponse;
23
- }
786
+ export type GetMyInterviewsResponse = z.infer<typeof GetMyInterviewsResponseSchema>;
24
787
  /** GET /api/interviews/interview/:program_id */
25
- export interface GetInterviewsByProgramIdResponse {
26
- success: boolean;
27
- data?: IInterviewWithId[];
28
- count?: number;
29
- }
788
+ export type GetInterviewsByProgramIdResponse = z.infer<typeof GetInterviewsByProgramIdResponseSchema>;
30
789
  /** GET /api/interviews/interviews/:student_id */
31
- export interface GetInterviewsByStudentIdResponse {
32
- success: boolean;
33
- data?: IInterviewWithId[];
34
- count?: number;
35
- }
790
+ export type GetInterviewsByStudentIdResponse = z.infer<typeof GetInterviewsByStudentIdResponseSchema>;
36
791
  /** GET /api/interviews/:interview_id/survey */
37
- export type GetInterviewSurveyResponse = ApiResponse<IInterviewSurveyResponseWithId>;
792
+ export type GetInterviewSurveyResponse = z.infer<typeof GetInterviewSurveyResponseSchema>;
38
793
  /** PUT /api/interviews/:interview_id/survey */
39
- export type UpdateInterviewSurveyResponse = ApiResponse<IInterviewSurveyResponseWithId>;
794
+ export type UpdateInterviewSurveyResponse = z.infer<typeof UpdateInterviewSurveyResponseSchema>;
40
795
  /** POST /api/interviews/create/:program_id/:student_id */
41
- export type CreateInterviewResponse = SuccessResponse;
796
+ export type CreateInterviewResponse = z.infer<typeof CreateInterviewResponseSchema>;
42
797
  /** DELETE /api/interviews/:interview_id */
43
- export type DeleteInterviewResponse = SuccessResponse;
798
+ export type DeleteInterviewResponse = z.infer<typeof DeleteInterviewResponseSchema>;
44
799
  /** PUT /api/interviews/:interview_id */
45
- export type UpdateInterviewResponse = ApiResponse<IInterviewWithId>;
800
+ export type UpdateInterviewResponse = z.infer<typeof UpdateInterviewResponseSchema>;
46
801
  /** POST /api/interviews/time/:interview_id */
47
- export type AddInterviewTrainingDateTimeResponse = SuccessResponse;
802
+ export type AddInterviewTrainingDateTimeResponse = z.infer<typeof AddInterviewTrainingDateTimeResponseSchema>;