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