@aiquants/daily-report 0.4.2 → 0.6.0

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 (41) hide show
  1. package/README.md +59 -0
  2. package/dist/client.d.mts +90 -5
  3. package/dist/client.d.ts +90 -5
  4. package/dist/client.js +4 -4
  5. package/dist/client.js.map +1 -1
  6. package/dist/client.mjs +4 -4
  7. package/dist/client.mjs.map +1 -1
  8. package/dist/index.d.mts +2 -2
  9. package/dist/index.d.ts +2 -2
  10. package/dist/index.js +1 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +1 -1
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/server.d.mts +13 -1
  15. package/dist/server.d.ts +13 -1
  16. package/dist/server.js +6 -6
  17. package/dist/server.js.map +1 -1
  18. package/dist/server.mjs +6 -6
  19. package/dist/server.mjs.map +1 -1
  20. package/dist/sse-schema-eXcMG-Ej.d.ts +2025 -0
  21. package/dist/sse-schema-rbG114od.d.mts +2025 -0
  22. package/dist/styles/daily-report.standalone.css +1 -1
  23. package/dist/{types-DAyE_3R1.d.mts → types-D1PKubyo.d.mts} +26 -26
  24. package/dist/{types-DAyE_3R1.d.ts → types-D1PKubyo.d.ts} +26 -26
  25. package/package.json +3 -3
  26. package/src/client/components/daily-report-detail-list.tsx +63 -51
  27. package/src/client/components/daily-report-list.tsx +16 -4
  28. package/src/client/components/daily-report-resolved-content.tsx +33 -7
  29. package/src/client/config-context.tsx +21 -8
  30. package/src/client/contexts/daily-report-action-context.tsx +54 -2
  31. package/src/client/hooks/use-daily-report-sse-connection.ts +1 -1
  32. package/src/client/hooks/use-daily-report.ts +25 -3
  33. package/src/server/cache.spec.ts +47 -0
  34. package/src/server/cache.ts +27 -0
  35. package/src/server/handlers.ts +4 -0
  36. package/src/server/service.ts +18 -1
  37. package/src/shared/comment-adapter.ts +3 -3
  38. package/src/shared/sse-schema.ts +27 -25
  39. package/src/shared/types.ts +26 -26
  40. package/dist/sse-schema-BnQQh_Cc.d.ts +0 -1986
  41. package/dist/sse-schema-DRNjDRDy.d.mts +0 -1986
@@ -0,0 +1,2025 @@
1
+ import { c as DailyReportComment, d as DailyReportCommentItem } from './types-D1PKubyo.mjs';
2
+ import { z } from 'zod';
3
+
4
+ /**
5
+ * Adapters merging legacy JSON comments and relational comments for the UI.
6
+ * レガシー JSON コメントとリレーショナルコメントを UI 向けに統合するアダプタ群。
7
+ */
8
+
9
+ type UIComment = {
10
+ id: string | number;
11
+ authorName: string;
12
+ content: string;
13
+ createdAt?: string;
14
+ isMine: boolean;
15
+ color?: string;
16
+ isLegacy: boolean;
17
+ };
18
+ /**
19
+ * Merges legacy JSON comments and modern relational comments into a unified UI format.
20
+ * レガシーな JSON コメントとモダンなリレーショナルコメントを統合された UI 形式にマージする。
21
+ */
22
+ declare const mergeComments: (legacyComments: DailyReportComment[], modernComments: DailyReportCommentItem[], currentUserId?: string | null) => UIComment[];
23
+ /**
24
+ * Resolves comment color tokens into Tailwind text classes.
25
+ * コメント色のキーワードを Tailwind のテキストクラスに変換する関数。
26
+ */
27
+ declare const resolveCommentColorClass: (color: string | null | undefined) => string;
28
+
29
+ /**
30
+ * Zod schemas for daily-report SSE messages (client/server shared contract).
31
+ * 日報 SSE メッセージの zod スキーマ (client / server 共有契約)。
32
+ */
33
+
34
+ declare const dailyReportInterviewerSchema: z.ZodObject<{
35
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ name?: string | null | undefined;
39
+ affiliation?: string | null | undefined;
40
+ }, {
41
+ name?: string | null | undefined;
42
+ affiliation?: string | null | undefined;
43
+ }>;
44
+ declare const dailyReportCommentSchema: z.ZodObject<{
45
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ color?: string | null | undefined;
50
+ name?: string | null | undefined;
51
+ text?: string | null | undefined;
52
+ }, {
53
+ color?: string | null | undefined;
54
+ name?: string | null | undefined;
55
+ text?: string | null | undefined;
56
+ }>;
57
+ declare const dailyReportLabelDefSchema: z.ZodObject<{
58
+ id: z.ZodNumber;
59
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ id: number;
63
+ color?: string | null | undefined;
64
+ name?: string | null | undefined;
65
+ }, {
66
+ id: number;
67
+ color?: string | null | undefined;
68
+ name?: string | null | undefined;
69
+ }>;
70
+ declare const dailyReportCommentItemSchema: z.ZodObject<{
71
+ id: z.ZodNumber;
72
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ isMine: z.ZodBoolean;
77
+ }, "strip", z.ZodTypeAny, {
78
+ id: number;
79
+ isMine: boolean;
80
+ content?: string | null | undefined;
81
+ createdAt?: string | null | undefined;
82
+ userId?: string | null | undefined;
83
+ userName?: string | null | undefined;
84
+ }, {
85
+ id: number;
86
+ isMine: boolean;
87
+ content?: string | null | undefined;
88
+ createdAt?: string | null | undefined;
89
+ userId?: string | null | undefined;
90
+ userName?: string | null | undefined;
91
+ }>;
92
+ declare const dailyReportDetailSchema: z.ZodObject<{
93
+ reportHubId: z.ZodNumber;
94
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
97
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
98
+ sourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ employeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ creationCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
+ visitTimeFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ visitTimeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ customerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
+ interviewers: z.ZodArray<z.ZodObject<{
108
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ name?: string | null | undefined;
112
+ affiliation?: string | null | undefined;
113
+ }, {
114
+ name?: string | null | undefined;
115
+ affiliation?: string | null | undefined;
116
+ }>, "many">;
117
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ comments: z.ZodArray<z.ZodObject<{
120
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ color?: string | null | undefined;
125
+ name?: string | null | undefined;
126
+ text?: string | null | undefined;
127
+ }, {
128
+ color?: string | null | undefined;
129
+ name?: string | null | undefined;
130
+ text?: string | null | undefined;
131
+ }>, "many">;
132
+ isRead: z.ZodBoolean;
133
+ isStarred: z.ZodBoolean;
134
+ labels: z.ZodArray<z.ZodObject<{
135
+ id: z.ZodNumber;
136
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
137
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ id: number;
140
+ color?: string | null | undefined;
141
+ name?: string | null | undefined;
142
+ }, {
143
+ id: number;
144
+ color?: string | null | undefined;
145
+ name?: string | null | undefined;
146
+ }>, "many">;
147
+ commentItems: z.ZodArray<z.ZodObject<{
148
+ id: z.ZodNumber;
149
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ isMine: z.ZodBoolean;
154
+ }, "strip", z.ZodTypeAny, {
155
+ id: number;
156
+ isMine: boolean;
157
+ content?: string | null | undefined;
158
+ createdAt?: string | null | undefined;
159
+ userId?: string | null | undefined;
160
+ userName?: string | null | undefined;
161
+ }, {
162
+ id: number;
163
+ isMine: boolean;
164
+ content?: string | null | undefined;
165
+ createdAt?: string | null | undefined;
166
+ userId?: string | null | undefined;
167
+ userName?: string | null | undefined;
168
+ }>, "many">;
169
+ }, "strip", z.ZodTypeAny, {
170
+ reportHubId: number;
171
+ comments: {
172
+ color?: string | null | undefined;
173
+ name?: string | null | undefined;
174
+ text?: string | null | undefined;
175
+ }[];
176
+ interviewers: {
177
+ name?: string | null | undefined;
178
+ affiliation?: string | null | undefined;
179
+ }[];
180
+ isRead: boolean;
181
+ isStarred: boolean;
182
+ labels: {
183
+ id: number;
184
+ color?: string | null | undefined;
185
+ name?: string | null | undefined;
186
+ }[];
187
+ commentItems: {
188
+ id: number;
189
+ isMine: boolean;
190
+ content?: string | null | undefined;
191
+ createdAt?: string | null | undefined;
192
+ userId?: string | null | undefined;
193
+ userName?: string | null | undefined;
194
+ }[];
195
+ content?: string | null | undefined;
196
+ date?: string | null | undefined;
197
+ author?: string | null | undefined;
198
+ createdAt?: string | null | undefined;
199
+ updatedAt?: string | null | undefined;
200
+ updatedBy?: string | null | undefined;
201
+ category?: string | null | undefined;
202
+ creationCategory?: string | null | undefined;
203
+ subject?: string | null | undefined;
204
+ userId?: string | null | undefined;
205
+ sourceType?: string | null | undefined;
206
+ employeeName?: string | null | undefined;
207
+ visitTimeFrom?: string | null | undefined;
208
+ visitTimeTo?: string | null | undefined;
209
+ customerName?: string | null | undefined;
210
+ }, {
211
+ reportHubId: number;
212
+ comments: {
213
+ color?: string | null | undefined;
214
+ name?: string | null | undefined;
215
+ text?: string | null | undefined;
216
+ }[];
217
+ interviewers: {
218
+ name?: string | null | undefined;
219
+ affiliation?: string | null | undefined;
220
+ }[];
221
+ isRead: boolean;
222
+ isStarred: boolean;
223
+ labels: {
224
+ id: number;
225
+ color?: string | null | undefined;
226
+ name?: string | null | undefined;
227
+ }[];
228
+ commentItems: {
229
+ id: number;
230
+ isMine: boolean;
231
+ content?: string | null | undefined;
232
+ createdAt?: string | null | undefined;
233
+ userId?: string | null | undefined;
234
+ userName?: string | null | undefined;
235
+ }[];
236
+ content?: string | null | undefined;
237
+ date?: string | null | undefined;
238
+ author?: string | null | undefined;
239
+ createdAt?: string | null | undefined;
240
+ updatedAt?: string | null | undefined;
241
+ updatedBy?: string | null | undefined;
242
+ category?: string | null | undefined;
243
+ creationCategory?: string | null | undefined;
244
+ subject?: string | null | undefined;
245
+ userId?: string | null | undefined;
246
+ sourceType?: string | null | undefined;
247
+ employeeName?: string | null | undefined;
248
+ visitTimeFrom?: string | null | undefined;
249
+ visitTimeTo?: string | null | undefined;
250
+ customerName?: string | null | undefined;
251
+ }>;
252
+ declare const connectedMessageSchema: z.ZodObject<{
253
+ type: z.ZodLiteral<"connected">;
254
+ }, "strip", z.ZodTypeAny, {
255
+ type: "connected";
256
+ }, {
257
+ type: "connected";
258
+ }>;
259
+ declare const statusUpdateMessageSchema: z.ZodObject<{
260
+ type: z.ZodLiteral<"status-update">;
261
+ reportHubId: z.ZodNumber;
262
+ statusType: z.ZodEnum<["star", "read"]>;
263
+ value: z.ZodBoolean;
264
+ clientTempId: z.ZodString;
265
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
266
+ }, "strip", z.ZodTypeAny, {
267
+ reportHubId: number;
268
+ type: "status-update";
269
+ value: boolean;
270
+ statusType: "star" | "read";
271
+ clientTempId: string;
272
+ recipientRawUserId?: number | undefined;
273
+ }, {
274
+ reportHubId: number;
275
+ type: "status-update";
276
+ value: boolean;
277
+ statusType: "star" | "read";
278
+ clientTempId: string;
279
+ recipientRawUserId?: number | undefined;
280
+ }>;
281
+ declare const commentAddMessageSchema: z.ZodObject<{
282
+ type: z.ZodLiteral<"comment-add">;
283
+ reportHubId: z.ZodNumber;
284
+ comment: z.ZodObject<{
285
+ id: z.ZodNumber;
286
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ isMine: z.ZodBoolean;
291
+ }, "strip", z.ZodTypeAny, {
292
+ id: number;
293
+ isMine: boolean;
294
+ content?: string | null | undefined;
295
+ createdAt?: string | null | undefined;
296
+ userId?: string | null | undefined;
297
+ userName?: string | null | undefined;
298
+ }, {
299
+ id: number;
300
+ isMine: boolean;
301
+ content?: string | null | undefined;
302
+ createdAt?: string | null | undefined;
303
+ userId?: string | null | undefined;
304
+ userName?: string | null | undefined;
305
+ }>;
306
+ clientTempId: z.ZodString;
307
+ }, "strip", z.ZodTypeAny, {
308
+ comment: {
309
+ id: number;
310
+ isMine: boolean;
311
+ content?: string | null | undefined;
312
+ createdAt?: string | null | undefined;
313
+ userId?: string | null | undefined;
314
+ userName?: string | null | undefined;
315
+ };
316
+ reportHubId: number;
317
+ type: "comment-add";
318
+ clientTempId: string;
319
+ }, {
320
+ comment: {
321
+ id: number;
322
+ isMine: boolean;
323
+ content?: string | null | undefined;
324
+ createdAt?: string | null | undefined;
325
+ userId?: string | null | undefined;
326
+ userName?: string | null | undefined;
327
+ };
328
+ reportHubId: number;
329
+ type: "comment-add";
330
+ clientTempId: string;
331
+ }>;
332
+ declare const commentDeleteMessageSchema: z.ZodObject<{
333
+ type: z.ZodLiteral<"comment-delete">;
334
+ reportHubId: z.ZodNumber;
335
+ commentId: z.ZodNumber;
336
+ clientTempId: z.ZodString;
337
+ }, "strip", z.ZodTypeAny, {
338
+ reportHubId: number;
339
+ type: "comment-delete";
340
+ clientTempId: string;
341
+ commentId: number;
342
+ }, {
343
+ reportHubId: number;
344
+ type: "comment-delete";
345
+ clientTempId: string;
346
+ commentId: number;
347
+ }>;
348
+ declare const reportCreateMessageSchema: z.ZodObject<{
349
+ type: z.ZodLiteral<"report-create">;
350
+ reportHubId: z.ZodNumber;
351
+ report: z.ZodObject<{
352
+ reportHubId: z.ZodNumber;
353
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
354
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ sourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
+ employeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
359
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
360
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
361
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
362
+ creationCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
363
+ visitTimeFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
+ visitTimeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
365
+ customerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
366
+ interviewers: z.ZodArray<z.ZodObject<{
367
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ name?: string | null | undefined;
371
+ affiliation?: string | null | undefined;
372
+ }, {
373
+ name?: string | null | undefined;
374
+ affiliation?: string | null | undefined;
375
+ }>, "many">;
376
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
+ comments: z.ZodArray<z.ZodObject<{
379
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ }, "strip", z.ZodTypeAny, {
383
+ color?: string | null | undefined;
384
+ name?: string | null | undefined;
385
+ text?: string | null | undefined;
386
+ }, {
387
+ color?: string | null | undefined;
388
+ name?: string | null | undefined;
389
+ text?: string | null | undefined;
390
+ }>, "many">;
391
+ isRead: z.ZodBoolean;
392
+ isStarred: z.ZodBoolean;
393
+ labels: z.ZodArray<z.ZodObject<{
394
+ id: z.ZodNumber;
395
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
396
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
397
+ }, "strip", z.ZodTypeAny, {
398
+ id: number;
399
+ color?: string | null | undefined;
400
+ name?: string | null | undefined;
401
+ }, {
402
+ id: number;
403
+ color?: string | null | undefined;
404
+ name?: string | null | undefined;
405
+ }>, "many">;
406
+ commentItems: z.ZodArray<z.ZodObject<{
407
+ id: z.ZodNumber;
408
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ isMine: z.ZodBoolean;
413
+ }, "strip", z.ZodTypeAny, {
414
+ id: number;
415
+ isMine: boolean;
416
+ content?: string | null | undefined;
417
+ createdAt?: string | null | undefined;
418
+ userId?: string | null | undefined;
419
+ userName?: string | null | undefined;
420
+ }, {
421
+ id: number;
422
+ isMine: boolean;
423
+ content?: string | null | undefined;
424
+ createdAt?: string | null | undefined;
425
+ userId?: string | null | undefined;
426
+ userName?: string | null | undefined;
427
+ }>, "many">;
428
+ }, "strip", z.ZodTypeAny, {
429
+ reportHubId: number;
430
+ comments: {
431
+ color?: string | null | undefined;
432
+ name?: string | null | undefined;
433
+ text?: string | null | undefined;
434
+ }[];
435
+ interviewers: {
436
+ name?: string | null | undefined;
437
+ affiliation?: string | null | undefined;
438
+ }[];
439
+ isRead: boolean;
440
+ isStarred: boolean;
441
+ labels: {
442
+ id: number;
443
+ color?: string | null | undefined;
444
+ name?: string | null | undefined;
445
+ }[];
446
+ commentItems: {
447
+ id: number;
448
+ isMine: boolean;
449
+ content?: string | null | undefined;
450
+ createdAt?: string | null | undefined;
451
+ userId?: string | null | undefined;
452
+ userName?: string | null | undefined;
453
+ }[];
454
+ content?: string | null | undefined;
455
+ date?: string | null | undefined;
456
+ author?: string | null | undefined;
457
+ createdAt?: string | null | undefined;
458
+ updatedAt?: string | null | undefined;
459
+ updatedBy?: string | null | undefined;
460
+ category?: string | null | undefined;
461
+ creationCategory?: string | null | undefined;
462
+ subject?: string | null | undefined;
463
+ userId?: string | null | undefined;
464
+ sourceType?: string | null | undefined;
465
+ employeeName?: string | null | undefined;
466
+ visitTimeFrom?: string | null | undefined;
467
+ visitTimeTo?: string | null | undefined;
468
+ customerName?: string | null | undefined;
469
+ }, {
470
+ reportHubId: number;
471
+ comments: {
472
+ color?: string | null | undefined;
473
+ name?: string | null | undefined;
474
+ text?: string | null | undefined;
475
+ }[];
476
+ interviewers: {
477
+ name?: string | null | undefined;
478
+ affiliation?: string | null | undefined;
479
+ }[];
480
+ isRead: boolean;
481
+ isStarred: boolean;
482
+ labels: {
483
+ id: number;
484
+ color?: string | null | undefined;
485
+ name?: string | null | undefined;
486
+ }[];
487
+ commentItems: {
488
+ id: number;
489
+ isMine: boolean;
490
+ content?: string | null | undefined;
491
+ createdAt?: string | null | undefined;
492
+ userId?: string | null | undefined;
493
+ userName?: string | null | undefined;
494
+ }[];
495
+ content?: string | null | undefined;
496
+ date?: string | null | undefined;
497
+ author?: string | null | undefined;
498
+ createdAt?: string | null | undefined;
499
+ updatedAt?: string | null | undefined;
500
+ updatedBy?: string | null | undefined;
501
+ category?: string | null | undefined;
502
+ creationCategory?: string | null | undefined;
503
+ subject?: string | null | undefined;
504
+ userId?: string | null | undefined;
505
+ sourceType?: string | null | undefined;
506
+ employeeName?: string | null | undefined;
507
+ visitTimeFrom?: string | null | undefined;
508
+ visitTimeTo?: string | null | undefined;
509
+ customerName?: string | null | undefined;
510
+ }>;
511
+ clientTempId: z.ZodString;
512
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
513
+ }, "strip", z.ZodTypeAny, {
514
+ reportHubId: number;
515
+ type: "report-create";
516
+ clientTempId: string;
517
+ report: {
518
+ reportHubId: number;
519
+ comments: {
520
+ color?: string | null | undefined;
521
+ name?: string | null | undefined;
522
+ text?: string | null | undefined;
523
+ }[];
524
+ interviewers: {
525
+ name?: string | null | undefined;
526
+ affiliation?: string | null | undefined;
527
+ }[];
528
+ isRead: boolean;
529
+ isStarred: boolean;
530
+ labels: {
531
+ id: number;
532
+ color?: string | null | undefined;
533
+ name?: string | null | undefined;
534
+ }[];
535
+ commentItems: {
536
+ id: number;
537
+ isMine: boolean;
538
+ content?: string | null | undefined;
539
+ createdAt?: string | null | undefined;
540
+ userId?: string | null | undefined;
541
+ userName?: string | null | undefined;
542
+ }[];
543
+ content?: string | null | undefined;
544
+ date?: string | null | undefined;
545
+ author?: string | null | undefined;
546
+ createdAt?: string | null | undefined;
547
+ updatedAt?: string | null | undefined;
548
+ updatedBy?: string | null | undefined;
549
+ category?: string | null | undefined;
550
+ creationCategory?: string | null | undefined;
551
+ subject?: string | null | undefined;
552
+ userId?: string | null | undefined;
553
+ sourceType?: string | null | undefined;
554
+ employeeName?: string | null | undefined;
555
+ visitTimeFrom?: string | null | undefined;
556
+ visitTimeTo?: string | null | undefined;
557
+ customerName?: string | null | undefined;
558
+ };
559
+ recipientRawUserId?: number | undefined;
560
+ }, {
561
+ reportHubId: number;
562
+ type: "report-create";
563
+ clientTempId: string;
564
+ report: {
565
+ reportHubId: number;
566
+ comments: {
567
+ color?: string | null | undefined;
568
+ name?: string | null | undefined;
569
+ text?: string | null | undefined;
570
+ }[];
571
+ interviewers: {
572
+ name?: string | null | undefined;
573
+ affiliation?: string | null | undefined;
574
+ }[];
575
+ isRead: boolean;
576
+ isStarred: boolean;
577
+ labels: {
578
+ id: number;
579
+ color?: string | null | undefined;
580
+ name?: string | null | undefined;
581
+ }[];
582
+ commentItems: {
583
+ id: number;
584
+ isMine: boolean;
585
+ content?: string | null | undefined;
586
+ createdAt?: string | null | undefined;
587
+ userId?: string | null | undefined;
588
+ userName?: string | null | undefined;
589
+ }[];
590
+ content?: string | null | undefined;
591
+ date?: string | null | undefined;
592
+ author?: string | null | undefined;
593
+ createdAt?: string | null | undefined;
594
+ updatedAt?: string | null | undefined;
595
+ updatedBy?: string | null | undefined;
596
+ category?: string | null | undefined;
597
+ creationCategory?: string | null | undefined;
598
+ subject?: string | null | undefined;
599
+ userId?: string | null | undefined;
600
+ sourceType?: string | null | undefined;
601
+ employeeName?: string | null | undefined;
602
+ visitTimeFrom?: string | null | undefined;
603
+ visitTimeTo?: string | null | undefined;
604
+ customerName?: string | null | undefined;
605
+ };
606
+ recipientRawUserId?: number | undefined;
607
+ }>;
608
+ declare const reportUpdateMessageSchema: z.ZodObject<{
609
+ type: z.ZodLiteral<"report-update">;
610
+ reportHubId: z.ZodNumber;
611
+ report: z.ZodObject<{
612
+ reportHubId: z.ZodNumber;
613
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ sourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
618
+ employeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
619
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
621
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
+ creationCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
+ visitTimeFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
+ visitTimeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
+ customerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
626
+ interviewers: z.ZodArray<z.ZodObject<{
627
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
628
+ affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
629
+ }, "strip", z.ZodTypeAny, {
630
+ name?: string | null | undefined;
631
+ affiliation?: string | null | undefined;
632
+ }, {
633
+ name?: string | null | undefined;
634
+ affiliation?: string | null | undefined;
635
+ }>, "many">;
636
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
+ comments: z.ZodArray<z.ZodObject<{
639
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ color?: string | null | undefined;
644
+ name?: string | null | undefined;
645
+ text?: string | null | undefined;
646
+ }, {
647
+ color?: string | null | undefined;
648
+ name?: string | null | undefined;
649
+ text?: string | null | undefined;
650
+ }>, "many">;
651
+ isRead: z.ZodBoolean;
652
+ isStarred: z.ZodBoolean;
653
+ labels: z.ZodArray<z.ZodObject<{
654
+ id: z.ZodNumber;
655
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
657
+ }, "strip", z.ZodTypeAny, {
658
+ id: number;
659
+ color?: string | null | undefined;
660
+ name?: string | null | undefined;
661
+ }, {
662
+ id: number;
663
+ color?: string | null | undefined;
664
+ name?: string | null | undefined;
665
+ }>, "many">;
666
+ commentItems: z.ZodArray<z.ZodObject<{
667
+ id: z.ZodNumber;
668
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
669
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
670
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
671
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
672
+ isMine: z.ZodBoolean;
673
+ }, "strip", z.ZodTypeAny, {
674
+ id: number;
675
+ isMine: boolean;
676
+ content?: string | null | undefined;
677
+ createdAt?: string | null | undefined;
678
+ userId?: string | null | undefined;
679
+ userName?: string | null | undefined;
680
+ }, {
681
+ id: number;
682
+ isMine: boolean;
683
+ content?: string | null | undefined;
684
+ createdAt?: string | null | undefined;
685
+ userId?: string | null | undefined;
686
+ userName?: string | null | undefined;
687
+ }>, "many">;
688
+ }, "strip", z.ZodTypeAny, {
689
+ reportHubId: number;
690
+ comments: {
691
+ color?: string | null | undefined;
692
+ name?: string | null | undefined;
693
+ text?: string | null | undefined;
694
+ }[];
695
+ interviewers: {
696
+ name?: string | null | undefined;
697
+ affiliation?: string | null | undefined;
698
+ }[];
699
+ isRead: boolean;
700
+ isStarred: boolean;
701
+ labels: {
702
+ id: number;
703
+ color?: string | null | undefined;
704
+ name?: string | null | undefined;
705
+ }[];
706
+ commentItems: {
707
+ id: number;
708
+ isMine: boolean;
709
+ content?: string | null | undefined;
710
+ createdAt?: string | null | undefined;
711
+ userId?: string | null | undefined;
712
+ userName?: string | null | undefined;
713
+ }[];
714
+ content?: string | null | undefined;
715
+ date?: string | null | undefined;
716
+ author?: string | null | undefined;
717
+ createdAt?: string | null | undefined;
718
+ updatedAt?: string | null | undefined;
719
+ updatedBy?: string | null | undefined;
720
+ category?: string | null | undefined;
721
+ creationCategory?: string | null | undefined;
722
+ subject?: string | null | undefined;
723
+ userId?: string | null | undefined;
724
+ sourceType?: string | null | undefined;
725
+ employeeName?: string | null | undefined;
726
+ visitTimeFrom?: string | null | undefined;
727
+ visitTimeTo?: string | null | undefined;
728
+ customerName?: string | null | undefined;
729
+ }, {
730
+ reportHubId: number;
731
+ comments: {
732
+ color?: string | null | undefined;
733
+ name?: string | null | undefined;
734
+ text?: string | null | undefined;
735
+ }[];
736
+ interviewers: {
737
+ name?: string | null | undefined;
738
+ affiliation?: string | null | undefined;
739
+ }[];
740
+ isRead: boolean;
741
+ isStarred: boolean;
742
+ labels: {
743
+ id: number;
744
+ color?: string | null | undefined;
745
+ name?: string | null | undefined;
746
+ }[];
747
+ commentItems: {
748
+ id: number;
749
+ isMine: boolean;
750
+ content?: string | null | undefined;
751
+ createdAt?: string | null | undefined;
752
+ userId?: string | null | undefined;
753
+ userName?: string | null | undefined;
754
+ }[];
755
+ content?: string | null | undefined;
756
+ date?: string | null | undefined;
757
+ author?: string | null | undefined;
758
+ createdAt?: string | null | undefined;
759
+ updatedAt?: string | null | undefined;
760
+ updatedBy?: string | null | undefined;
761
+ category?: string | null | undefined;
762
+ creationCategory?: string | null | undefined;
763
+ subject?: string | null | undefined;
764
+ userId?: string | null | undefined;
765
+ sourceType?: string | null | undefined;
766
+ employeeName?: string | null | undefined;
767
+ visitTimeFrom?: string | null | undefined;
768
+ visitTimeTo?: string | null | undefined;
769
+ customerName?: string | null | undefined;
770
+ }>;
771
+ clientTempId: z.ZodString;
772
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
773
+ }, "strip", z.ZodTypeAny, {
774
+ reportHubId: number;
775
+ type: "report-update";
776
+ clientTempId: string;
777
+ report: {
778
+ reportHubId: number;
779
+ comments: {
780
+ color?: string | null | undefined;
781
+ name?: string | null | undefined;
782
+ text?: string | null | undefined;
783
+ }[];
784
+ interviewers: {
785
+ name?: string | null | undefined;
786
+ affiliation?: string | null | undefined;
787
+ }[];
788
+ isRead: boolean;
789
+ isStarred: boolean;
790
+ labels: {
791
+ id: number;
792
+ color?: string | null | undefined;
793
+ name?: string | null | undefined;
794
+ }[];
795
+ commentItems: {
796
+ id: number;
797
+ isMine: boolean;
798
+ content?: string | null | undefined;
799
+ createdAt?: string | null | undefined;
800
+ userId?: string | null | undefined;
801
+ userName?: string | null | undefined;
802
+ }[];
803
+ content?: string | null | undefined;
804
+ date?: string | null | undefined;
805
+ author?: string | null | undefined;
806
+ createdAt?: string | null | undefined;
807
+ updatedAt?: string | null | undefined;
808
+ updatedBy?: string | null | undefined;
809
+ category?: string | null | undefined;
810
+ creationCategory?: string | null | undefined;
811
+ subject?: string | null | undefined;
812
+ userId?: string | null | undefined;
813
+ sourceType?: string | null | undefined;
814
+ employeeName?: string | null | undefined;
815
+ visitTimeFrom?: string | null | undefined;
816
+ visitTimeTo?: string | null | undefined;
817
+ customerName?: string | null | undefined;
818
+ };
819
+ recipientRawUserId?: number | undefined;
820
+ }, {
821
+ reportHubId: number;
822
+ type: "report-update";
823
+ clientTempId: string;
824
+ report: {
825
+ reportHubId: number;
826
+ comments: {
827
+ color?: string | null | undefined;
828
+ name?: string | null | undefined;
829
+ text?: string | null | undefined;
830
+ }[];
831
+ interviewers: {
832
+ name?: string | null | undefined;
833
+ affiliation?: string | null | undefined;
834
+ }[];
835
+ isRead: boolean;
836
+ isStarred: boolean;
837
+ labels: {
838
+ id: number;
839
+ color?: string | null | undefined;
840
+ name?: string | null | undefined;
841
+ }[];
842
+ commentItems: {
843
+ id: number;
844
+ isMine: boolean;
845
+ content?: string | null | undefined;
846
+ createdAt?: string | null | undefined;
847
+ userId?: string | null | undefined;
848
+ userName?: string | null | undefined;
849
+ }[];
850
+ content?: string | null | undefined;
851
+ date?: string | null | undefined;
852
+ author?: string | null | undefined;
853
+ createdAt?: string | null | undefined;
854
+ updatedAt?: string | null | undefined;
855
+ updatedBy?: string | null | undefined;
856
+ category?: string | null | undefined;
857
+ creationCategory?: string | null | undefined;
858
+ subject?: string | null | undefined;
859
+ userId?: string | null | undefined;
860
+ sourceType?: string | null | undefined;
861
+ employeeName?: string | null | undefined;
862
+ visitTimeFrom?: string | null | undefined;
863
+ visitTimeTo?: string | null | undefined;
864
+ customerName?: string | null | undefined;
865
+ };
866
+ recipientRawUserId?: number | undefined;
867
+ }>;
868
+ declare const reportPublishMessageSchema: z.ZodObject<{
869
+ type: z.ZodLiteral<"report-publish">;
870
+ reportHubId: z.ZodNumber;
871
+ report: z.ZodObject<{
872
+ reportHubId: z.ZodNumber;
873
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
874
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
875
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
+ sourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
+ employeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
880
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
881
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
882
+ creationCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
883
+ visitTimeFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
884
+ visitTimeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
885
+ customerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
886
+ interviewers: z.ZodArray<z.ZodObject<{
887
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
888
+ affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ name?: string | null | undefined;
891
+ affiliation?: string | null | undefined;
892
+ }, {
893
+ name?: string | null | undefined;
894
+ affiliation?: string | null | undefined;
895
+ }>, "many">;
896
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
898
+ comments: z.ZodArray<z.ZodObject<{
899
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
900
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
901
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ color?: string | null | undefined;
904
+ name?: string | null | undefined;
905
+ text?: string | null | undefined;
906
+ }, {
907
+ color?: string | null | undefined;
908
+ name?: string | null | undefined;
909
+ text?: string | null | undefined;
910
+ }>, "many">;
911
+ isRead: z.ZodBoolean;
912
+ isStarred: z.ZodBoolean;
913
+ labels: z.ZodArray<z.ZodObject<{
914
+ id: z.ZodNumber;
915
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
916
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ id: number;
919
+ color?: string | null | undefined;
920
+ name?: string | null | undefined;
921
+ }, {
922
+ id: number;
923
+ color?: string | null | undefined;
924
+ name?: string | null | undefined;
925
+ }>, "many">;
926
+ commentItems: z.ZodArray<z.ZodObject<{
927
+ id: z.ZodNumber;
928
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
931
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
+ isMine: z.ZodBoolean;
933
+ }, "strip", z.ZodTypeAny, {
934
+ id: number;
935
+ isMine: boolean;
936
+ content?: string | null | undefined;
937
+ createdAt?: string | null | undefined;
938
+ userId?: string | null | undefined;
939
+ userName?: string | null | undefined;
940
+ }, {
941
+ id: number;
942
+ isMine: boolean;
943
+ content?: string | null | undefined;
944
+ createdAt?: string | null | undefined;
945
+ userId?: string | null | undefined;
946
+ userName?: string | null | undefined;
947
+ }>, "many">;
948
+ }, "strip", z.ZodTypeAny, {
949
+ reportHubId: number;
950
+ comments: {
951
+ color?: string | null | undefined;
952
+ name?: string | null | undefined;
953
+ text?: string | null | undefined;
954
+ }[];
955
+ interviewers: {
956
+ name?: string | null | undefined;
957
+ affiliation?: string | null | undefined;
958
+ }[];
959
+ isRead: boolean;
960
+ isStarred: boolean;
961
+ labels: {
962
+ id: number;
963
+ color?: string | null | undefined;
964
+ name?: string | null | undefined;
965
+ }[];
966
+ commentItems: {
967
+ id: number;
968
+ isMine: boolean;
969
+ content?: string | null | undefined;
970
+ createdAt?: string | null | undefined;
971
+ userId?: string | null | undefined;
972
+ userName?: string | null | undefined;
973
+ }[];
974
+ content?: string | null | undefined;
975
+ date?: string | null | undefined;
976
+ author?: string | null | undefined;
977
+ createdAt?: string | null | undefined;
978
+ updatedAt?: string | null | undefined;
979
+ updatedBy?: string | null | undefined;
980
+ category?: string | null | undefined;
981
+ creationCategory?: string | null | undefined;
982
+ subject?: string | null | undefined;
983
+ userId?: string | null | undefined;
984
+ sourceType?: string | null | undefined;
985
+ employeeName?: string | null | undefined;
986
+ visitTimeFrom?: string | null | undefined;
987
+ visitTimeTo?: string | null | undefined;
988
+ customerName?: string | null | undefined;
989
+ }, {
990
+ reportHubId: number;
991
+ comments: {
992
+ color?: string | null | undefined;
993
+ name?: string | null | undefined;
994
+ text?: string | null | undefined;
995
+ }[];
996
+ interviewers: {
997
+ name?: string | null | undefined;
998
+ affiliation?: string | null | undefined;
999
+ }[];
1000
+ isRead: boolean;
1001
+ isStarred: boolean;
1002
+ labels: {
1003
+ id: number;
1004
+ color?: string | null | undefined;
1005
+ name?: string | null | undefined;
1006
+ }[];
1007
+ commentItems: {
1008
+ id: number;
1009
+ isMine: boolean;
1010
+ content?: string | null | undefined;
1011
+ createdAt?: string | null | undefined;
1012
+ userId?: string | null | undefined;
1013
+ userName?: string | null | undefined;
1014
+ }[];
1015
+ content?: string | null | undefined;
1016
+ date?: string | null | undefined;
1017
+ author?: string | null | undefined;
1018
+ createdAt?: string | null | undefined;
1019
+ updatedAt?: string | null | undefined;
1020
+ updatedBy?: string | null | undefined;
1021
+ category?: string | null | undefined;
1022
+ creationCategory?: string | null | undefined;
1023
+ subject?: string | null | undefined;
1024
+ userId?: string | null | undefined;
1025
+ sourceType?: string | null | undefined;
1026
+ employeeName?: string | null | undefined;
1027
+ visitTimeFrom?: string | null | undefined;
1028
+ visitTimeTo?: string | null | undefined;
1029
+ customerName?: string | null | undefined;
1030
+ }>;
1031
+ clientTempId: z.ZodString;
1032
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ reportHubId: number;
1035
+ type: "report-publish";
1036
+ clientTempId: string;
1037
+ report: {
1038
+ reportHubId: number;
1039
+ comments: {
1040
+ color?: string | null | undefined;
1041
+ name?: string | null | undefined;
1042
+ text?: string | null | undefined;
1043
+ }[];
1044
+ interviewers: {
1045
+ name?: string | null | undefined;
1046
+ affiliation?: string | null | undefined;
1047
+ }[];
1048
+ isRead: boolean;
1049
+ isStarred: boolean;
1050
+ labels: {
1051
+ id: number;
1052
+ color?: string | null | undefined;
1053
+ name?: string | null | undefined;
1054
+ }[];
1055
+ commentItems: {
1056
+ id: number;
1057
+ isMine: boolean;
1058
+ content?: string | null | undefined;
1059
+ createdAt?: string | null | undefined;
1060
+ userId?: string | null | undefined;
1061
+ userName?: string | null | undefined;
1062
+ }[];
1063
+ content?: string | null | undefined;
1064
+ date?: string | null | undefined;
1065
+ author?: string | null | undefined;
1066
+ createdAt?: string | null | undefined;
1067
+ updatedAt?: string | null | undefined;
1068
+ updatedBy?: string | null | undefined;
1069
+ category?: string | null | undefined;
1070
+ creationCategory?: string | null | undefined;
1071
+ subject?: string | null | undefined;
1072
+ userId?: string | null | undefined;
1073
+ sourceType?: string | null | undefined;
1074
+ employeeName?: string | null | undefined;
1075
+ visitTimeFrom?: string | null | undefined;
1076
+ visitTimeTo?: string | null | undefined;
1077
+ customerName?: string | null | undefined;
1078
+ };
1079
+ recipientRawUserId?: number | undefined;
1080
+ }, {
1081
+ reportHubId: number;
1082
+ type: "report-publish";
1083
+ clientTempId: string;
1084
+ report: {
1085
+ reportHubId: number;
1086
+ comments: {
1087
+ color?: string | null | undefined;
1088
+ name?: string | null | undefined;
1089
+ text?: string | null | undefined;
1090
+ }[];
1091
+ interviewers: {
1092
+ name?: string | null | undefined;
1093
+ affiliation?: string | null | undefined;
1094
+ }[];
1095
+ isRead: boolean;
1096
+ isStarred: boolean;
1097
+ labels: {
1098
+ id: number;
1099
+ color?: string | null | undefined;
1100
+ name?: string | null | undefined;
1101
+ }[];
1102
+ commentItems: {
1103
+ id: number;
1104
+ isMine: boolean;
1105
+ content?: string | null | undefined;
1106
+ createdAt?: string | null | undefined;
1107
+ userId?: string | null | undefined;
1108
+ userName?: string | null | undefined;
1109
+ }[];
1110
+ content?: string | null | undefined;
1111
+ date?: string | null | undefined;
1112
+ author?: string | null | undefined;
1113
+ createdAt?: string | null | undefined;
1114
+ updatedAt?: string | null | undefined;
1115
+ updatedBy?: string | null | undefined;
1116
+ category?: string | null | undefined;
1117
+ creationCategory?: string | null | undefined;
1118
+ subject?: string | null | undefined;
1119
+ userId?: string | null | undefined;
1120
+ sourceType?: string | null | undefined;
1121
+ employeeName?: string | null | undefined;
1122
+ visitTimeFrom?: string | null | undefined;
1123
+ visitTimeTo?: string | null | undefined;
1124
+ customerName?: string | null | undefined;
1125
+ };
1126
+ recipientRawUserId?: number | undefined;
1127
+ }>;
1128
+ declare const reportDeleteMessageSchema: z.ZodObject<{
1129
+ type: z.ZodLiteral<"report-delete">;
1130
+ reportHubId: z.ZodNumber;
1131
+ clientTempId: z.ZodString;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ reportHubId: number;
1134
+ type: "report-delete";
1135
+ clientTempId: string;
1136
+ }, {
1137
+ reportHubId: number;
1138
+ type: "report-delete";
1139
+ clientTempId: string;
1140
+ }>;
1141
+ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1142
+ type: z.ZodLiteral<"connected">;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ type: "connected";
1145
+ }, {
1146
+ type: "connected";
1147
+ }>, z.ZodObject<{
1148
+ type: z.ZodLiteral<"status-update">;
1149
+ reportHubId: z.ZodNumber;
1150
+ statusType: z.ZodEnum<["star", "read"]>;
1151
+ value: z.ZodBoolean;
1152
+ clientTempId: z.ZodString;
1153
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ reportHubId: number;
1156
+ type: "status-update";
1157
+ value: boolean;
1158
+ statusType: "star" | "read";
1159
+ clientTempId: string;
1160
+ recipientRawUserId?: number | undefined;
1161
+ }, {
1162
+ reportHubId: number;
1163
+ type: "status-update";
1164
+ value: boolean;
1165
+ statusType: "star" | "read";
1166
+ clientTempId: string;
1167
+ recipientRawUserId?: number | undefined;
1168
+ }>, z.ZodObject<{
1169
+ type: z.ZodLiteral<"comment-add">;
1170
+ reportHubId: z.ZodNumber;
1171
+ comment: z.ZodObject<{
1172
+ id: z.ZodNumber;
1173
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1174
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1175
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1176
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1177
+ isMine: z.ZodBoolean;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ id: number;
1180
+ isMine: boolean;
1181
+ content?: string | null | undefined;
1182
+ createdAt?: string | null | undefined;
1183
+ userId?: string | null | undefined;
1184
+ userName?: string | null | undefined;
1185
+ }, {
1186
+ id: number;
1187
+ isMine: boolean;
1188
+ content?: string | null | undefined;
1189
+ createdAt?: string | null | undefined;
1190
+ userId?: string | null | undefined;
1191
+ userName?: string | null | undefined;
1192
+ }>;
1193
+ clientTempId: z.ZodString;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ comment: {
1196
+ id: number;
1197
+ isMine: boolean;
1198
+ content?: string | null | undefined;
1199
+ createdAt?: string | null | undefined;
1200
+ userId?: string | null | undefined;
1201
+ userName?: string | null | undefined;
1202
+ };
1203
+ reportHubId: number;
1204
+ type: "comment-add";
1205
+ clientTempId: string;
1206
+ }, {
1207
+ comment: {
1208
+ id: number;
1209
+ isMine: boolean;
1210
+ content?: string | null | undefined;
1211
+ createdAt?: string | null | undefined;
1212
+ userId?: string | null | undefined;
1213
+ userName?: string | null | undefined;
1214
+ };
1215
+ reportHubId: number;
1216
+ type: "comment-add";
1217
+ clientTempId: string;
1218
+ }>, z.ZodObject<{
1219
+ type: z.ZodLiteral<"comment-delete">;
1220
+ reportHubId: z.ZodNumber;
1221
+ commentId: z.ZodNumber;
1222
+ clientTempId: z.ZodString;
1223
+ }, "strip", z.ZodTypeAny, {
1224
+ reportHubId: number;
1225
+ type: "comment-delete";
1226
+ clientTempId: string;
1227
+ commentId: number;
1228
+ }, {
1229
+ reportHubId: number;
1230
+ type: "comment-delete";
1231
+ clientTempId: string;
1232
+ commentId: number;
1233
+ }>, z.ZodObject<{
1234
+ type: z.ZodLiteral<"report-create">;
1235
+ reportHubId: z.ZodNumber;
1236
+ report: z.ZodObject<{
1237
+ reportHubId: z.ZodNumber;
1238
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1239
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1240
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1241
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1242
+ sourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1243
+ employeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1244
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1245
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1246
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1247
+ creationCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1248
+ visitTimeFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1249
+ visitTimeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1250
+ customerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1251
+ interviewers: z.ZodArray<z.ZodObject<{
1252
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1253
+ affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ name?: string | null | undefined;
1256
+ affiliation?: string | null | undefined;
1257
+ }, {
1258
+ name?: string | null | undefined;
1259
+ affiliation?: string | null | undefined;
1260
+ }>, "many">;
1261
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1262
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
+ comments: z.ZodArray<z.ZodObject<{
1264
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1265
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1266
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1267
+ }, "strip", z.ZodTypeAny, {
1268
+ color?: string | null | undefined;
1269
+ name?: string | null | undefined;
1270
+ text?: string | null | undefined;
1271
+ }, {
1272
+ color?: string | null | undefined;
1273
+ name?: string | null | undefined;
1274
+ text?: string | null | undefined;
1275
+ }>, "many">;
1276
+ isRead: z.ZodBoolean;
1277
+ isStarred: z.ZodBoolean;
1278
+ labels: z.ZodArray<z.ZodObject<{
1279
+ id: z.ZodNumber;
1280
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1281
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1282
+ }, "strip", z.ZodTypeAny, {
1283
+ id: number;
1284
+ color?: string | null | undefined;
1285
+ name?: string | null | undefined;
1286
+ }, {
1287
+ id: number;
1288
+ color?: string | null | undefined;
1289
+ name?: string | null | undefined;
1290
+ }>, "many">;
1291
+ commentItems: z.ZodArray<z.ZodObject<{
1292
+ id: z.ZodNumber;
1293
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1294
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1296
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1297
+ isMine: z.ZodBoolean;
1298
+ }, "strip", z.ZodTypeAny, {
1299
+ id: number;
1300
+ isMine: boolean;
1301
+ content?: string | null | undefined;
1302
+ createdAt?: string | null | undefined;
1303
+ userId?: string | null | undefined;
1304
+ userName?: string | null | undefined;
1305
+ }, {
1306
+ id: number;
1307
+ isMine: boolean;
1308
+ content?: string | null | undefined;
1309
+ createdAt?: string | null | undefined;
1310
+ userId?: string | null | undefined;
1311
+ userName?: string | null | undefined;
1312
+ }>, "many">;
1313
+ }, "strip", z.ZodTypeAny, {
1314
+ reportHubId: number;
1315
+ comments: {
1316
+ color?: string | null | undefined;
1317
+ name?: string | null | undefined;
1318
+ text?: string | null | undefined;
1319
+ }[];
1320
+ interviewers: {
1321
+ name?: string | null | undefined;
1322
+ affiliation?: string | null | undefined;
1323
+ }[];
1324
+ isRead: boolean;
1325
+ isStarred: boolean;
1326
+ labels: {
1327
+ id: number;
1328
+ color?: string | null | undefined;
1329
+ name?: string | null | undefined;
1330
+ }[];
1331
+ commentItems: {
1332
+ id: number;
1333
+ isMine: boolean;
1334
+ content?: string | null | undefined;
1335
+ createdAt?: string | null | undefined;
1336
+ userId?: string | null | undefined;
1337
+ userName?: string | null | undefined;
1338
+ }[];
1339
+ content?: string | null | undefined;
1340
+ date?: string | null | undefined;
1341
+ author?: string | null | undefined;
1342
+ createdAt?: string | null | undefined;
1343
+ updatedAt?: string | null | undefined;
1344
+ updatedBy?: string | null | undefined;
1345
+ category?: string | null | undefined;
1346
+ creationCategory?: string | null | undefined;
1347
+ subject?: string | null | undefined;
1348
+ userId?: string | null | undefined;
1349
+ sourceType?: string | null | undefined;
1350
+ employeeName?: string | null | undefined;
1351
+ visitTimeFrom?: string | null | undefined;
1352
+ visitTimeTo?: string | null | undefined;
1353
+ customerName?: string | null | undefined;
1354
+ }, {
1355
+ reportHubId: number;
1356
+ comments: {
1357
+ color?: string | null | undefined;
1358
+ name?: string | null | undefined;
1359
+ text?: string | null | undefined;
1360
+ }[];
1361
+ interviewers: {
1362
+ name?: string | null | undefined;
1363
+ affiliation?: string | null | undefined;
1364
+ }[];
1365
+ isRead: boolean;
1366
+ isStarred: boolean;
1367
+ labels: {
1368
+ id: number;
1369
+ color?: string | null | undefined;
1370
+ name?: string | null | undefined;
1371
+ }[];
1372
+ commentItems: {
1373
+ id: number;
1374
+ isMine: boolean;
1375
+ content?: string | null | undefined;
1376
+ createdAt?: string | null | undefined;
1377
+ userId?: string | null | undefined;
1378
+ userName?: string | null | undefined;
1379
+ }[];
1380
+ content?: string | null | undefined;
1381
+ date?: string | null | undefined;
1382
+ author?: string | null | undefined;
1383
+ createdAt?: string | null | undefined;
1384
+ updatedAt?: string | null | undefined;
1385
+ updatedBy?: string | null | undefined;
1386
+ category?: string | null | undefined;
1387
+ creationCategory?: string | null | undefined;
1388
+ subject?: string | null | undefined;
1389
+ userId?: string | null | undefined;
1390
+ sourceType?: string | null | undefined;
1391
+ employeeName?: string | null | undefined;
1392
+ visitTimeFrom?: string | null | undefined;
1393
+ visitTimeTo?: string | null | undefined;
1394
+ customerName?: string | null | undefined;
1395
+ }>;
1396
+ clientTempId: z.ZodString;
1397
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
1398
+ }, "strip", z.ZodTypeAny, {
1399
+ reportHubId: number;
1400
+ type: "report-create";
1401
+ clientTempId: string;
1402
+ report: {
1403
+ reportHubId: number;
1404
+ comments: {
1405
+ color?: string | null | undefined;
1406
+ name?: string | null | undefined;
1407
+ text?: string | null | undefined;
1408
+ }[];
1409
+ interviewers: {
1410
+ name?: string | null | undefined;
1411
+ affiliation?: string | null | undefined;
1412
+ }[];
1413
+ isRead: boolean;
1414
+ isStarred: boolean;
1415
+ labels: {
1416
+ id: number;
1417
+ color?: string | null | undefined;
1418
+ name?: string | null | undefined;
1419
+ }[];
1420
+ commentItems: {
1421
+ id: number;
1422
+ isMine: boolean;
1423
+ content?: string | null | undefined;
1424
+ createdAt?: string | null | undefined;
1425
+ userId?: string | null | undefined;
1426
+ userName?: string | null | undefined;
1427
+ }[];
1428
+ content?: string | null | undefined;
1429
+ date?: string | null | undefined;
1430
+ author?: string | null | undefined;
1431
+ createdAt?: string | null | undefined;
1432
+ updatedAt?: string | null | undefined;
1433
+ updatedBy?: string | null | undefined;
1434
+ category?: string | null | undefined;
1435
+ creationCategory?: string | null | undefined;
1436
+ subject?: string | null | undefined;
1437
+ userId?: string | null | undefined;
1438
+ sourceType?: string | null | undefined;
1439
+ employeeName?: string | null | undefined;
1440
+ visitTimeFrom?: string | null | undefined;
1441
+ visitTimeTo?: string | null | undefined;
1442
+ customerName?: string | null | undefined;
1443
+ };
1444
+ recipientRawUserId?: number | undefined;
1445
+ }, {
1446
+ reportHubId: number;
1447
+ type: "report-create";
1448
+ clientTempId: string;
1449
+ report: {
1450
+ reportHubId: number;
1451
+ comments: {
1452
+ color?: string | null | undefined;
1453
+ name?: string | null | undefined;
1454
+ text?: string | null | undefined;
1455
+ }[];
1456
+ interviewers: {
1457
+ name?: string | null | undefined;
1458
+ affiliation?: string | null | undefined;
1459
+ }[];
1460
+ isRead: boolean;
1461
+ isStarred: boolean;
1462
+ labels: {
1463
+ id: number;
1464
+ color?: string | null | undefined;
1465
+ name?: string | null | undefined;
1466
+ }[];
1467
+ commentItems: {
1468
+ id: number;
1469
+ isMine: boolean;
1470
+ content?: string | null | undefined;
1471
+ createdAt?: string | null | undefined;
1472
+ userId?: string | null | undefined;
1473
+ userName?: string | null | undefined;
1474
+ }[];
1475
+ content?: string | null | undefined;
1476
+ date?: string | null | undefined;
1477
+ author?: string | null | undefined;
1478
+ createdAt?: string | null | undefined;
1479
+ updatedAt?: string | null | undefined;
1480
+ updatedBy?: string | null | undefined;
1481
+ category?: string | null | undefined;
1482
+ creationCategory?: string | null | undefined;
1483
+ subject?: string | null | undefined;
1484
+ userId?: string | null | undefined;
1485
+ sourceType?: string | null | undefined;
1486
+ employeeName?: string | null | undefined;
1487
+ visitTimeFrom?: string | null | undefined;
1488
+ visitTimeTo?: string | null | undefined;
1489
+ customerName?: string | null | undefined;
1490
+ };
1491
+ recipientRawUserId?: number | undefined;
1492
+ }>, z.ZodObject<{
1493
+ type: z.ZodLiteral<"report-update">;
1494
+ reportHubId: z.ZodNumber;
1495
+ report: z.ZodObject<{
1496
+ reportHubId: z.ZodNumber;
1497
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1498
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1499
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1501
+ sourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1502
+ employeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1503
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1504
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1505
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1506
+ creationCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1507
+ visitTimeFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1508
+ visitTimeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1509
+ customerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1510
+ interviewers: z.ZodArray<z.ZodObject<{
1511
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1512
+ affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1513
+ }, "strip", z.ZodTypeAny, {
1514
+ name?: string | null | undefined;
1515
+ affiliation?: string | null | undefined;
1516
+ }, {
1517
+ name?: string | null | undefined;
1518
+ affiliation?: string | null | undefined;
1519
+ }>, "many">;
1520
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1521
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1522
+ comments: z.ZodArray<z.ZodObject<{
1523
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1524
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1525
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1526
+ }, "strip", z.ZodTypeAny, {
1527
+ color?: string | null | undefined;
1528
+ name?: string | null | undefined;
1529
+ text?: string | null | undefined;
1530
+ }, {
1531
+ color?: string | null | undefined;
1532
+ name?: string | null | undefined;
1533
+ text?: string | null | undefined;
1534
+ }>, "many">;
1535
+ isRead: z.ZodBoolean;
1536
+ isStarred: z.ZodBoolean;
1537
+ labels: z.ZodArray<z.ZodObject<{
1538
+ id: z.ZodNumber;
1539
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1540
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ id: number;
1543
+ color?: string | null | undefined;
1544
+ name?: string | null | undefined;
1545
+ }, {
1546
+ id: number;
1547
+ color?: string | null | undefined;
1548
+ name?: string | null | undefined;
1549
+ }>, "many">;
1550
+ commentItems: z.ZodArray<z.ZodObject<{
1551
+ id: z.ZodNumber;
1552
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1553
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1554
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1555
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1556
+ isMine: z.ZodBoolean;
1557
+ }, "strip", z.ZodTypeAny, {
1558
+ id: number;
1559
+ isMine: boolean;
1560
+ content?: string | null | undefined;
1561
+ createdAt?: string | null | undefined;
1562
+ userId?: string | null | undefined;
1563
+ userName?: string | null | undefined;
1564
+ }, {
1565
+ id: number;
1566
+ isMine: boolean;
1567
+ content?: string | null | undefined;
1568
+ createdAt?: string | null | undefined;
1569
+ userId?: string | null | undefined;
1570
+ userName?: string | null | undefined;
1571
+ }>, "many">;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ reportHubId: number;
1574
+ comments: {
1575
+ color?: string | null | undefined;
1576
+ name?: string | null | undefined;
1577
+ text?: string | null | undefined;
1578
+ }[];
1579
+ interviewers: {
1580
+ name?: string | null | undefined;
1581
+ affiliation?: string | null | undefined;
1582
+ }[];
1583
+ isRead: boolean;
1584
+ isStarred: boolean;
1585
+ labels: {
1586
+ id: number;
1587
+ color?: string | null | undefined;
1588
+ name?: string | null | undefined;
1589
+ }[];
1590
+ commentItems: {
1591
+ id: number;
1592
+ isMine: boolean;
1593
+ content?: string | null | undefined;
1594
+ createdAt?: string | null | undefined;
1595
+ userId?: string | null | undefined;
1596
+ userName?: string | null | undefined;
1597
+ }[];
1598
+ content?: string | null | undefined;
1599
+ date?: string | null | undefined;
1600
+ author?: string | null | undefined;
1601
+ createdAt?: string | null | undefined;
1602
+ updatedAt?: string | null | undefined;
1603
+ updatedBy?: string | null | undefined;
1604
+ category?: string | null | undefined;
1605
+ creationCategory?: string | null | undefined;
1606
+ subject?: string | null | undefined;
1607
+ userId?: string | null | undefined;
1608
+ sourceType?: string | null | undefined;
1609
+ employeeName?: string | null | undefined;
1610
+ visitTimeFrom?: string | null | undefined;
1611
+ visitTimeTo?: string | null | undefined;
1612
+ customerName?: string | null | undefined;
1613
+ }, {
1614
+ reportHubId: number;
1615
+ comments: {
1616
+ color?: string | null | undefined;
1617
+ name?: string | null | undefined;
1618
+ text?: string | null | undefined;
1619
+ }[];
1620
+ interviewers: {
1621
+ name?: string | null | undefined;
1622
+ affiliation?: string | null | undefined;
1623
+ }[];
1624
+ isRead: boolean;
1625
+ isStarred: boolean;
1626
+ labels: {
1627
+ id: number;
1628
+ color?: string | null | undefined;
1629
+ name?: string | null | undefined;
1630
+ }[];
1631
+ commentItems: {
1632
+ id: number;
1633
+ isMine: boolean;
1634
+ content?: string | null | undefined;
1635
+ createdAt?: string | null | undefined;
1636
+ userId?: string | null | undefined;
1637
+ userName?: string | null | undefined;
1638
+ }[];
1639
+ content?: string | null | undefined;
1640
+ date?: string | null | undefined;
1641
+ author?: string | null | undefined;
1642
+ createdAt?: string | null | undefined;
1643
+ updatedAt?: string | null | undefined;
1644
+ updatedBy?: string | null | undefined;
1645
+ category?: string | null | undefined;
1646
+ creationCategory?: string | null | undefined;
1647
+ subject?: string | null | undefined;
1648
+ userId?: string | null | undefined;
1649
+ sourceType?: string | null | undefined;
1650
+ employeeName?: string | null | undefined;
1651
+ visitTimeFrom?: string | null | undefined;
1652
+ visitTimeTo?: string | null | undefined;
1653
+ customerName?: string | null | undefined;
1654
+ }>;
1655
+ clientTempId: z.ZodString;
1656
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ reportHubId: number;
1659
+ type: "report-update";
1660
+ clientTempId: string;
1661
+ report: {
1662
+ reportHubId: number;
1663
+ comments: {
1664
+ color?: string | null | undefined;
1665
+ name?: string | null | undefined;
1666
+ text?: string | null | undefined;
1667
+ }[];
1668
+ interviewers: {
1669
+ name?: string | null | undefined;
1670
+ affiliation?: string | null | undefined;
1671
+ }[];
1672
+ isRead: boolean;
1673
+ isStarred: boolean;
1674
+ labels: {
1675
+ id: number;
1676
+ color?: string | null | undefined;
1677
+ name?: string | null | undefined;
1678
+ }[];
1679
+ commentItems: {
1680
+ id: number;
1681
+ isMine: boolean;
1682
+ content?: string | null | undefined;
1683
+ createdAt?: string | null | undefined;
1684
+ userId?: string | null | undefined;
1685
+ userName?: string | null | undefined;
1686
+ }[];
1687
+ content?: string | null | undefined;
1688
+ date?: string | null | undefined;
1689
+ author?: string | null | undefined;
1690
+ createdAt?: string | null | undefined;
1691
+ updatedAt?: string | null | undefined;
1692
+ updatedBy?: string | null | undefined;
1693
+ category?: string | null | undefined;
1694
+ creationCategory?: string | null | undefined;
1695
+ subject?: string | null | undefined;
1696
+ userId?: string | null | undefined;
1697
+ sourceType?: string | null | undefined;
1698
+ employeeName?: string | null | undefined;
1699
+ visitTimeFrom?: string | null | undefined;
1700
+ visitTimeTo?: string | null | undefined;
1701
+ customerName?: string | null | undefined;
1702
+ };
1703
+ recipientRawUserId?: number | undefined;
1704
+ }, {
1705
+ reportHubId: number;
1706
+ type: "report-update";
1707
+ clientTempId: string;
1708
+ report: {
1709
+ reportHubId: number;
1710
+ comments: {
1711
+ color?: string | null | undefined;
1712
+ name?: string | null | undefined;
1713
+ text?: string | null | undefined;
1714
+ }[];
1715
+ interviewers: {
1716
+ name?: string | null | undefined;
1717
+ affiliation?: string | null | undefined;
1718
+ }[];
1719
+ isRead: boolean;
1720
+ isStarred: boolean;
1721
+ labels: {
1722
+ id: number;
1723
+ color?: string | null | undefined;
1724
+ name?: string | null | undefined;
1725
+ }[];
1726
+ commentItems: {
1727
+ id: number;
1728
+ isMine: boolean;
1729
+ content?: string | null | undefined;
1730
+ createdAt?: string | null | undefined;
1731
+ userId?: string | null | undefined;
1732
+ userName?: string | null | undefined;
1733
+ }[];
1734
+ content?: string | null | undefined;
1735
+ date?: string | null | undefined;
1736
+ author?: string | null | undefined;
1737
+ createdAt?: string | null | undefined;
1738
+ updatedAt?: string | null | undefined;
1739
+ updatedBy?: string | null | undefined;
1740
+ category?: string | null | undefined;
1741
+ creationCategory?: string | null | undefined;
1742
+ subject?: string | null | undefined;
1743
+ userId?: string | null | undefined;
1744
+ sourceType?: string | null | undefined;
1745
+ employeeName?: string | null | undefined;
1746
+ visitTimeFrom?: string | null | undefined;
1747
+ visitTimeTo?: string | null | undefined;
1748
+ customerName?: string | null | undefined;
1749
+ };
1750
+ recipientRawUserId?: number | undefined;
1751
+ }>, z.ZodObject<{
1752
+ type: z.ZodLiteral<"report-publish">;
1753
+ reportHubId: z.ZodNumber;
1754
+ report: z.ZodObject<{
1755
+ reportHubId: z.ZodNumber;
1756
+ date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1757
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1758
+ author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1759
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1760
+ sourceType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1761
+ employeeName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1762
+ updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1763
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1764
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1765
+ creationCategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1766
+ visitTimeFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1767
+ visitTimeTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1768
+ customerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1769
+ interviewers: z.ZodArray<z.ZodObject<{
1770
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1771
+ affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1772
+ }, "strip", z.ZodTypeAny, {
1773
+ name?: string | null | undefined;
1774
+ affiliation?: string | null | undefined;
1775
+ }, {
1776
+ name?: string | null | undefined;
1777
+ affiliation?: string | null | undefined;
1778
+ }>, "many">;
1779
+ subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1780
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1781
+ comments: z.ZodArray<z.ZodObject<{
1782
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1783
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1784
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ color?: string | null | undefined;
1787
+ name?: string | null | undefined;
1788
+ text?: string | null | undefined;
1789
+ }, {
1790
+ color?: string | null | undefined;
1791
+ name?: string | null | undefined;
1792
+ text?: string | null | undefined;
1793
+ }>, "many">;
1794
+ isRead: z.ZodBoolean;
1795
+ isStarred: z.ZodBoolean;
1796
+ labels: z.ZodArray<z.ZodObject<{
1797
+ id: z.ZodNumber;
1798
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1799
+ color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1800
+ }, "strip", z.ZodTypeAny, {
1801
+ id: number;
1802
+ color?: string | null | undefined;
1803
+ name?: string | null | undefined;
1804
+ }, {
1805
+ id: number;
1806
+ color?: string | null | undefined;
1807
+ name?: string | null | undefined;
1808
+ }>, "many">;
1809
+ commentItems: z.ZodArray<z.ZodObject<{
1810
+ id: z.ZodNumber;
1811
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1812
+ userName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1813
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1814
+ createdAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1815
+ isMine: z.ZodBoolean;
1816
+ }, "strip", z.ZodTypeAny, {
1817
+ id: number;
1818
+ isMine: boolean;
1819
+ content?: string | null | undefined;
1820
+ createdAt?: string | null | undefined;
1821
+ userId?: string | null | undefined;
1822
+ userName?: string | null | undefined;
1823
+ }, {
1824
+ id: number;
1825
+ isMine: boolean;
1826
+ content?: string | null | undefined;
1827
+ createdAt?: string | null | undefined;
1828
+ userId?: string | null | undefined;
1829
+ userName?: string | null | undefined;
1830
+ }>, "many">;
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ reportHubId: number;
1833
+ comments: {
1834
+ color?: string | null | undefined;
1835
+ name?: string | null | undefined;
1836
+ text?: string | null | undefined;
1837
+ }[];
1838
+ interviewers: {
1839
+ name?: string | null | undefined;
1840
+ affiliation?: string | null | undefined;
1841
+ }[];
1842
+ isRead: boolean;
1843
+ isStarred: boolean;
1844
+ labels: {
1845
+ id: number;
1846
+ color?: string | null | undefined;
1847
+ name?: string | null | undefined;
1848
+ }[];
1849
+ commentItems: {
1850
+ id: number;
1851
+ isMine: boolean;
1852
+ content?: string | null | undefined;
1853
+ createdAt?: string | null | undefined;
1854
+ userId?: string | null | undefined;
1855
+ userName?: string | null | undefined;
1856
+ }[];
1857
+ content?: string | null | undefined;
1858
+ date?: string | null | undefined;
1859
+ author?: string | null | undefined;
1860
+ createdAt?: string | null | undefined;
1861
+ updatedAt?: string | null | undefined;
1862
+ updatedBy?: string | null | undefined;
1863
+ category?: string | null | undefined;
1864
+ creationCategory?: string | null | undefined;
1865
+ subject?: string | null | undefined;
1866
+ userId?: string | null | undefined;
1867
+ sourceType?: string | null | undefined;
1868
+ employeeName?: string | null | undefined;
1869
+ visitTimeFrom?: string | null | undefined;
1870
+ visitTimeTo?: string | null | undefined;
1871
+ customerName?: string | null | undefined;
1872
+ }, {
1873
+ reportHubId: number;
1874
+ comments: {
1875
+ color?: string | null | undefined;
1876
+ name?: string | null | undefined;
1877
+ text?: string | null | undefined;
1878
+ }[];
1879
+ interviewers: {
1880
+ name?: string | null | undefined;
1881
+ affiliation?: string | null | undefined;
1882
+ }[];
1883
+ isRead: boolean;
1884
+ isStarred: boolean;
1885
+ labels: {
1886
+ id: number;
1887
+ color?: string | null | undefined;
1888
+ name?: string | null | undefined;
1889
+ }[];
1890
+ commentItems: {
1891
+ id: number;
1892
+ isMine: boolean;
1893
+ content?: string | null | undefined;
1894
+ createdAt?: string | null | undefined;
1895
+ userId?: string | null | undefined;
1896
+ userName?: string | null | undefined;
1897
+ }[];
1898
+ content?: string | null | undefined;
1899
+ date?: string | null | undefined;
1900
+ author?: string | null | undefined;
1901
+ createdAt?: string | null | undefined;
1902
+ updatedAt?: string | null | undefined;
1903
+ updatedBy?: string | null | undefined;
1904
+ category?: string | null | undefined;
1905
+ creationCategory?: string | null | undefined;
1906
+ subject?: string | null | undefined;
1907
+ userId?: string | null | undefined;
1908
+ sourceType?: string | null | undefined;
1909
+ employeeName?: string | null | undefined;
1910
+ visitTimeFrom?: string | null | undefined;
1911
+ visitTimeTo?: string | null | undefined;
1912
+ customerName?: string | null | undefined;
1913
+ }>;
1914
+ clientTempId: z.ZodString;
1915
+ recipientRawUserId: z.ZodOptional<z.ZodNumber>;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ reportHubId: number;
1918
+ type: "report-publish";
1919
+ clientTempId: string;
1920
+ report: {
1921
+ reportHubId: number;
1922
+ comments: {
1923
+ color?: string | null | undefined;
1924
+ name?: string | null | undefined;
1925
+ text?: string | null | undefined;
1926
+ }[];
1927
+ interviewers: {
1928
+ name?: string | null | undefined;
1929
+ affiliation?: string | null | undefined;
1930
+ }[];
1931
+ isRead: boolean;
1932
+ isStarred: boolean;
1933
+ labels: {
1934
+ id: number;
1935
+ color?: string | null | undefined;
1936
+ name?: string | null | undefined;
1937
+ }[];
1938
+ commentItems: {
1939
+ id: number;
1940
+ isMine: boolean;
1941
+ content?: string | null | undefined;
1942
+ createdAt?: string | null | undefined;
1943
+ userId?: string | null | undefined;
1944
+ userName?: string | null | undefined;
1945
+ }[];
1946
+ content?: string | null | undefined;
1947
+ date?: string | null | undefined;
1948
+ author?: string | null | undefined;
1949
+ createdAt?: string | null | undefined;
1950
+ updatedAt?: string | null | undefined;
1951
+ updatedBy?: string | null | undefined;
1952
+ category?: string | null | undefined;
1953
+ creationCategory?: string | null | undefined;
1954
+ subject?: string | null | undefined;
1955
+ userId?: string | null | undefined;
1956
+ sourceType?: string | null | undefined;
1957
+ employeeName?: string | null | undefined;
1958
+ visitTimeFrom?: string | null | undefined;
1959
+ visitTimeTo?: string | null | undefined;
1960
+ customerName?: string | null | undefined;
1961
+ };
1962
+ recipientRawUserId?: number | undefined;
1963
+ }, {
1964
+ reportHubId: number;
1965
+ type: "report-publish";
1966
+ clientTempId: string;
1967
+ report: {
1968
+ reportHubId: number;
1969
+ comments: {
1970
+ color?: string | null | undefined;
1971
+ name?: string | null | undefined;
1972
+ text?: string | null | undefined;
1973
+ }[];
1974
+ interviewers: {
1975
+ name?: string | null | undefined;
1976
+ affiliation?: string | null | undefined;
1977
+ }[];
1978
+ isRead: boolean;
1979
+ isStarred: boolean;
1980
+ labels: {
1981
+ id: number;
1982
+ color?: string | null | undefined;
1983
+ name?: string | null | undefined;
1984
+ }[];
1985
+ commentItems: {
1986
+ id: number;
1987
+ isMine: boolean;
1988
+ content?: string | null | undefined;
1989
+ createdAt?: string | null | undefined;
1990
+ userId?: string | null | undefined;
1991
+ userName?: string | null | undefined;
1992
+ }[];
1993
+ content?: string | null | undefined;
1994
+ date?: string | null | undefined;
1995
+ author?: string | null | undefined;
1996
+ createdAt?: string | null | undefined;
1997
+ updatedAt?: string | null | undefined;
1998
+ updatedBy?: string | null | undefined;
1999
+ category?: string | null | undefined;
2000
+ creationCategory?: string | null | undefined;
2001
+ subject?: string | null | undefined;
2002
+ userId?: string | null | undefined;
2003
+ sourceType?: string | null | undefined;
2004
+ employeeName?: string | null | undefined;
2005
+ visitTimeFrom?: string | null | undefined;
2006
+ visitTimeTo?: string | null | undefined;
2007
+ customerName?: string | null | undefined;
2008
+ };
2009
+ recipientRawUserId?: number | undefined;
2010
+ }>, z.ZodObject<{
2011
+ type: z.ZodLiteral<"report-delete">;
2012
+ reportHubId: z.ZodNumber;
2013
+ clientTempId: z.ZodString;
2014
+ }, "strip", z.ZodTypeAny, {
2015
+ reportHubId: number;
2016
+ type: "report-delete";
2017
+ clientTempId: string;
2018
+ }, {
2019
+ reportHubId: number;
2020
+ type: "report-delete";
2021
+ clientTempId: string;
2022
+ }>]>;
2023
+ type DailyReportSseMessage = z.infer<typeof dailyReportSseMessageSchema>;
2024
+
2025
+ export { type DailyReportSseMessage as D, type UIComment as U, commentDeleteMessageSchema as a, connectedMessageSchema as b, commentAddMessageSchema as c, dailyReportCommentItemSchema as d, dailyReportCommentSchema as e, dailyReportDetailSchema as f, dailyReportInterviewerSchema as g, dailyReportLabelDefSchema as h, dailyReportSseMessageSchema as i, reportDeleteMessageSchema as j, reportPublishMessageSchema as k, reportUpdateMessageSchema as l, mergeComments as m, resolveCommentColorClass as n, reportCreateMessageSchema as r, statusUpdateMessageSchema as s };