@taiger-common/model 1.0.57 → 1.0.59

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 (100) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/cjs/model/User.js +1 -0
  4. package/dist/esm/index.js +0 -2
  5. package/dist/esm/model/Documentthread.js +4 -2
  6. package/dist/esm/model/Program.js +78 -326
  7. package/dist/esm/model/User.js +124 -62
  8. package/dist/esm/model/index.js +1 -1
  9. package/dist/types/index.d.ts +0 -2
  10. package/dist/types/model/Allcourse.d.ts +27 -6
  11. package/dist/types/model/Audit.d.ts +43 -18
  12. package/dist/types/model/Basedocumentationslink.d.ts +16 -11
  13. package/dist/types/model/Communication.d.ts +71 -22
  14. package/dist/types/model/Complaint.d.ts +170 -25
  15. package/dist/types/model/Course.d.ts +49 -23
  16. package/dist/types/model/Docspage.d.ts +37 -14
  17. package/dist/types/model/Documentation.d.ts +28 -15
  18. package/dist/types/model/Documentthread.d.ts +178 -35
  19. package/dist/types/model/Event.d.ts +54 -15
  20. package/dist/types/model/Internaldoc.d.ts +28 -15
  21. package/dist/types/model/Interval.d.ts +26 -13
  22. package/dist/types/model/Interview.d.ts +50 -23
  23. package/dist/types/model/InterviewSurveyResponse.d.ts +62 -20
  24. package/dist/types/model/Keywordset.d.ts +44 -14
  25. package/dist/types/model/Note.d.ts +13 -11
  26. package/dist/types/model/Permission.d.ts +56 -21
  27. package/dist/types/model/Program.d.ts +232 -387
  28. package/dist/types/model/Programrequirement.d.ts +140 -37
  29. package/dist/types/model/ResponseTime.d.ts +17 -12
  30. package/dist/types/model/SurveyInput.d.ts +90 -23
  31. package/dist/types/model/Template.d.ts +13 -8
  32. package/dist/types/model/Tenant.d.ts +13 -10
  33. package/dist/types/model/Ticket.d.ts +38 -16
  34. package/dist/types/model/Token.d.ts +12 -10
  35. package/dist/types/model/User.d.ts +1 -2148
  36. package/dist/types/model/index.d.ts +1 -1
  37. package/dist/umd/index.js +1 -1
  38. package/package.json +1 -1
  39. package/dist/esm/api/account.js +0 -32
  40. package/dist/esm/api/applications.js +0 -43
  41. package/dist/esm/api/audit.js +0 -5
  42. package/dist/esm/api/auth.js +0 -16
  43. package/dist/esm/api/common.js +0 -27
  44. package/dist/esm/api/communications.js +0 -12
  45. package/dist/esm/api/courses.js +0 -20
  46. package/dist/esm/api/crm.js +0 -84
  47. package/dist/esm/api/documentThreads.js +0 -41
  48. package/dist/esm/api/documentations.js +0 -30
  49. package/dist/esm/api/events.js +0 -19
  50. package/dist/esm/api/index.js +0 -25
  51. package/dist/esm/api/interviews.js +0 -32
  52. package/dist/esm/api/meetings.js +0 -17
  53. package/dist/esm/api/notes.js +0 -5
  54. package/dist/esm/api/permissions.js +0 -6
  55. package/dist/esm/api/portals.js +0 -21
  56. package/dist/esm/api/programRequirements.js +0 -23
  57. package/dist/esm/api/programs.js +0 -90
  58. package/dist/esm/api/search.js +0 -21
  59. package/dist/esm/api/serialized.js +0 -13
  60. package/dist/esm/api/students.js +0 -26
  61. package/dist/esm/api/teams.js +0 -45
  62. package/dist/esm/api/tickets.js +0 -18
  63. package/dist/esm/api/users.js +0 -39
  64. package/dist/esm/api/widgets.js +0 -18
  65. package/dist/esm/constants/users.js +0 -9
  66. package/dist/esm/model/Application.js +0 -75
  67. package/dist/esm/schema/index.js +0 -6
  68. package/dist/esm/schema/models.js +0 -520
  69. package/dist/esm/schema/serialized.js +0 -199
  70. package/dist/types/api/account.d.ts +0 -503
  71. package/dist/types/api/applications.d.ts +0 -3417
  72. package/dist/types/api/audit.d.ts +0 -89
  73. package/dist/types/api/auth.d.ts +0 -3411
  74. package/dist/types/api/common.d.ts +0 -90
  75. package/dist/types/api/communications.d.ts +0 -617
  76. package/dist/types/api/courses.d.ts +0 -849
  77. package/dist/types/api/crm.d.ts +0 -1113
  78. package/dist/types/api/documentThreads.d.ts +0 -38257
  79. package/dist/types/api/documentations.d.ts +0 -933
  80. package/dist/types/api/events.d.ts +0 -7209
  81. package/dist/types/api/index.d.ts +0 -25
  82. package/dist/types/api/interviews.d.ts +0 -802
  83. package/dist/types/api/meetings.d.ts +0 -49
  84. package/dist/types/api/notes.d.ts +0 -85
  85. package/dist/types/api/permissions.d.ts +0 -195
  86. package/dist/types/api/portals.d.ts +0 -770
  87. package/dist/types/api/programRequirements.d.ts +0 -2685
  88. package/dist/types/api/programs.d.ts +0 -3046
  89. package/dist/types/api/search.d.ts +0 -292
  90. package/dist/types/api/serialized.d.ts +0 -7
  91. package/dist/types/api/students.d.ts +0 -307
  92. package/dist/types/api/teams.d.ts +0 -3671
  93. package/dist/types/api/tickets.d.ts +0 -960
  94. package/dist/types/api/users.d.ts +0 -6960
  95. package/dist/types/api/widgets.d.ts +0 -234
  96. package/dist/types/constants/users.d.ts +0 -9
  97. package/dist/types/model/Application.d.ts +0 -85
  98. package/dist/types/schema/index.d.ts +0 -6
  99. package/dist/types/schema/models.d.ts +0 -2038
  100. package/dist/types/schema/serialized.d.ts +0 -8823
@@ -1,90 +0,0 @@
1
- /**
2
- * Common API response types shared across all domains.
3
- */
4
- import { z } from 'zod';
5
- export declare const SuccessResponseSchema: z.ZodObject<{
6
- success: z.ZodBoolean;
7
- message: z.ZodOptional<z.ZodString>;
8
- }, "strip", z.ZodTypeAny, {
9
- success: boolean;
10
- message?: string | undefined;
11
- }, {
12
- success: boolean;
13
- message?: string | undefined;
14
- }>;
15
- /**
16
- * Factory that wraps a data schema in the standard API response envelope.
17
- * Usage: createApiResponseSchema(z.array(UserWithIdSchema))
18
- */
19
- export declare const createApiResponseSchema: <T extends z.ZodTypeAny>(dataSchema: T) => z.ZodObject<{
20
- success: z.ZodBoolean;
21
- message: z.ZodOptional<z.ZodString>;
22
- } & {
23
- data: z.ZodOptional<T>;
24
- }, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
25
- success: z.ZodBoolean;
26
- message: z.ZodOptional<z.ZodString>;
27
- } & {
28
- data: z.ZodOptional<T>;
29
- }>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
30
- success: z.ZodBoolean;
31
- message: z.ZodOptional<z.ZodString>;
32
- } & {
33
- data: z.ZodOptional<T>;
34
- }>, any>[k]; } : never, z.baseObjectInputType<{
35
- success: z.ZodBoolean;
36
- message: z.ZodOptional<z.ZodString>;
37
- } & {
38
- data: z.ZodOptional<T>;
39
- }> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
40
- success: z.ZodBoolean;
41
- message: z.ZodOptional<z.ZodString>;
42
- } & {
43
- data: z.ZodOptional<T>;
44
- }>[k_1]; } : never>;
45
- /**
46
- * Factory for paginated list responses.
47
- * Usage: createPaginatedResponseSchema(SomeItemSchema)
48
- */
49
- export declare const createPaginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
50
- success: z.ZodBoolean;
51
- message: z.ZodOptional<z.ZodString>;
52
- } & {
53
- data: z.ZodOptional<z.ZodArray<T, "many">>;
54
- } & {
55
- total: z.ZodOptional<z.ZodNumber>;
56
- }, "strip", z.ZodTypeAny, {
57
- success: boolean;
58
- message?: string | undefined;
59
- data?: T["_output"][] | undefined;
60
- total?: number | undefined;
61
- }, {
62
- success: boolean;
63
- message?: string | undefined;
64
- data?: T["_input"][] | undefined;
65
- total?: number | undefined;
66
- }>;
67
- /** Base response for mutation endpoints that return no data payload */
68
- export type SuccessResponse = z.infer<typeof SuccessResponseSchema>;
69
- /** Generic API response wrapper used by most backend endpoints */
70
- export type ApiResponse<T = unknown> = SuccessResponse & {
71
- data?: T;
72
- };
73
- /** Paginated list response */
74
- export type PaginatedResponse<T> = ApiResponse<T[]> & {
75
- total?: number;
76
- };
77
- export type StudentId = string;
78
- export type ApplicationId = string;
79
- export type UserId = string;
80
- export type ProgramId = string;
81
- export type DocumentThreadId = string;
82
- export type MessageId = string;
83
- export type SurveyId = string;
84
- export type EventId = string;
85
- export type TicketId = string;
86
- export type MeetingId = string;
87
- export type InterviewId = string;
88
- export type LeadId = string;
89
- export type CourseId = string;
90
- export type KeywordsSetId = string;
@@ -1,617 +0,0 @@
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
- }>;
602
- /** GET /api/communications/:studentId */
603
- export type GetCommunicationThreadResponse = z.infer<typeof GetCommunicationThreadResponseSchema>;
604
- /** GET /api/communications/all */
605
- export type GetMyCommunicationThreadResponse = z.infer<typeof GetMyCommunicationThreadResponseSchema>;
606
- /** GET /api/communications/ping/all */
607
- export type GetCommunicationUnreadNumberResponse = z.infer<typeof GetCommunicationUnreadNumberResponseSchema>;
608
- /** POST /api/communications/:studentId */
609
- export type PostCommunicationResponse = z.infer<typeof PostCommunicationResponseSchema>;
610
- /** GET /api/communications/:studentId/pages/:pageNumber */
611
- export type LoadCommunicationThreadResponse = z.infer<typeof LoadCommunicationThreadResponseSchema>;
612
- /** PUT /api/communications/:communication_id/:communication_messageId */
613
- export type UpdateCommunicationMessageResponse = z.infer<typeof UpdateCommunicationMessageResponseSchema>;
614
- /** DELETE /api/communications/:student_id/:communication_messageId */
615
- export type DeleteCommunicationMessageResponse = z.infer<typeof DeleteCommunicationMessageResponseSchema>;
616
- /** PUT /api/communications/:student_id/:communication_messageId/:ignoreMessageState/ignore */
617
- export type IgnoreCommunicationMessageResponse = z.infer<typeof IgnoreCommunicationMessageResponseSchema>;