@aiquants/daily-report 0.20.1 → 0.22.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,4 +1,4 @@
1
- import { e as DailyReportExternalComment, h as DailyReportPostedComment } from "./types-CqgYQgbH.mjs";
1
+ import { e as DailyReportExternalComment, h as DailyReportPostedComment, a as DailyReportItem } from "./types-CqgYQgbH.mjs";
2
2
  import { z } from "zod";
3
3
  type UIComment = {
4
4
  id: string | number;
@@ -9,8 +9,17 @@ type UIComment = {
9
9
  color?: string;
10
10
  isLegacy: boolean;
11
11
  };
12
- declare const mergeComments: (legacyComments: DailyReportExternalComment[], modernComments: DailyReportPostedComment[], currentUserId?: string | null) => UIComment[];
12
+ declare const mergeComments: (legacyComments: DailyReportExternalComment[], modernComments: DailyReportPostedComment[], currentUserId: string | null | undefined, unknownAuthorName: string) => UIComment[];
13
13
  declare const resolveCommentColorClass: (color: string | null | undefined) => string;
14
+ declare const DAILY_REPORT_SSE_TERMINAL_EVENTS: readonly [
15
+ "auth-required",
16
+ "forbidden",
17
+ "resync-required"
18
+ ];
19
+ type DailyReportSseTerminalEvent = (typeof DAILY_REPORT_SSE_TERMINAL_EVENTS)[number];
20
+ declare const DAILY_REPORT_SSE_HEARTBEAT_MS = 15000;
21
+ declare const DAILY_REPORT_SSE_CURSOR_PARAM = "lastEventId";
22
+ declare const isDailyReportSseStreamId: (value: string) => boolean;
14
23
  declare const dailyReportInterviewerSchema: z.ZodObject<{
15
24
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
25
  affiliation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -211,6 +220,11 @@ declare const dailyReportDetailSchema: z.ZodObject<{
211
220
  fileSize: number | null;
212
221
  state: "present" | "absent" | "unknown";
213
222
  }[];
223
+ labels: {
224
+ id: number;
225
+ color?: string | null | undefined;
226
+ name?: string | null | undefined;
227
+ }[];
214
228
  reportHubId: number;
215
229
  externalComments: {
216
230
  color?: string | null | undefined;
@@ -219,11 +233,6 @@ declare const dailyReportDetailSchema: z.ZodObject<{
219
233
  }[];
220
234
  isRead: boolean;
221
235
  isStarred: boolean;
222
- labels: {
223
- id: number;
224
- color?: string | null | undefined;
225
- name?: string | null | undefined;
226
- }[];
227
236
  postedComments: {
228
237
  id: number;
229
238
  isMine: boolean;
@@ -252,6 +261,11 @@ declare const dailyReportDetailSchema: z.ZodObject<{
252
261
  name?: string | null | undefined;
253
262
  affiliation?: string | null | undefined;
254
263
  }[];
264
+ labels: {
265
+ id: number;
266
+ color?: string | null | undefined;
267
+ name?: string | null | undefined;
268
+ }[];
255
269
  reportHubId: number;
256
270
  externalComments: {
257
271
  color?: string | null | undefined;
@@ -260,11 +274,6 @@ declare const dailyReportDetailSchema: z.ZodObject<{
260
274
  }[];
261
275
  isRead: boolean;
262
276
  isStarred: boolean;
263
- labels: {
264
- id: number;
265
- color?: string | null | undefined;
266
- name?: string | null | undefined;
267
- }[];
268
277
  postedComments: {
269
278
  id: number;
270
279
  isMine: boolean;
@@ -527,6 +536,11 @@ declare const reportCreateMessageSchema: z.ZodObject<{
527
536
  fileSize: number | null;
528
537
  state: "present" | "absent" | "unknown";
529
538
  }[];
539
+ labels: {
540
+ id: number;
541
+ color?: string | null | undefined;
542
+ name?: string | null | undefined;
543
+ }[];
530
544
  reportHubId: number;
531
545
  externalComments: {
532
546
  color?: string | null | undefined;
@@ -535,11 +549,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
535
549
  }[];
536
550
  isRead: boolean;
537
551
  isStarred: boolean;
538
- labels: {
539
- id: number;
540
- color?: string | null | undefined;
541
- name?: string | null | undefined;
542
- }[];
543
552
  postedComments: {
544
553
  id: number;
545
554
  isMine: boolean;
@@ -568,6 +577,11 @@ declare const reportCreateMessageSchema: z.ZodObject<{
568
577
  name?: string | null | undefined;
569
578
  affiliation?: string | null | undefined;
570
579
  }[];
580
+ labels: {
581
+ id: number;
582
+ color?: string | null | undefined;
583
+ name?: string | null | undefined;
584
+ }[];
571
585
  reportHubId: number;
572
586
  externalComments: {
573
587
  color?: string | null | undefined;
@@ -576,11 +590,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
576
590
  }[];
577
591
  isRead: boolean;
578
592
  isStarred: boolean;
579
- labels: {
580
- id: number;
581
- color?: string | null | undefined;
582
- name?: string | null | undefined;
583
- }[];
584
593
  postedComments: {
585
594
  id: number;
586
595
  isMine: boolean;
@@ -632,6 +641,11 @@ declare const reportCreateMessageSchema: z.ZodObject<{
632
641
  fileSize: number | null;
633
642
  state: "present" | "absent" | "unknown";
634
643
  }[];
644
+ labels: {
645
+ id: number;
646
+ color?: string | null | undefined;
647
+ name?: string | null | undefined;
648
+ }[];
635
649
  reportHubId: number;
636
650
  externalComments: {
637
651
  color?: string | null | undefined;
@@ -640,11 +654,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
640
654
  }[];
641
655
  isRead: boolean;
642
656
  isStarred: boolean;
643
- labels: {
644
- id: number;
645
- color?: string | null | undefined;
646
- name?: string | null | undefined;
647
- }[];
648
657
  postedComments: {
649
658
  id: number;
650
659
  isMine: boolean;
@@ -679,6 +688,11 @@ declare const reportCreateMessageSchema: z.ZodObject<{
679
688
  name?: string | null | undefined;
680
689
  affiliation?: string | null | undefined;
681
690
  }[];
691
+ labels: {
692
+ id: number;
693
+ color?: string | null | undefined;
694
+ name?: string | null | undefined;
695
+ }[];
682
696
  reportHubId: number;
683
697
  externalComments: {
684
698
  color?: string | null | undefined;
@@ -687,11 +701,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
687
701
  }[];
688
702
  isRead: boolean;
689
703
  isStarred: boolean;
690
- labels: {
691
- id: number;
692
- color?: string | null | undefined;
693
- name?: string | null | undefined;
694
- }[];
695
704
  postedComments: {
696
705
  id: number;
697
706
  isMine: boolean;
@@ -845,6 +854,11 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
845
854
  fileSize: number | null;
846
855
  state: "present" | "absent" | "unknown";
847
856
  }[];
857
+ labels: {
858
+ id: number;
859
+ color?: string | null | undefined;
860
+ name?: string | null | undefined;
861
+ }[];
848
862
  reportHubId: number;
849
863
  externalComments: {
850
864
  color?: string | null | undefined;
@@ -853,11 +867,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
853
867
  }[];
854
868
  isRead: boolean;
855
869
  isStarred: boolean;
856
- labels: {
857
- id: number;
858
- color?: string | null | undefined;
859
- name?: string | null | undefined;
860
- }[];
861
870
  postedComments: {
862
871
  id: number;
863
872
  isMine: boolean;
@@ -886,6 +895,11 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
886
895
  name?: string | null | undefined;
887
896
  affiliation?: string | null | undefined;
888
897
  }[];
898
+ labels: {
899
+ id: number;
900
+ color?: string | null | undefined;
901
+ name?: string | null | undefined;
902
+ }[];
889
903
  reportHubId: number;
890
904
  externalComments: {
891
905
  color?: string | null | undefined;
@@ -894,11 +908,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
894
908
  }[];
895
909
  isRead: boolean;
896
910
  isStarred: boolean;
897
- labels: {
898
- id: number;
899
- color?: string | null | undefined;
900
- name?: string | null | undefined;
901
- }[];
902
911
  postedComments: {
903
912
  id: number;
904
913
  isMine: boolean;
@@ -950,6 +959,11 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
950
959
  fileSize: number | null;
951
960
  state: "present" | "absent" | "unknown";
952
961
  }[];
962
+ labels: {
963
+ id: number;
964
+ color?: string | null | undefined;
965
+ name?: string | null | undefined;
966
+ }[];
953
967
  reportHubId: number;
954
968
  externalComments: {
955
969
  color?: string | null | undefined;
@@ -958,11 +972,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
958
972
  }[];
959
973
  isRead: boolean;
960
974
  isStarred: boolean;
961
- labels: {
962
- id: number;
963
- color?: string | null | undefined;
964
- name?: string | null | undefined;
965
- }[];
966
975
  postedComments: {
967
976
  id: number;
968
977
  isMine: boolean;
@@ -997,6 +1006,11 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
997
1006
  name?: string | null | undefined;
998
1007
  affiliation?: string | null | undefined;
999
1008
  }[];
1009
+ labels: {
1010
+ id: number;
1011
+ color?: string | null | undefined;
1012
+ name?: string | null | undefined;
1013
+ }[];
1000
1014
  reportHubId: number;
1001
1015
  externalComments: {
1002
1016
  color?: string | null | undefined;
@@ -1005,11 +1019,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
1005
1019
  }[];
1006
1020
  isRead: boolean;
1007
1021
  isStarred: boolean;
1008
- labels: {
1009
- id: number;
1010
- color?: string | null | undefined;
1011
- name?: string | null | undefined;
1012
- }[];
1013
1022
  postedComments: {
1014
1023
  id: number;
1015
1024
  isMine: boolean;
@@ -1163,6 +1172,11 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1163
1172
  fileSize: number | null;
1164
1173
  state: "present" | "absent" | "unknown";
1165
1174
  }[];
1175
+ labels: {
1176
+ id: number;
1177
+ color?: string | null | undefined;
1178
+ name?: string | null | undefined;
1179
+ }[];
1166
1180
  reportHubId: number;
1167
1181
  externalComments: {
1168
1182
  color?: string | null | undefined;
@@ -1171,11 +1185,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1171
1185
  }[];
1172
1186
  isRead: boolean;
1173
1187
  isStarred: boolean;
1174
- labels: {
1175
- id: number;
1176
- color?: string | null | undefined;
1177
- name?: string | null | undefined;
1178
- }[];
1179
1188
  postedComments: {
1180
1189
  id: number;
1181
1190
  isMine: boolean;
@@ -1204,6 +1213,11 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1204
1213
  name?: string | null | undefined;
1205
1214
  affiliation?: string | null | undefined;
1206
1215
  }[];
1216
+ labels: {
1217
+ id: number;
1218
+ color?: string | null | undefined;
1219
+ name?: string | null | undefined;
1220
+ }[];
1207
1221
  reportHubId: number;
1208
1222
  externalComments: {
1209
1223
  color?: string | null | undefined;
@@ -1212,11 +1226,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1212
1226
  }[];
1213
1227
  isRead: boolean;
1214
1228
  isStarred: boolean;
1215
- labels: {
1216
- id: number;
1217
- color?: string | null | undefined;
1218
- name?: string | null | undefined;
1219
- }[];
1220
1229
  postedComments: {
1221
1230
  id: number;
1222
1231
  isMine: boolean;
@@ -1268,6 +1277,11 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1268
1277
  fileSize: number | null;
1269
1278
  state: "present" | "absent" | "unknown";
1270
1279
  }[];
1280
+ labels: {
1281
+ id: number;
1282
+ color?: string | null | undefined;
1283
+ name?: string | null | undefined;
1284
+ }[];
1271
1285
  reportHubId: number;
1272
1286
  externalComments: {
1273
1287
  color?: string | null | undefined;
@@ -1276,11 +1290,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1276
1290
  }[];
1277
1291
  isRead: boolean;
1278
1292
  isStarred: boolean;
1279
- labels: {
1280
- id: number;
1281
- color?: string | null | undefined;
1282
- name?: string | null | undefined;
1283
- }[];
1284
1293
  postedComments: {
1285
1294
  id: number;
1286
1295
  isMine: boolean;
@@ -1315,6 +1324,11 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1315
1324
  name?: string | null | undefined;
1316
1325
  affiliation?: string | null | undefined;
1317
1326
  }[];
1327
+ labels: {
1328
+ id: number;
1329
+ color?: string | null | undefined;
1330
+ name?: string | null | undefined;
1331
+ }[];
1318
1332
  reportHubId: number;
1319
1333
  externalComments: {
1320
1334
  color?: string | null | undefined;
@@ -1323,11 +1337,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1323
1337
  }[];
1324
1338
  isRead: boolean;
1325
1339
  isStarred: boolean;
1326
- labels: {
1327
- id: number;
1328
- color?: string | null | undefined;
1329
- name?: string | null | undefined;
1330
- }[];
1331
1340
  postedComments: {
1332
1341
  id: number;
1333
1342
  isMine: boolean;
@@ -1609,6 +1618,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1609
1618
  fileSize: number | null;
1610
1619
  state: "present" | "absent" | "unknown";
1611
1620
  }[];
1621
+ labels: {
1622
+ id: number;
1623
+ color?: string | null | undefined;
1624
+ name?: string | null | undefined;
1625
+ }[];
1612
1626
  reportHubId: number;
1613
1627
  externalComments: {
1614
1628
  color?: string | null | undefined;
@@ -1617,11 +1631,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1617
1631
  }[];
1618
1632
  isRead: boolean;
1619
1633
  isStarred: boolean;
1620
- labels: {
1621
- id: number;
1622
- color?: string | null | undefined;
1623
- name?: string | null | undefined;
1624
- }[];
1625
1634
  postedComments: {
1626
1635
  id: number;
1627
1636
  isMine: boolean;
@@ -1650,6 +1659,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1650
1659
  name?: string | null | undefined;
1651
1660
  affiliation?: string | null | undefined;
1652
1661
  }[];
1662
+ labels: {
1663
+ id: number;
1664
+ color?: string | null | undefined;
1665
+ name?: string | null | undefined;
1666
+ }[];
1653
1667
  reportHubId: number;
1654
1668
  externalComments: {
1655
1669
  color?: string | null | undefined;
@@ -1658,11 +1672,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1658
1672
  }[];
1659
1673
  isRead: boolean;
1660
1674
  isStarred: boolean;
1661
- labels: {
1662
- id: number;
1663
- color?: string | null | undefined;
1664
- name?: string | null | undefined;
1665
- }[];
1666
1675
  postedComments: {
1667
1676
  id: number;
1668
1677
  isMine: boolean;
@@ -1714,6 +1723,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1714
1723
  fileSize: number | null;
1715
1724
  state: "present" | "absent" | "unknown";
1716
1725
  }[];
1726
+ labels: {
1727
+ id: number;
1728
+ color?: string | null | undefined;
1729
+ name?: string | null | undefined;
1730
+ }[];
1717
1731
  reportHubId: number;
1718
1732
  externalComments: {
1719
1733
  color?: string | null | undefined;
@@ -1722,11 +1736,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1722
1736
  }[];
1723
1737
  isRead: boolean;
1724
1738
  isStarred: boolean;
1725
- labels: {
1726
- id: number;
1727
- color?: string | null | undefined;
1728
- name?: string | null | undefined;
1729
- }[];
1730
1739
  postedComments: {
1731
1740
  id: number;
1732
1741
  isMine: boolean;
@@ -1761,6 +1770,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1761
1770
  name?: string | null | undefined;
1762
1771
  affiliation?: string | null | undefined;
1763
1772
  }[];
1773
+ labels: {
1774
+ id: number;
1775
+ color?: string | null | undefined;
1776
+ name?: string | null | undefined;
1777
+ }[];
1764
1778
  reportHubId: number;
1765
1779
  externalComments: {
1766
1780
  color?: string | null | undefined;
@@ -1769,11 +1783,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1769
1783
  }[];
1770
1784
  isRead: boolean;
1771
1785
  isStarred: boolean;
1772
- labels: {
1773
- id: number;
1774
- color?: string | null | undefined;
1775
- name?: string | null | undefined;
1776
- }[];
1777
1786
  postedComments: {
1778
1787
  id: number;
1779
1788
  isMine: boolean;
@@ -1927,6 +1936,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1927
1936
  fileSize: number | null;
1928
1937
  state: "present" | "absent" | "unknown";
1929
1938
  }[];
1939
+ labels: {
1940
+ id: number;
1941
+ color?: string | null | undefined;
1942
+ name?: string | null | undefined;
1943
+ }[];
1930
1944
  reportHubId: number;
1931
1945
  externalComments: {
1932
1946
  color?: string | null | undefined;
@@ -1935,11 +1949,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1935
1949
  }[];
1936
1950
  isRead: boolean;
1937
1951
  isStarred: boolean;
1938
- labels: {
1939
- id: number;
1940
- color?: string | null | undefined;
1941
- name?: string | null | undefined;
1942
- }[];
1943
1952
  postedComments: {
1944
1953
  id: number;
1945
1954
  isMine: boolean;
@@ -1968,6 +1977,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1968
1977
  name?: string | null | undefined;
1969
1978
  affiliation?: string | null | undefined;
1970
1979
  }[];
1980
+ labels: {
1981
+ id: number;
1982
+ color?: string | null | undefined;
1983
+ name?: string | null | undefined;
1984
+ }[];
1971
1985
  reportHubId: number;
1972
1986
  externalComments: {
1973
1987
  color?: string | null | undefined;
@@ -1976,11 +1990,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
1976
1990
  }[];
1977
1991
  isRead: boolean;
1978
1992
  isStarred: boolean;
1979
- labels: {
1980
- id: number;
1981
- color?: string | null | undefined;
1982
- name?: string | null | undefined;
1983
- }[];
1984
1993
  postedComments: {
1985
1994
  id: number;
1986
1995
  isMine: boolean;
@@ -2032,6 +2041,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2032
2041
  fileSize: number | null;
2033
2042
  state: "present" | "absent" | "unknown";
2034
2043
  }[];
2044
+ labels: {
2045
+ id: number;
2046
+ color?: string | null | undefined;
2047
+ name?: string | null | undefined;
2048
+ }[];
2035
2049
  reportHubId: number;
2036
2050
  externalComments: {
2037
2051
  color?: string | null | undefined;
@@ -2040,11 +2054,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2040
2054
  }[];
2041
2055
  isRead: boolean;
2042
2056
  isStarred: boolean;
2043
- labels: {
2044
- id: number;
2045
- color?: string | null | undefined;
2046
- name?: string | null | undefined;
2047
- }[];
2048
2057
  postedComments: {
2049
2058
  id: number;
2050
2059
  isMine: boolean;
@@ -2079,6 +2088,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2079
2088
  name?: string | null | undefined;
2080
2089
  affiliation?: string | null | undefined;
2081
2090
  }[];
2091
+ labels: {
2092
+ id: number;
2093
+ color?: string | null | undefined;
2094
+ name?: string | null | undefined;
2095
+ }[];
2082
2096
  reportHubId: number;
2083
2097
  externalComments: {
2084
2098
  color?: string | null | undefined;
@@ -2087,11 +2101,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2087
2101
  }[];
2088
2102
  isRead: boolean;
2089
2103
  isStarred: boolean;
2090
- labels: {
2091
- id: number;
2092
- color?: string | null | undefined;
2093
- name?: string | null | undefined;
2094
- }[];
2095
2104
  postedComments: {
2096
2105
  id: number;
2097
2106
  isMine: boolean;
@@ -2245,6 +2254,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2245
2254
  fileSize: number | null;
2246
2255
  state: "present" | "absent" | "unknown";
2247
2256
  }[];
2257
+ labels: {
2258
+ id: number;
2259
+ color?: string | null | undefined;
2260
+ name?: string | null | undefined;
2261
+ }[];
2248
2262
  reportHubId: number;
2249
2263
  externalComments: {
2250
2264
  color?: string | null | undefined;
@@ -2253,11 +2267,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2253
2267
  }[];
2254
2268
  isRead: boolean;
2255
2269
  isStarred: boolean;
2256
- labels: {
2257
- id: number;
2258
- color?: string | null | undefined;
2259
- name?: string | null | undefined;
2260
- }[];
2261
2270
  postedComments: {
2262
2271
  id: number;
2263
2272
  isMine: boolean;
@@ -2286,6 +2295,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2286
2295
  name?: string | null | undefined;
2287
2296
  affiliation?: string | null | undefined;
2288
2297
  }[];
2298
+ labels: {
2299
+ id: number;
2300
+ color?: string | null | undefined;
2301
+ name?: string | null | undefined;
2302
+ }[];
2289
2303
  reportHubId: number;
2290
2304
  externalComments: {
2291
2305
  color?: string | null | undefined;
@@ -2294,11 +2308,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2294
2308
  }[];
2295
2309
  isRead: boolean;
2296
2310
  isStarred: boolean;
2297
- labels: {
2298
- id: number;
2299
- color?: string | null | undefined;
2300
- name?: string | null | undefined;
2301
- }[];
2302
2311
  postedComments: {
2303
2312
  id: number;
2304
2313
  isMine: boolean;
@@ -2350,6 +2359,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2350
2359
  fileSize: number | null;
2351
2360
  state: "present" | "absent" | "unknown";
2352
2361
  }[];
2362
+ labels: {
2363
+ id: number;
2364
+ color?: string | null | undefined;
2365
+ name?: string | null | undefined;
2366
+ }[];
2353
2367
  reportHubId: number;
2354
2368
  externalComments: {
2355
2369
  color?: string | null | undefined;
@@ -2358,11 +2372,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2358
2372
  }[];
2359
2373
  isRead: boolean;
2360
2374
  isStarred: boolean;
2361
- labels: {
2362
- id: number;
2363
- color?: string | null | undefined;
2364
- name?: string | null | undefined;
2365
- }[];
2366
2375
  postedComments: {
2367
2376
  id: number;
2368
2377
  isMine: boolean;
@@ -2397,6 +2406,11 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2397
2406
  name?: string | null | undefined;
2398
2407
  affiliation?: string | null | undefined;
2399
2408
  }[];
2409
+ labels: {
2410
+ id: number;
2411
+ color?: string | null | undefined;
2412
+ name?: string | null | undefined;
2413
+ }[];
2400
2414
  reportHubId: number;
2401
2415
  externalComments: {
2402
2416
  color?: string | null | undefined;
@@ -2405,11 +2419,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2405
2419
  }[];
2406
2420
  isRead: boolean;
2407
2421
  isStarred: boolean;
2408
- labels: {
2409
- id: number;
2410
- color?: string | null | undefined;
2411
- name?: string | null | undefined;
2412
- }[];
2413
2422
  postedComments: {
2414
2423
  id: number;
2415
2424
  isMine: boolean;
@@ -2462,4 +2471,35 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [
2462
2471
  }>
2463
2472
  ]>;
2464
2473
  type DailyReportSseMessage = z.infer<typeof dailyReportSseMessageSchema>;
2465
- export { type DailyReportSseMessage as D, type UIComment as U, commentDeleteMessageSchema as a, connectedMessageSchema as b, commentAddMessageSchema as c, dailyReportAttachmentItemSchema as d, dailyReportDetailSchema as e, dailyReportExternalCommentSchema as f, dailyReportInterviewerSchema as g, dailyReportLabelDefSchema as h, dailyReportPostedCommentSchema as i, dailyReportSseMessageSchema as j, reportDeleteMessageSchema as k, reportPublishMessageSchema as l, mergeComments as m, reportUpdateMessageSchema as n, resolveCommentColorClass as o, reportCreateMessageSchema as r, statusUpdateMessageSchema as s };
2474
+ type DailyReportIdsStreamCursor = {
2475
+ businessDate: string | null;
2476
+ reportHubId: number;
2477
+ };
2478
+ type DailyReportIdsStreamChunkLine = {
2479
+ kind: "chunk";
2480
+ items: DailyReportItem[];
2481
+ nextCursor: DailyReportIdsStreamCursor | null;
2482
+ isLast: boolean;
2483
+ total?: number;
2484
+ provisional?: boolean;
2485
+ snapshot?: string;
2486
+ restarted?: boolean;
2487
+ streamAnchor?: string | null;
2488
+ };
2489
+ type DailyReportSseStreamAnchor = {
2490
+ readonly lastEventId: string | null;
2491
+ readonly revision: number;
2492
+ };
2493
+ type DailyReportIdsStreamErrorLine = {
2494
+ kind: "error";
2495
+ error: string;
2496
+ };
2497
+ type DailyReportIdsStreamLine = DailyReportIdsStreamChunkLine | DailyReportIdsStreamErrorLine;
2498
+ declare const classifyIdsStreamLine: (line: unknown) => "chunk" | "error" | "unknown";
2499
+ declare const isIdsStreamChunkLine: (line: unknown) => line is DailyReportIdsStreamChunkLine;
2500
+ declare const computeIdsStreamSnapshotToken: (items: readonly DailyReportItem[]) => string;
2501
+ declare const compareIdsStreamOrder: (a: DailyReportIdsStreamCursor, b: DailyReportIdsStreamCursor) => number;
2502
+ declare const isIdsStreamOrdered: (items: readonly DailyReportItem[]) => boolean;
2503
+ declare const upsertInIdsStreamOrder: (items: readonly DailyReportItem[], item: DailyReportItem) => DailyReportItem[];
2504
+ declare const findIdsStreamResumeIndex: (items: readonly DailyReportItem[], cursor: DailyReportIdsStreamCursor) => number;
2505
+ export { mergeComments as A, reportCreateMessageSchema as B, reportDeleteMessageSchema as C, type DailyReportSseTerminalEvent as D, reportPublishMessageSchema as E, reportUpdateMessageSchema as F, resolveCommentColorClass as G, statusUpdateMessageSchema as H, upsertInIdsStreamOrder as I, type UIComment as U, type DailyReportSseMessage as a, type DailyReportSseStreamAnchor as b, DAILY_REPORT_SSE_CURSOR_PARAM as c, DAILY_REPORT_SSE_HEARTBEAT_MS as d, DAILY_REPORT_SSE_TERMINAL_EVENTS as e, type DailyReportIdsStreamChunkLine as f, type DailyReportIdsStreamCursor as g, type DailyReportIdsStreamErrorLine as h, type DailyReportIdsStreamLine as i, classifyIdsStreamLine as j, commentAddMessageSchema as k, commentDeleteMessageSchema as l, compareIdsStreamOrder as m, computeIdsStreamSnapshotToken as n, connectedMessageSchema as o, dailyReportAttachmentItemSchema as p, dailyReportDetailSchema as q, dailyReportExternalCommentSchema as r, dailyReportInterviewerSchema as s, dailyReportLabelDefSchema as t, dailyReportPostedCommentSchema as u, dailyReportSseMessageSchema as v, findIdsStreamResumeIndex as w, isDailyReportSseStreamId as x, isIdsStreamChunkLine as y, isIdsStreamOrdered as z };