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