@aiquants/daily-report 0.1.1 → 0.2.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 { c as DailyReportComment, d as DailyReportCommentItem } from './types-CVhwLhSN.mjs';
1
+ import { c as DailyReportComment, d as DailyReportCommentItem } from './types-DrjeK3_G.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /**
@@ -95,6 +95,7 @@ declare const dailyReportDetailSchema: z.ZodObject<{
95
95
  createdAt: z.ZodNullable<z.ZodString>;
96
96
  author: z.ZodString;
97
97
  userId: z.ZodString;
98
+ sourceType: z.ZodNullable<z.ZodString>;
98
99
  employeeName: z.ZodNullable<z.ZodString>;
99
100
  updatedBy: z.ZodNullable<z.ZodString>;
100
101
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -186,6 +187,7 @@ declare const dailyReportDetailSchema: z.ZodObject<{
186
187
  affiliation: string | null;
187
188
  }[];
188
189
  userId: string;
190
+ sourceType: string | null;
189
191
  employeeName: string | null;
190
192
  visitTimeFrom: string | null;
191
193
  visitTimeTo: string | null;
@@ -226,6 +228,7 @@ declare const dailyReportDetailSchema: z.ZodObject<{
226
228
  affiliation: string | null;
227
229
  }[];
228
230
  userId: string;
231
+ sourceType: string | null;
229
232
  employeeName: string | null;
230
233
  visitTimeFrom: string | null;
231
234
  visitTimeTo: string | null;
@@ -351,6 +354,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
351
354
  createdAt: z.ZodNullable<z.ZodString>;
352
355
  author: z.ZodString;
353
356
  userId: z.ZodString;
357
+ sourceType: z.ZodNullable<z.ZodString>;
354
358
  employeeName: z.ZodNullable<z.ZodString>;
355
359
  updatedBy: z.ZodNullable<z.ZodString>;
356
360
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -442,6 +446,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
442
446
  affiliation: string | null;
443
447
  }[];
444
448
  userId: string;
449
+ sourceType: string | null;
445
450
  employeeName: string | null;
446
451
  visitTimeFrom: string | null;
447
452
  visitTimeTo: string | null;
@@ -482,6 +487,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
482
487
  affiliation: string | null;
483
488
  }[];
484
489
  userId: string;
490
+ sourceType: string | null;
485
491
  employeeName: string | null;
486
492
  visitTimeFrom: string | null;
487
493
  visitTimeTo: string | null;
@@ -529,6 +535,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
529
535
  affiliation: string | null;
530
536
  }[];
531
537
  userId: string;
538
+ sourceType: string | null;
532
539
  employeeName: string | null;
533
540
  visitTimeFrom: string | null;
534
541
  visitTimeTo: string | null;
@@ -575,6 +582,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
575
582
  affiliation: string | null;
576
583
  }[];
577
584
  userId: string;
585
+ sourceType: string | null;
578
586
  employeeName: string | null;
579
587
  visitTimeFrom: string | null;
580
588
  visitTimeTo: string | null;
@@ -606,6 +614,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
606
614
  createdAt: z.ZodNullable<z.ZodString>;
607
615
  author: z.ZodString;
608
616
  userId: z.ZodString;
617
+ sourceType: z.ZodNullable<z.ZodString>;
609
618
  employeeName: z.ZodNullable<z.ZodString>;
610
619
  updatedBy: z.ZodNullable<z.ZodString>;
611
620
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -697,6 +706,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
697
706
  affiliation: string | null;
698
707
  }[];
699
708
  userId: string;
709
+ sourceType: string | null;
700
710
  employeeName: string | null;
701
711
  visitTimeFrom: string | null;
702
712
  visitTimeTo: string | null;
@@ -737,6 +747,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
737
747
  affiliation: string | null;
738
748
  }[];
739
749
  userId: string;
750
+ sourceType: string | null;
740
751
  employeeName: string | null;
741
752
  visitTimeFrom: string | null;
742
753
  visitTimeTo: string | null;
@@ -784,6 +795,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
784
795
  affiliation: string | null;
785
796
  }[];
786
797
  userId: string;
798
+ sourceType: string | null;
787
799
  employeeName: string | null;
788
800
  visitTimeFrom: string | null;
789
801
  visitTimeTo: string | null;
@@ -830,6 +842,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
830
842
  affiliation: string | null;
831
843
  }[];
832
844
  userId: string;
845
+ sourceType: string | null;
833
846
  employeeName: string | null;
834
847
  visitTimeFrom: string | null;
835
848
  visitTimeTo: string | null;
@@ -861,6 +874,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
861
874
  createdAt: z.ZodNullable<z.ZodString>;
862
875
  author: z.ZodString;
863
876
  userId: z.ZodString;
877
+ sourceType: z.ZodNullable<z.ZodString>;
864
878
  employeeName: z.ZodNullable<z.ZodString>;
865
879
  updatedBy: z.ZodNullable<z.ZodString>;
866
880
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -952,6 +966,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
952
966
  affiliation: string | null;
953
967
  }[];
954
968
  userId: string;
969
+ sourceType: string | null;
955
970
  employeeName: string | null;
956
971
  visitTimeFrom: string | null;
957
972
  visitTimeTo: string | null;
@@ -992,6 +1007,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
992
1007
  affiliation: string | null;
993
1008
  }[];
994
1009
  userId: string;
1010
+ sourceType: string | null;
995
1011
  employeeName: string | null;
996
1012
  visitTimeFrom: string | null;
997
1013
  visitTimeTo: string | null;
@@ -1038,6 +1054,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1038
1054
  affiliation: string | null;
1039
1055
  }[];
1040
1056
  userId: string;
1057
+ sourceType: string | null;
1041
1058
  employeeName: string | null;
1042
1059
  visitTimeFrom: string | null;
1043
1060
  visitTimeTo: string | null;
@@ -1083,6 +1100,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1083
1100
  affiliation: string | null;
1084
1101
  }[];
1085
1102
  userId: string;
1103
+ sourceType: string | null;
1086
1104
  employeeName: string | null;
1087
1105
  visitTimeFrom: string | null;
1088
1106
  visitTimeTo: string | null;
@@ -1218,6 +1236,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1218
1236
  createdAt: z.ZodNullable<z.ZodString>;
1219
1237
  author: z.ZodString;
1220
1238
  userId: z.ZodString;
1239
+ sourceType: z.ZodNullable<z.ZodString>;
1221
1240
  employeeName: z.ZodNullable<z.ZodString>;
1222
1241
  updatedBy: z.ZodNullable<z.ZodString>;
1223
1242
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -1309,6 +1328,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1309
1328
  affiliation: string | null;
1310
1329
  }[];
1311
1330
  userId: string;
1331
+ sourceType: string | null;
1312
1332
  employeeName: string | null;
1313
1333
  visitTimeFrom: string | null;
1314
1334
  visitTimeTo: string | null;
@@ -1349,6 +1369,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1349
1369
  affiliation: string | null;
1350
1370
  }[];
1351
1371
  userId: string;
1372
+ sourceType: string | null;
1352
1373
  employeeName: string | null;
1353
1374
  visitTimeFrom: string | null;
1354
1375
  visitTimeTo: string | null;
@@ -1396,6 +1417,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1396
1417
  affiliation: string | null;
1397
1418
  }[];
1398
1419
  userId: string;
1420
+ sourceType: string | null;
1399
1421
  employeeName: string | null;
1400
1422
  visitTimeFrom: string | null;
1401
1423
  visitTimeTo: string | null;
@@ -1442,6 +1464,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1442
1464
  affiliation: string | null;
1443
1465
  }[];
1444
1466
  userId: string;
1467
+ sourceType: string | null;
1445
1468
  employeeName: string | null;
1446
1469
  visitTimeFrom: string | null;
1447
1470
  visitTimeTo: string | null;
@@ -1472,6 +1495,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1472
1495
  createdAt: z.ZodNullable<z.ZodString>;
1473
1496
  author: z.ZodString;
1474
1497
  userId: z.ZodString;
1498
+ sourceType: z.ZodNullable<z.ZodString>;
1475
1499
  employeeName: z.ZodNullable<z.ZodString>;
1476
1500
  updatedBy: z.ZodNullable<z.ZodString>;
1477
1501
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -1563,6 +1587,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1563
1587
  affiliation: string | null;
1564
1588
  }[];
1565
1589
  userId: string;
1590
+ sourceType: string | null;
1566
1591
  employeeName: string | null;
1567
1592
  visitTimeFrom: string | null;
1568
1593
  visitTimeTo: string | null;
@@ -1603,6 +1628,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1603
1628
  affiliation: string | null;
1604
1629
  }[];
1605
1630
  userId: string;
1631
+ sourceType: string | null;
1606
1632
  employeeName: string | null;
1607
1633
  visitTimeFrom: string | null;
1608
1634
  visitTimeTo: string | null;
@@ -1650,6 +1676,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1650
1676
  affiliation: string | null;
1651
1677
  }[];
1652
1678
  userId: string;
1679
+ sourceType: string | null;
1653
1680
  employeeName: string | null;
1654
1681
  visitTimeFrom: string | null;
1655
1682
  visitTimeTo: string | null;
@@ -1696,6 +1723,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1696
1723
  affiliation: string | null;
1697
1724
  }[];
1698
1725
  userId: string;
1726
+ sourceType: string | null;
1699
1727
  employeeName: string | null;
1700
1728
  visitTimeFrom: string | null;
1701
1729
  visitTimeTo: string | null;
@@ -1726,6 +1754,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1726
1754
  createdAt: z.ZodNullable<z.ZodString>;
1727
1755
  author: z.ZodString;
1728
1756
  userId: z.ZodString;
1757
+ sourceType: z.ZodNullable<z.ZodString>;
1729
1758
  employeeName: z.ZodNullable<z.ZodString>;
1730
1759
  updatedBy: z.ZodNullable<z.ZodString>;
1731
1760
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -1817,6 +1846,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1817
1846
  affiliation: string | null;
1818
1847
  }[];
1819
1848
  userId: string;
1849
+ sourceType: string | null;
1820
1850
  employeeName: string | null;
1821
1851
  visitTimeFrom: string | null;
1822
1852
  visitTimeTo: string | null;
@@ -1857,6 +1887,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1857
1887
  affiliation: string | null;
1858
1888
  }[];
1859
1889
  userId: string;
1890
+ sourceType: string | null;
1860
1891
  employeeName: string | null;
1861
1892
  visitTimeFrom: string | null;
1862
1893
  visitTimeTo: string | null;
@@ -1903,6 +1934,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1903
1934
  affiliation: string | null;
1904
1935
  }[];
1905
1936
  userId: string;
1937
+ sourceType: string | null;
1906
1938
  employeeName: string | null;
1907
1939
  visitTimeFrom: string | null;
1908
1940
  visitTimeTo: string | null;
@@ -1948,6 +1980,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1948
1980
  affiliation: string | null;
1949
1981
  }[];
1950
1982
  userId: string;
1983
+ sourceType: string | null;
1951
1984
  employeeName: string | null;
1952
1985
  visitTimeFrom: string | null;
1953
1986
  visitTimeTo: string | null;
@@ -1,4 +1,4 @@
1
- import { c as DailyReportComment, d as DailyReportCommentItem } from './types-CVhwLhSN.js';
1
+ import { c as DailyReportComment, d as DailyReportCommentItem } from './types-DrjeK3_G.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  /**
@@ -95,6 +95,7 @@ declare const dailyReportDetailSchema: z.ZodObject<{
95
95
  createdAt: z.ZodNullable<z.ZodString>;
96
96
  author: z.ZodString;
97
97
  userId: z.ZodString;
98
+ sourceType: z.ZodNullable<z.ZodString>;
98
99
  employeeName: z.ZodNullable<z.ZodString>;
99
100
  updatedBy: z.ZodNullable<z.ZodString>;
100
101
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -186,6 +187,7 @@ declare const dailyReportDetailSchema: z.ZodObject<{
186
187
  affiliation: string | null;
187
188
  }[];
188
189
  userId: string;
190
+ sourceType: string | null;
189
191
  employeeName: string | null;
190
192
  visitTimeFrom: string | null;
191
193
  visitTimeTo: string | null;
@@ -226,6 +228,7 @@ declare const dailyReportDetailSchema: z.ZodObject<{
226
228
  affiliation: string | null;
227
229
  }[];
228
230
  userId: string;
231
+ sourceType: string | null;
229
232
  employeeName: string | null;
230
233
  visitTimeFrom: string | null;
231
234
  visitTimeTo: string | null;
@@ -351,6 +354,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
351
354
  createdAt: z.ZodNullable<z.ZodString>;
352
355
  author: z.ZodString;
353
356
  userId: z.ZodString;
357
+ sourceType: z.ZodNullable<z.ZodString>;
354
358
  employeeName: z.ZodNullable<z.ZodString>;
355
359
  updatedBy: z.ZodNullable<z.ZodString>;
356
360
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -442,6 +446,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
442
446
  affiliation: string | null;
443
447
  }[];
444
448
  userId: string;
449
+ sourceType: string | null;
445
450
  employeeName: string | null;
446
451
  visitTimeFrom: string | null;
447
452
  visitTimeTo: string | null;
@@ -482,6 +487,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
482
487
  affiliation: string | null;
483
488
  }[];
484
489
  userId: string;
490
+ sourceType: string | null;
485
491
  employeeName: string | null;
486
492
  visitTimeFrom: string | null;
487
493
  visitTimeTo: string | null;
@@ -529,6 +535,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
529
535
  affiliation: string | null;
530
536
  }[];
531
537
  userId: string;
538
+ sourceType: string | null;
532
539
  employeeName: string | null;
533
540
  visitTimeFrom: string | null;
534
541
  visitTimeTo: string | null;
@@ -575,6 +582,7 @@ declare const reportCreateMessageSchema: z.ZodObject<{
575
582
  affiliation: string | null;
576
583
  }[];
577
584
  userId: string;
585
+ sourceType: string | null;
578
586
  employeeName: string | null;
579
587
  visitTimeFrom: string | null;
580
588
  visitTimeTo: string | null;
@@ -606,6 +614,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
606
614
  createdAt: z.ZodNullable<z.ZodString>;
607
615
  author: z.ZodString;
608
616
  userId: z.ZodString;
617
+ sourceType: z.ZodNullable<z.ZodString>;
609
618
  employeeName: z.ZodNullable<z.ZodString>;
610
619
  updatedBy: z.ZodNullable<z.ZodString>;
611
620
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -697,6 +706,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
697
706
  affiliation: string | null;
698
707
  }[];
699
708
  userId: string;
709
+ sourceType: string | null;
700
710
  employeeName: string | null;
701
711
  visitTimeFrom: string | null;
702
712
  visitTimeTo: string | null;
@@ -737,6 +747,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
737
747
  affiliation: string | null;
738
748
  }[];
739
749
  userId: string;
750
+ sourceType: string | null;
740
751
  employeeName: string | null;
741
752
  visitTimeFrom: string | null;
742
753
  visitTimeTo: string | null;
@@ -784,6 +795,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
784
795
  affiliation: string | null;
785
796
  }[];
786
797
  userId: string;
798
+ sourceType: string | null;
787
799
  employeeName: string | null;
788
800
  visitTimeFrom: string | null;
789
801
  visitTimeTo: string | null;
@@ -830,6 +842,7 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
830
842
  affiliation: string | null;
831
843
  }[];
832
844
  userId: string;
845
+ sourceType: string | null;
833
846
  employeeName: string | null;
834
847
  visitTimeFrom: string | null;
835
848
  visitTimeTo: string | null;
@@ -861,6 +874,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
861
874
  createdAt: z.ZodNullable<z.ZodString>;
862
875
  author: z.ZodString;
863
876
  userId: z.ZodString;
877
+ sourceType: z.ZodNullable<z.ZodString>;
864
878
  employeeName: z.ZodNullable<z.ZodString>;
865
879
  updatedBy: z.ZodNullable<z.ZodString>;
866
880
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -952,6 +966,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
952
966
  affiliation: string | null;
953
967
  }[];
954
968
  userId: string;
969
+ sourceType: string | null;
955
970
  employeeName: string | null;
956
971
  visitTimeFrom: string | null;
957
972
  visitTimeTo: string | null;
@@ -992,6 +1007,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
992
1007
  affiliation: string | null;
993
1008
  }[];
994
1009
  userId: string;
1010
+ sourceType: string | null;
995
1011
  employeeName: string | null;
996
1012
  visitTimeFrom: string | null;
997
1013
  visitTimeTo: string | null;
@@ -1038,6 +1054,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1038
1054
  affiliation: string | null;
1039
1055
  }[];
1040
1056
  userId: string;
1057
+ sourceType: string | null;
1041
1058
  employeeName: string | null;
1042
1059
  visitTimeFrom: string | null;
1043
1060
  visitTimeTo: string | null;
@@ -1083,6 +1100,7 @@ declare const reportPublishMessageSchema: z.ZodObject<{
1083
1100
  affiliation: string | null;
1084
1101
  }[];
1085
1102
  userId: string;
1103
+ sourceType: string | null;
1086
1104
  employeeName: string | null;
1087
1105
  visitTimeFrom: string | null;
1088
1106
  visitTimeTo: string | null;
@@ -1218,6 +1236,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1218
1236
  createdAt: z.ZodNullable<z.ZodString>;
1219
1237
  author: z.ZodString;
1220
1238
  userId: z.ZodString;
1239
+ sourceType: z.ZodNullable<z.ZodString>;
1221
1240
  employeeName: z.ZodNullable<z.ZodString>;
1222
1241
  updatedBy: z.ZodNullable<z.ZodString>;
1223
1242
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -1309,6 +1328,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1309
1328
  affiliation: string | null;
1310
1329
  }[];
1311
1330
  userId: string;
1331
+ sourceType: string | null;
1312
1332
  employeeName: string | null;
1313
1333
  visitTimeFrom: string | null;
1314
1334
  visitTimeTo: string | null;
@@ -1349,6 +1369,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1349
1369
  affiliation: string | null;
1350
1370
  }[];
1351
1371
  userId: string;
1372
+ sourceType: string | null;
1352
1373
  employeeName: string | null;
1353
1374
  visitTimeFrom: string | null;
1354
1375
  visitTimeTo: string | null;
@@ -1396,6 +1417,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1396
1417
  affiliation: string | null;
1397
1418
  }[];
1398
1419
  userId: string;
1420
+ sourceType: string | null;
1399
1421
  employeeName: string | null;
1400
1422
  visitTimeFrom: string | null;
1401
1423
  visitTimeTo: string | null;
@@ -1442,6 +1464,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1442
1464
  affiliation: string | null;
1443
1465
  }[];
1444
1466
  userId: string;
1467
+ sourceType: string | null;
1445
1468
  employeeName: string | null;
1446
1469
  visitTimeFrom: string | null;
1447
1470
  visitTimeTo: string | null;
@@ -1472,6 +1495,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1472
1495
  createdAt: z.ZodNullable<z.ZodString>;
1473
1496
  author: z.ZodString;
1474
1497
  userId: z.ZodString;
1498
+ sourceType: z.ZodNullable<z.ZodString>;
1475
1499
  employeeName: z.ZodNullable<z.ZodString>;
1476
1500
  updatedBy: z.ZodNullable<z.ZodString>;
1477
1501
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -1563,6 +1587,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1563
1587
  affiliation: string | null;
1564
1588
  }[];
1565
1589
  userId: string;
1590
+ sourceType: string | null;
1566
1591
  employeeName: string | null;
1567
1592
  visitTimeFrom: string | null;
1568
1593
  visitTimeTo: string | null;
@@ -1603,6 +1628,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1603
1628
  affiliation: string | null;
1604
1629
  }[];
1605
1630
  userId: string;
1631
+ sourceType: string | null;
1606
1632
  employeeName: string | null;
1607
1633
  visitTimeFrom: string | null;
1608
1634
  visitTimeTo: string | null;
@@ -1650,6 +1676,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1650
1676
  affiliation: string | null;
1651
1677
  }[];
1652
1678
  userId: string;
1679
+ sourceType: string | null;
1653
1680
  employeeName: string | null;
1654
1681
  visitTimeFrom: string | null;
1655
1682
  visitTimeTo: string | null;
@@ -1696,6 +1723,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1696
1723
  affiliation: string | null;
1697
1724
  }[];
1698
1725
  userId: string;
1726
+ sourceType: string | null;
1699
1727
  employeeName: string | null;
1700
1728
  visitTimeFrom: string | null;
1701
1729
  visitTimeTo: string | null;
@@ -1726,6 +1754,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1726
1754
  createdAt: z.ZodNullable<z.ZodString>;
1727
1755
  author: z.ZodString;
1728
1756
  userId: z.ZodString;
1757
+ sourceType: z.ZodNullable<z.ZodString>;
1729
1758
  employeeName: z.ZodNullable<z.ZodString>;
1730
1759
  updatedBy: z.ZodNullable<z.ZodString>;
1731
1760
  updatedAt: z.ZodNullable<z.ZodString>;
@@ -1817,6 +1846,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1817
1846
  affiliation: string | null;
1818
1847
  }[];
1819
1848
  userId: string;
1849
+ sourceType: string | null;
1820
1850
  employeeName: string | null;
1821
1851
  visitTimeFrom: string | null;
1822
1852
  visitTimeTo: string | null;
@@ -1857,6 +1887,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1857
1887
  affiliation: string | null;
1858
1888
  }[];
1859
1889
  userId: string;
1890
+ sourceType: string | null;
1860
1891
  employeeName: string | null;
1861
1892
  visitTimeFrom: string | null;
1862
1893
  visitTimeTo: string | null;
@@ -1903,6 +1934,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1903
1934
  affiliation: string | null;
1904
1935
  }[];
1905
1936
  userId: string;
1937
+ sourceType: string | null;
1906
1938
  employeeName: string | null;
1907
1939
  visitTimeFrom: string | null;
1908
1940
  visitTimeTo: string | null;
@@ -1948,6 +1980,7 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1948
1980
  affiliation: string | null;
1949
1981
  }[];
1950
1982
  userId: string;
1983
+ sourceType: string | null;
1951
1984
  employeeName: string | null;
1952
1985
  visitTimeFrom: string | null;
1953
1986
  visitTimeTo: string | null;
@@ -40,6 +40,7 @@ type DailyReportDetail = {
40
40
  createdAt: string | null;
41
41
  author: string;
42
42
  userId: string;
43
+ sourceType: string | null;
43
44
  employeeName: string | null;
44
45
  updatedBy: string | null;
45
46
  updatedAt: string | null;
@@ -40,6 +40,7 @@ type DailyReportDetail = {
40
40
  createdAt: string | null;
41
41
  author: string;
42
42
  userId: string;
43
+ sourceType: string | null;
43
44
  employeeName: string | null;
44
45
  updatedBy: string | null;
45
46
  updatedAt: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiquants/daily-report",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Reusable daily-report feature package: shared types/schemas, React (Router v7) UI with virtual scrolling + optimistic updates + SSE sync, and a drizzle (mssql) server layer with DI ports (auth, user resolution, redis, external sources).",
5
5
  "sideEffects": false,
6
6
  "main": "dist/index.js",
@@ -66,8 +66,8 @@
66
66
  "typescript": "^5.9.3",
67
67
  "vitest": "^4.1.8",
68
68
  "zod": "^3.25.76",
69
- "@aiquants/virtualscroll": "1.18.3",
70
- "@aiquants/swipe-overlay": "1.2.3"
69
+ "@aiquants/swipe-overlay": "1.2.3",
70
+ "@aiquants/virtualscroll": "1.18.3"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "drizzle-orm": ">=1.0.0-beta.4 <2.0.0",
@@ -75,8 +75,8 @@
75
75
  "react-dom": ">=18",
76
76
  "react-router": "^7.0.0",
77
77
  "zod": ">=3.25.0 <5.0.0",
78
- "@aiquants/virtualscroll": "^1.18.3",
79
- "@aiquants/swipe-overlay": "^1.2.3"
78
+ "@aiquants/swipe-overlay": "^1.2.3",
79
+ "@aiquants/virtualscroll": "^1.18.3"
80
80
  },
81
81
  "peerDependenciesMeta": {
82
82
  "drizzle-orm": {
@@ -19,11 +19,12 @@ import { Check, Star, Trash2 } from "lucide-react"
19
19
  import { type RefObject, useCallback, useEffect, useMemo, useRef, useState } from "react"
20
20
  import { fallbackText, formatToIsoDate } from "../../shared/text-utils"
21
21
  import type { DailyReportDetail, DailyReportItem } from "../../shared/types"
22
- import { type DailyReportFieldLabels, useDailyReportConfig } from "../config-context"
22
+ import { type DailyReportFieldLabels, type SourceTypeConfig, useDailyReportConfig } from "../config-context"
23
23
  import { useDailyReportActionContext } from "../contexts/daily-report-action-context"
24
24
  import { useDailyReportDetail, useDailyReportPrefetch } from "../hooks/use-daily-report"
25
25
  import { useDailyReportComments } from "../hooks/use-daily-report-comments"
26
26
  import { useDynamicViewportHeight } from "../hooks/use-dynamic-viewport-height"
27
+ import { cn } from "../ui/cn"
27
28
  import { EMPTY_ITEM, FAST_SCROLL_INERTIA_OPTIONS, FAST_SCROLL_WHEEL_MULTIPLIER, PREFETCH_LOOKAHEAD, PREFETCH_MAX_DATES, VIRTUAL_SCROLL_OVERSCAN_COUNT } from "../utils/constants"
28
29
  import { BusinessDayThumbOverlay } from "./business-day-thumb-overlay"
29
30
  import { DailyReportCommentForm, DailyReportCommentList } from "./daily-report-comment-section"
@@ -438,6 +439,7 @@ const DailyReportHeader = ({
438
439
  visitTimeDisplay,
439
440
  categoryLabel,
440
441
  fieldLabels,
442
+ sourceTypeConfigs,
441
443
  }: {
442
444
  report: DailyReportDetail
443
445
  isRead: boolean
@@ -449,6 +451,7 @@ const DailyReportHeader = ({
449
451
  visitTimeDisplay: string
450
452
  categoryLabel: string
451
453
  fieldLabels: DailyReportFieldLabels
454
+ sourceTypeConfigs?: Record<string, SourceTypeConfig>
452
455
  }) => (
453
456
  <div className="flex flex-wrap items-center gap-2 font-medium text-slate-600 text-xs">
454
457
  <button
@@ -476,6 +479,11 @@ const DailyReportHeader = ({
476
479
  <span className="text-[10px] text-blue-500 uppercase tracking-wide">{fieldLabels.id}</span>
477
480
  {report.reportHubId}
478
481
  </span>
482
+ {(() => {
483
+ const sourceType = report.sourceType
484
+ const sourceConfig = sourceType ? sourceTypeConfigs?.[sourceType] : undefined
485
+ return sourceConfig ? <span className={cn("inline-flex items-center rounded px-2 py-0.5 font-semibold text-[10px] tracking-wide", sourceConfig.badgeClassName)}>{sourceConfig.label}</span> : null
486
+ })()}
479
487
  <span className="inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-slate-100 px-3 py-1">
480
488
  <span className="text-[10px] text-slate-400 uppercase tracking-wide">{fieldLabels.businessDate}</span>
481
489
  {formatToIsoDate(report.date)}
@@ -551,7 +559,7 @@ const DailyReportResolvedItem = ({ item, report, onCommentAdded, userId, onDoubl
551
559
  // 表示中ユーザーはアクションコンテキストから取得する (root loader 非依存)
552
560
  const { toggleStar, toggleRead, pendingStarUpdates, pendingReadUpdates, deleteReport, user } = useDailyReportActionContext()
553
561
  const { uiComments, handleAddComment, handleDeleteComment, pendingDeleteId, setPendingDeleteId, resolvedIdMap } = useDailyReportComments(report, user, userId)
554
- const { fieldLabels } = useDailyReportConfig()
562
+ const { fieldLabels, sourceTypeConfigs } = useDailyReportConfig()
555
563
 
556
564
  const handleAddCommentWrapper = async (content: string) => {
557
565
  await handleAddComment(content)
@@ -609,6 +617,7 @@ const DailyReportResolvedItem = ({ item, report, onCommentAdded, userId, onDoubl
609
617
  visitTimeDisplay={visitTimeDisplay}
610
618
  categoryLabel={categoryLabel}
611
619
  fieldLabels={fieldLabels}
620
+ sourceTypeConfigs={sourceTypeConfigs}
612
621
  />
613
622
  <div className="grid gap-4 md:grid-cols-[minmax(0,1fr)_240px]">
614
623
  <div className="flex flex-col gap-4">
@@ -13,6 +13,7 @@ import { useDailyReportActionContext } from "../contexts/daily-report-action-con
13
13
  import { useDailyReportDetail } from "../hooks/use-daily-report"
14
14
  import { useDailyReportComments } from "../hooks/use-daily-report-comments"
15
15
  import { useDynamicViewportHeight } from "../hooks/use-dynamic-viewport-height"
16
+ import { cn } from "../ui/cn"
16
17
  import { Tabs, TabsContent, TabsList, TabsTrigger } from "../ui/tabs"
17
18
  import {
18
19
  DEFAULT_ITEM_HEIGHT,
@@ -504,7 +505,7 @@ const DailyReportSidePane = ({
504
505
  }) => {
505
506
  const [activeTab, setActiveTab] = useState<DailyReportSidePaneTab>("article")
506
507
  const [isEditing, setIsEditing] = useState(false)
507
- const { draftLabelName, fieldLabels } = useDailyReportConfig()
508
+ const { draftLabelName, fieldLabels, sourceTypeConfigs } = useDailyReportConfig()
508
509
  const { report, error, isLoading } = useDailyReportDetail(selectedItem?.reportHubId ?? -1, selectedItem?.businessDate ?? null)
509
510
 
510
511
  const scrollContainerRef = useRef<HTMLDivElement>(null)
@@ -570,6 +571,11 @@ const DailyReportSidePane = ({
570
571
  <div className="flex min-h-4 items-center gap-1 text-slate-500 text-xs dark:text-slate-300">
571
572
  <span>{fieldLabels.author}:</span>
572
573
  {showHeaderSkeleton ? <div className="h-3 w-24 animate-pulse rounded bg-slate-200 dark:bg-slate-700" /> : <span>{headerCreator}</span>}
574
+ {(() => {
575
+ const sourceType = report?.sourceType
576
+ const sourceConfig = sourceType ? sourceTypeConfigs?.[sourceType] : undefined
577
+ return sourceConfig ? <span className={cn("ml-2 inline-flex shrink-0 items-center rounded px-2 py-0.5 font-semibold text-[10px] tracking-wide", sourceConfig.badgeClassName)}>{sourceConfig.label}</span> : null
578
+ })()}
573
579
  </div>
574
580
  </div>
575
581
  <Tabs value={activeTab} onValueChange={(v) => setActiveTab(v as DailyReportSidePaneTab)} className="flex min-h-0 flex-1 flex-col">
@@ -904,6 +910,7 @@ const extractPreviewLines = (content: string | null): string[] => {
904
910
  const ListReportItem = ({ item, isActive, onSelect }: { item: DailyReportItem; isActive: boolean; onSelect: (id: number) => void }) => {
905
911
  const { report, error, isLoading, isRefetching } = useDailyReportDetail(item.reportHubId, item.businessDate)
906
912
  const { toggleStar, toggleRead, removeStaleItem } = useDailyReportActionContext()
913
+ const { sourceTypeConfigs } = useDailyReportConfig()
907
914
 
908
915
  // フェッチが一度でも試行されたかを追跡する ref
909
916
  const hasEverFetched = useRef(false)
@@ -988,6 +995,11 @@ const ListReportItem = ({ item, isActive, onSelect }: { item: DailyReportItem; i
988
995
  <span className="inline-flex min-w-0 max-w-full items-center rounded-full bg-slate-100 px-3 py-1 font-semibold text-xs dark:bg-slate-800 dark:text-slate-200">
989
996
  <span className="truncate font-medium text-slate-900 dark:text-slate-100">{creator}</span>
990
997
  </span>
998
+ {(() => {
999
+ const sourceType = report?.sourceType
1000
+ const sourceConfig = sourceType ? sourceTypeConfigs?.[sourceType] : undefined
1001
+ return sourceConfig ? <span className={cn("inline-flex shrink-0 items-center rounded px-2 py-0.5 font-semibold text-[10px] tracking-wide", sourceConfig.badgeClassName)}>{sourceConfig.label}</span> : null
1002
+ })()}
991
1003
  <div className="ml-auto flex items-center gap-1.5">
992
1004
  <button
993
1005
  type="button"