@aiquants/daily-report 0.3.0 → 0.3.2
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.
- package/README.md +0 -21
- package/dist/client.d.mts +3 -10
- package/dist/client.d.ts +3 -10
- package/dist/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +4 -4
- package/dist/client.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +2 -2
- package/dist/server.mjs.map +1 -1
- package/dist/{sse-schema-DO9Qe8XF.d.ts → sse-schema-CK7cUnEo.d.ts} +1 -34
- package/dist/{sse-schema-DKUjXMW3.d.mts → sse-schema-yl5AaSsj.d.mts} +1 -34
- package/dist/{types-DrjeK3_G.d.mts → types-CVhwLhSN.d.mts} +0 -1
- package/dist/{types-DrjeK3_G.d.ts → types-CVhwLhSN.d.ts} +0 -1
- package/package.json +8 -8
- package/src/client/components/daily-report-detail-list.tsx +10 -20
- package/src/client/components/daily-report-list.tsx +1 -13
- package/src/client/config-context.tsx +0 -9
- package/src/client/contexts/daily-report-action-context.tsx +0 -1
- package/src/server/service.ts +0 -2
- package/src/shared/sse-schema.ts +0 -1
- package/src/shared/types.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as DailyReportComment, d as DailyReportCommentItem } from './types-
|
|
1
|
+
import { c as DailyReportComment, d as DailyReportCommentItem } from './types-CVhwLhSN.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -95,7 +95,6 @@ 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>;
|
|
99
98
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
100
99
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
101
100
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -187,7 +186,6 @@ declare const dailyReportDetailSchema: z.ZodObject<{
|
|
|
187
186
|
affiliation: string | null;
|
|
188
187
|
}[];
|
|
189
188
|
userId: string;
|
|
190
|
-
sourceType: string | null;
|
|
191
189
|
employeeName: string | null;
|
|
192
190
|
visitTimeFrom: string | null;
|
|
193
191
|
visitTimeTo: string | null;
|
|
@@ -228,7 +226,6 @@ declare const dailyReportDetailSchema: z.ZodObject<{
|
|
|
228
226
|
affiliation: string | null;
|
|
229
227
|
}[];
|
|
230
228
|
userId: string;
|
|
231
|
-
sourceType: string | null;
|
|
232
229
|
employeeName: string | null;
|
|
233
230
|
visitTimeFrom: string | null;
|
|
234
231
|
visitTimeTo: string | null;
|
|
@@ -354,7 +351,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
354
351
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
355
352
|
author: z.ZodString;
|
|
356
353
|
userId: z.ZodString;
|
|
357
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
358
354
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
359
355
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
360
356
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -446,7 +442,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
446
442
|
affiliation: string | null;
|
|
447
443
|
}[];
|
|
448
444
|
userId: string;
|
|
449
|
-
sourceType: string | null;
|
|
450
445
|
employeeName: string | null;
|
|
451
446
|
visitTimeFrom: string | null;
|
|
452
447
|
visitTimeTo: string | null;
|
|
@@ -487,7 +482,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
487
482
|
affiliation: string | null;
|
|
488
483
|
}[];
|
|
489
484
|
userId: string;
|
|
490
|
-
sourceType: string | null;
|
|
491
485
|
employeeName: string | null;
|
|
492
486
|
visitTimeFrom: string | null;
|
|
493
487
|
visitTimeTo: string | null;
|
|
@@ -535,7 +529,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
535
529
|
affiliation: string | null;
|
|
536
530
|
}[];
|
|
537
531
|
userId: string;
|
|
538
|
-
sourceType: string | null;
|
|
539
532
|
employeeName: string | null;
|
|
540
533
|
visitTimeFrom: string | null;
|
|
541
534
|
visitTimeTo: string | null;
|
|
@@ -582,7 +575,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
582
575
|
affiliation: string | null;
|
|
583
576
|
}[];
|
|
584
577
|
userId: string;
|
|
585
|
-
sourceType: string | null;
|
|
586
578
|
employeeName: string | null;
|
|
587
579
|
visitTimeFrom: string | null;
|
|
588
580
|
visitTimeTo: string | null;
|
|
@@ -614,7 +606,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
614
606
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
615
607
|
author: z.ZodString;
|
|
616
608
|
userId: z.ZodString;
|
|
617
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
618
609
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
619
610
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
620
611
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -706,7 +697,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
706
697
|
affiliation: string | null;
|
|
707
698
|
}[];
|
|
708
699
|
userId: string;
|
|
709
|
-
sourceType: string | null;
|
|
710
700
|
employeeName: string | null;
|
|
711
701
|
visitTimeFrom: string | null;
|
|
712
702
|
visitTimeTo: string | null;
|
|
@@ -747,7 +737,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
747
737
|
affiliation: string | null;
|
|
748
738
|
}[];
|
|
749
739
|
userId: string;
|
|
750
|
-
sourceType: string | null;
|
|
751
740
|
employeeName: string | null;
|
|
752
741
|
visitTimeFrom: string | null;
|
|
753
742
|
visitTimeTo: string | null;
|
|
@@ -795,7 +784,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
795
784
|
affiliation: string | null;
|
|
796
785
|
}[];
|
|
797
786
|
userId: string;
|
|
798
|
-
sourceType: string | null;
|
|
799
787
|
employeeName: string | null;
|
|
800
788
|
visitTimeFrom: string | null;
|
|
801
789
|
visitTimeTo: string | null;
|
|
@@ -842,7 +830,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
842
830
|
affiliation: string | null;
|
|
843
831
|
}[];
|
|
844
832
|
userId: string;
|
|
845
|
-
sourceType: string | null;
|
|
846
833
|
employeeName: string | null;
|
|
847
834
|
visitTimeFrom: string | null;
|
|
848
835
|
visitTimeTo: string | null;
|
|
@@ -874,7 +861,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
874
861
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
875
862
|
author: z.ZodString;
|
|
876
863
|
userId: z.ZodString;
|
|
877
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
878
864
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
879
865
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
880
866
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -966,7 +952,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
966
952
|
affiliation: string | null;
|
|
967
953
|
}[];
|
|
968
954
|
userId: string;
|
|
969
|
-
sourceType: string | null;
|
|
970
955
|
employeeName: string | null;
|
|
971
956
|
visitTimeFrom: string | null;
|
|
972
957
|
visitTimeTo: string | null;
|
|
@@ -1007,7 +992,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
1007
992
|
affiliation: string | null;
|
|
1008
993
|
}[];
|
|
1009
994
|
userId: string;
|
|
1010
|
-
sourceType: string | null;
|
|
1011
995
|
employeeName: string | null;
|
|
1012
996
|
visitTimeFrom: string | null;
|
|
1013
997
|
visitTimeTo: string | null;
|
|
@@ -1054,7 +1038,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
1054
1038
|
affiliation: string | null;
|
|
1055
1039
|
}[];
|
|
1056
1040
|
userId: string;
|
|
1057
|
-
sourceType: string | null;
|
|
1058
1041
|
employeeName: string | null;
|
|
1059
1042
|
visitTimeFrom: string | null;
|
|
1060
1043
|
visitTimeTo: string | null;
|
|
@@ -1100,7 +1083,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
1100
1083
|
affiliation: string | null;
|
|
1101
1084
|
}[];
|
|
1102
1085
|
userId: string;
|
|
1103
|
-
sourceType: string | null;
|
|
1104
1086
|
employeeName: string | null;
|
|
1105
1087
|
visitTimeFrom: string | null;
|
|
1106
1088
|
visitTimeTo: string | null;
|
|
@@ -1236,7 +1218,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1236
1218
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
1237
1219
|
author: z.ZodString;
|
|
1238
1220
|
userId: z.ZodString;
|
|
1239
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
1240
1221
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
1241
1222
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
1242
1223
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1328,7 +1309,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1328
1309
|
affiliation: string | null;
|
|
1329
1310
|
}[];
|
|
1330
1311
|
userId: string;
|
|
1331
|
-
sourceType: string | null;
|
|
1332
1312
|
employeeName: string | null;
|
|
1333
1313
|
visitTimeFrom: string | null;
|
|
1334
1314
|
visitTimeTo: string | null;
|
|
@@ -1369,7 +1349,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1369
1349
|
affiliation: string | null;
|
|
1370
1350
|
}[];
|
|
1371
1351
|
userId: string;
|
|
1372
|
-
sourceType: string | null;
|
|
1373
1352
|
employeeName: string | null;
|
|
1374
1353
|
visitTimeFrom: string | null;
|
|
1375
1354
|
visitTimeTo: string | null;
|
|
@@ -1417,7 +1396,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1417
1396
|
affiliation: string | null;
|
|
1418
1397
|
}[];
|
|
1419
1398
|
userId: string;
|
|
1420
|
-
sourceType: string | null;
|
|
1421
1399
|
employeeName: string | null;
|
|
1422
1400
|
visitTimeFrom: string | null;
|
|
1423
1401
|
visitTimeTo: string | null;
|
|
@@ -1464,7 +1442,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1464
1442
|
affiliation: string | null;
|
|
1465
1443
|
}[];
|
|
1466
1444
|
userId: string;
|
|
1467
|
-
sourceType: string | null;
|
|
1468
1445
|
employeeName: string | null;
|
|
1469
1446
|
visitTimeFrom: string | null;
|
|
1470
1447
|
visitTimeTo: string | null;
|
|
@@ -1495,7 +1472,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1495
1472
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
1496
1473
|
author: z.ZodString;
|
|
1497
1474
|
userId: z.ZodString;
|
|
1498
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
1499
1475
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
1500
1476
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
1501
1477
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1587,7 +1563,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1587
1563
|
affiliation: string | null;
|
|
1588
1564
|
}[];
|
|
1589
1565
|
userId: string;
|
|
1590
|
-
sourceType: string | null;
|
|
1591
1566
|
employeeName: string | null;
|
|
1592
1567
|
visitTimeFrom: string | null;
|
|
1593
1568
|
visitTimeTo: string | null;
|
|
@@ -1628,7 +1603,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1628
1603
|
affiliation: string | null;
|
|
1629
1604
|
}[];
|
|
1630
1605
|
userId: string;
|
|
1631
|
-
sourceType: string | null;
|
|
1632
1606
|
employeeName: string | null;
|
|
1633
1607
|
visitTimeFrom: string | null;
|
|
1634
1608
|
visitTimeTo: string | null;
|
|
@@ -1676,7 +1650,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1676
1650
|
affiliation: string | null;
|
|
1677
1651
|
}[];
|
|
1678
1652
|
userId: string;
|
|
1679
|
-
sourceType: string | null;
|
|
1680
1653
|
employeeName: string | null;
|
|
1681
1654
|
visitTimeFrom: string | null;
|
|
1682
1655
|
visitTimeTo: string | null;
|
|
@@ -1723,7 +1696,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1723
1696
|
affiliation: string | null;
|
|
1724
1697
|
}[];
|
|
1725
1698
|
userId: string;
|
|
1726
|
-
sourceType: string | null;
|
|
1727
1699
|
employeeName: string | null;
|
|
1728
1700
|
visitTimeFrom: string | null;
|
|
1729
1701
|
visitTimeTo: string | null;
|
|
@@ -1754,7 +1726,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1754
1726
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
1755
1727
|
author: z.ZodString;
|
|
1756
1728
|
userId: z.ZodString;
|
|
1757
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
1758
1729
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
1759
1730
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
1760
1731
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1846,7 +1817,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1846
1817
|
affiliation: string | null;
|
|
1847
1818
|
}[];
|
|
1848
1819
|
userId: string;
|
|
1849
|
-
sourceType: string | null;
|
|
1850
1820
|
employeeName: string | null;
|
|
1851
1821
|
visitTimeFrom: string | null;
|
|
1852
1822
|
visitTimeTo: string | null;
|
|
@@ -1887,7 +1857,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1887
1857
|
affiliation: string | null;
|
|
1888
1858
|
}[];
|
|
1889
1859
|
userId: string;
|
|
1890
|
-
sourceType: string | null;
|
|
1891
1860
|
employeeName: string | null;
|
|
1892
1861
|
visitTimeFrom: string | null;
|
|
1893
1862
|
visitTimeTo: string | null;
|
|
@@ -1934,7 +1903,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1934
1903
|
affiliation: string | null;
|
|
1935
1904
|
}[];
|
|
1936
1905
|
userId: string;
|
|
1937
|
-
sourceType: string | null;
|
|
1938
1906
|
employeeName: string | null;
|
|
1939
1907
|
visitTimeFrom: string | null;
|
|
1940
1908
|
visitTimeTo: string | null;
|
|
@@ -1980,7 +1948,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1980
1948
|
affiliation: string | null;
|
|
1981
1949
|
}[];
|
|
1982
1950
|
userId: string;
|
|
1983
|
-
sourceType: string | null;
|
|
1984
1951
|
employeeName: string | null;
|
|
1985
1952
|
visitTimeFrom: string | null;
|
|
1986
1953
|
visitTimeTo: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as DailyReportComment, d as DailyReportCommentItem } from './types-
|
|
1
|
+
import { c as DailyReportComment, d as DailyReportCommentItem } from './types-CVhwLhSN.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -95,7 +95,6 @@ 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>;
|
|
99
98
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
100
99
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
101
100
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -187,7 +186,6 @@ declare const dailyReportDetailSchema: z.ZodObject<{
|
|
|
187
186
|
affiliation: string | null;
|
|
188
187
|
}[];
|
|
189
188
|
userId: string;
|
|
190
|
-
sourceType: string | null;
|
|
191
189
|
employeeName: string | null;
|
|
192
190
|
visitTimeFrom: string | null;
|
|
193
191
|
visitTimeTo: string | null;
|
|
@@ -228,7 +226,6 @@ declare const dailyReportDetailSchema: z.ZodObject<{
|
|
|
228
226
|
affiliation: string | null;
|
|
229
227
|
}[];
|
|
230
228
|
userId: string;
|
|
231
|
-
sourceType: string | null;
|
|
232
229
|
employeeName: string | null;
|
|
233
230
|
visitTimeFrom: string | null;
|
|
234
231
|
visitTimeTo: string | null;
|
|
@@ -354,7 +351,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
354
351
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
355
352
|
author: z.ZodString;
|
|
356
353
|
userId: z.ZodString;
|
|
357
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
358
354
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
359
355
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
360
356
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -446,7 +442,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
446
442
|
affiliation: string | null;
|
|
447
443
|
}[];
|
|
448
444
|
userId: string;
|
|
449
|
-
sourceType: string | null;
|
|
450
445
|
employeeName: string | null;
|
|
451
446
|
visitTimeFrom: string | null;
|
|
452
447
|
visitTimeTo: string | null;
|
|
@@ -487,7 +482,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
487
482
|
affiliation: string | null;
|
|
488
483
|
}[];
|
|
489
484
|
userId: string;
|
|
490
|
-
sourceType: string | null;
|
|
491
485
|
employeeName: string | null;
|
|
492
486
|
visitTimeFrom: string | null;
|
|
493
487
|
visitTimeTo: string | null;
|
|
@@ -535,7 +529,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
535
529
|
affiliation: string | null;
|
|
536
530
|
}[];
|
|
537
531
|
userId: string;
|
|
538
|
-
sourceType: string | null;
|
|
539
532
|
employeeName: string | null;
|
|
540
533
|
visitTimeFrom: string | null;
|
|
541
534
|
visitTimeTo: string | null;
|
|
@@ -582,7 +575,6 @@ declare const reportCreateMessageSchema: z.ZodObject<{
|
|
|
582
575
|
affiliation: string | null;
|
|
583
576
|
}[];
|
|
584
577
|
userId: string;
|
|
585
|
-
sourceType: string | null;
|
|
586
578
|
employeeName: string | null;
|
|
587
579
|
visitTimeFrom: string | null;
|
|
588
580
|
visitTimeTo: string | null;
|
|
@@ -614,7 +606,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
614
606
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
615
607
|
author: z.ZodString;
|
|
616
608
|
userId: z.ZodString;
|
|
617
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
618
609
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
619
610
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
620
611
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -706,7 +697,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
706
697
|
affiliation: string | null;
|
|
707
698
|
}[];
|
|
708
699
|
userId: string;
|
|
709
|
-
sourceType: string | null;
|
|
710
700
|
employeeName: string | null;
|
|
711
701
|
visitTimeFrom: string | null;
|
|
712
702
|
visitTimeTo: string | null;
|
|
@@ -747,7 +737,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
747
737
|
affiliation: string | null;
|
|
748
738
|
}[];
|
|
749
739
|
userId: string;
|
|
750
|
-
sourceType: string | null;
|
|
751
740
|
employeeName: string | null;
|
|
752
741
|
visitTimeFrom: string | null;
|
|
753
742
|
visitTimeTo: string | null;
|
|
@@ -795,7 +784,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
795
784
|
affiliation: string | null;
|
|
796
785
|
}[];
|
|
797
786
|
userId: string;
|
|
798
|
-
sourceType: string | null;
|
|
799
787
|
employeeName: string | null;
|
|
800
788
|
visitTimeFrom: string | null;
|
|
801
789
|
visitTimeTo: string | null;
|
|
@@ -842,7 +830,6 @@ declare const reportUpdateMessageSchema: z.ZodObject<{
|
|
|
842
830
|
affiliation: string | null;
|
|
843
831
|
}[];
|
|
844
832
|
userId: string;
|
|
845
|
-
sourceType: string | null;
|
|
846
833
|
employeeName: string | null;
|
|
847
834
|
visitTimeFrom: string | null;
|
|
848
835
|
visitTimeTo: string | null;
|
|
@@ -874,7 +861,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
874
861
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
875
862
|
author: z.ZodString;
|
|
876
863
|
userId: z.ZodString;
|
|
877
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
878
864
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
879
865
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
880
866
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -966,7 +952,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
966
952
|
affiliation: string | null;
|
|
967
953
|
}[];
|
|
968
954
|
userId: string;
|
|
969
|
-
sourceType: string | null;
|
|
970
955
|
employeeName: string | null;
|
|
971
956
|
visitTimeFrom: string | null;
|
|
972
957
|
visitTimeTo: string | null;
|
|
@@ -1007,7 +992,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
1007
992
|
affiliation: string | null;
|
|
1008
993
|
}[];
|
|
1009
994
|
userId: string;
|
|
1010
|
-
sourceType: string | null;
|
|
1011
995
|
employeeName: string | null;
|
|
1012
996
|
visitTimeFrom: string | null;
|
|
1013
997
|
visitTimeTo: string | null;
|
|
@@ -1054,7 +1038,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
1054
1038
|
affiliation: string | null;
|
|
1055
1039
|
}[];
|
|
1056
1040
|
userId: string;
|
|
1057
|
-
sourceType: string | null;
|
|
1058
1041
|
employeeName: string | null;
|
|
1059
1042
|
visitTimeFrom: string | null;
|
|
1060
1043
|
visitTimeTo: string | null;
|
|
@@ -1100,7 +1083,6 @@ declare const reportPublishMessageSchema: z.ZodObject<{
|
|
|
1100
1083
|
affiliation: string | null;
|
|
1101
1084
|
}[];
|
|
1102
1085
|
userId: string;
|
|
1103
|
-
sourceType: string | null;
|
|
1104
1086
|
employeeName: string | null;
|
|
1105
1087
|
visitTimeFrom: string | null;
|
|
1106
1088
|
visitTimeTo: string | null;
|
|
@@ -1236,7 +1218,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1236
1218
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
1237
1219
|
author: z.ZodString;
|
|
1238
1220
|
userId: z.ZodString;
|
|
1239
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
1240
1221
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
1241
1222
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
1242
1223
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1328,7 +1309,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1328
1309
|
affiliation: string | null;
|
|
1329
1310
|
}[];
|
|
1330
1311
|
userId: string;
|
|
1331
|
-
sourceType: string | null;
|
|
1332
1312
|
employeeName: string | null;
|
|
1333
1313
|
visitTimeFrom: string | null;
|
|
1334
1314
|
visitTimeTo: string | null;
|
|
@@ -1369,7 +1349,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1369
1349
|
affiliation: string | null;
|
|
1370
1350
|
}[];
|
|
1371
1351
|
userId: string;
|
|
1372
|
-
sourceType: string | null;
|
|
1373
1352
|
employeeName: string | null;
|
|
1374
1353
|
visitTimeFrom: string | null;
|
|
1375
1354
|
visitTimeTo: string | null;
|
|
@@ -1417,7 +1396,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1417
1396
|
affiliation: string | null;
|
|
1418
1397
|
}[];
|
|
1419
1398
|
userId: string;
|
|
1420
|
-
sourceType: string | null;
|
|
1421
1399
|
employeeName: string | null;
|
|
1422
1400
|
visitTimeFrom: string | null;
|
|
1423
1401
|
visitTimeTo: string | null;
|
|
@@ -1464,7 +1442,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1464
1442
|
affiliation: string | null;
|
|
1465
1443
|
}[];
|
|
1466
1444
|
userId: string;
|
|
1467
|
-
sourceType: string | null;
|
|
1468
1445
|
employeeName: string | null;
|
|
1469
1446
|
visitTimeFrom: string | null;
|
|
1470
1447
|
visitTimeTo: string | null;
|
|
@@ -1495,7 +1472,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1495
1472
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
1496
1473
|
author: z.ZodString;
|
|
1497
1474
|
userId: z.ZodString;
|
|
1498
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
1499
1475
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
1500
1476
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
1501
1477
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1587,7 +1563,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1587
1563
|
affiliation: string | null;
|
|
1588
1564
|
}[];
|
|
1589
1565
|
userId: string;
|
|
1590
|
-
sourceType: string | null;
|
|
1591
1566
|
employeeName: string | null;
|
|
1592
1567
|
visitTimeFrom: string | null;
|
|
1593
1568
|
visitTimeTo: string | null;
|
|
@@ -1628,7 +1603,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1628
1603
|
affiliation: string | null;
|
|
1629
1604
|
}[];
|
|
1630
1605
|
userId: string;
|
|
1631
|
-
sourceType: string | null;
|
|
1632
1606
|
employeeName: string | null;
|
|
1633
1607
|
visitTimeFrom: string | null;
|
|
1634
1608
|
visitTimeTo: string | null;
|
|
@@ -1676,7 +1650,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1676
1650
|
affiliation: string | null;
|
|
1677
1651
|
}[];
|
|
1678
1652
|
userId: string;
|
|
1679
|
-
sourceType: string | null;
|
|
1680
1653
|
employeeName: string | null;
|
|
1681
1654
|
visitTimeFrom: string | null;
|
|
1682
1655
|
visitTimeTo: string | null;
|
|
@@ -1723,7 +1696,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1723
1696
|
affiliation: string | null;
|
|
1724
1697
|
}[];
|
|
1725
1698
|
userId: string;
|
|
1726
|
-
sourceType: string | null;
|
|
1727
1699
|
employeeName: string | null;
|
|
1728
1700
|
visitTimeFrom: string | null;
|
|
1729
1701
|
visitTimeTo: string | null;
|
|
@@ -1754,7 +1726,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1754
1726
|
createdAt: z.ZodNullable<z.ZodString>;
|
|
1755
1727
|
author: z.ZodString;
|
|
1756
1728
|
userId: z.ZodString;
|
|
1757
|
-
sourceType: z.ZodNullable<z.ZodString>;
|
|
1758
1729
|
employeeName: z.ZodNullable<z.ZodString>;
|
|
1759
1730
|
updatedBy: z.ZodNullable<z.ZodString>;
|
|
1760
1731
|
updatedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -1846,7 +1817,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1846
1817
|
affiliation: string | null;
|
|
1847
1818
|
}[];
|
|
1848
1819
|
userId: string;
|
|
1849
|
-
sourceType: string | null;
|
|
1850
1820
|
employeeName: string | null;
|
|
1851
1821
|
visitTimeFrom: string | null;
|
|
1852
1822
|
visitTimeTo: string | null;
|
|
@@ -1887,7 +1857,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1887
1857
|
affiliation: string | null;
|
|
1888
1858
|
}[];
|
|
1889
1859
|
userId: string;
|
|
1890
|
-
sourceType: string | null;
|
|
1891
1860
|
employeeName: string | null;
|
|
1892
1861
|
visitTimeFrom: string | null;
|
|
1893
1862
|
visitTimeTo: string | null;
|
|
@@ -1934,7 +1903,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1934
1903
|
affiliation: string | null;
|
|
1935
1904
|
}[];
|
|
1936
1905
|
userId: string;
|
|
1937
|
-
sourceType: string | null;
|
|
1938
1906
|
employeeName: string | null;
|
|
1939
1907
|
visitTimeFrom: string | null;
|
|
1940
1908
|
visitTimeTo: string | null;
|
|
@@ -1980,7 +1948,6 @@ declare const dailyReportSseMessageSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1980
1948
|
affiliation: string | null;
|
|
1981
1949
|
}[];
|
|
1982
1950
|
userId: string;
|
|
1983
|
-
sourceType: string | null;
|
|
1984
1951
|
employeeName: string | null;
|
|
1985
1952
|
visitTimeFrom: string | null;
|
|
1986
1953
|
visitTimeTo: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiquants/daily-report",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
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/swipe-overlay": "1.2.
|
|
70
|
-
"@aiquants/virtualscroll": "1.18.
|
|
69
|
+
"@aiquants/swipe-overlay": "1.2.4",
|
|
70
|
+
"@aiquants/virtualscroll": "1.18.5"
|
|
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/
|
|
79
|
-
"@aiquants/
|
|
78
|
+
"@aiquants/swipe-overlay": "^1.2.4",
|
|
79
|
+
"@aiquants/virtualscroll": "^1.18.5"
|
|
80
80
|
},
|
|
81
81
|
"peerDependenciesMeta": {
|
|
82
82
|
"drizzle-orm": {
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"dev": "tsup --watch",
|
|
97
97
|
"typecheck": "tsc --noEmit",
|
|
98
98
|
"clean": "rimraf dist",
|
|
99
|
-
"publish:patch": "pnpm version patch --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
|
|
100
|
-
"publish:minor": "pnpm version minor --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
|
|
101
|
-
"publish:major": "pnpm version major --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
|
|
99
|
+
"publish:patch": "pnpm run typecheck && pnpm run --if-present test && pnpm version patch --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
|
|
100
|
+
"publish:minor": "pnpm run typecheck && pnpm run --if-present test && pnpm version minor --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
|
|
101
|
+
"publish:major": "pnpm run typecheck && pnpm run --if-present test && pnpm version major --no-git-tag-version --no-git-checks && pnpm publish --no-git-checks",
|
|
102
102
|
"lint": "biome lint src/",
|
|
103
103
|
"check": "biome check src/",
|
|
104
104
|
"check:fix": "biome check --write src/",
|
|
@@ -19,12 +19,11 @@ 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,
|
|
22
|
+
import { type DailyReportFieldLabels, 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"
|
|
28
27
|
import { EMPTY_ITEM, FAST_SCROLL_INERTIA_OPTIONS, FAST_SCROLL_WHEEL_MULTIPLIER, PREFETCH_LOOKAHEAD, PREFETCH_MAX_DATES, VIRTUAL_SCROLL_OVERSCAN_COUNT } from "../utils/constants"
|
|
29
28
|
import { BusinessDayThumbOverlay } from "./business-day-thumb-overlay"
|
|
30
29
|
import { DailyReportCommentForm, DailyReportCommentList } from "./daily-report-comment-section"
|
|
@@ -439,7 +438,6 @@ const DailyReportHeader = ({
|
|
|
439
438
|
visitTimeDisplay,
|
|
440
439
|
categoryLabel,
|
|
441
440
|
fieldLabels,
|
|
442
|
-
sourceTypeConfigs,
|
|
443
441
|
}: {
|
|
444
442
|
report: DailyReportDetail
|
|
445
443
|
isRead: boolean
|
|
@@ -451,22 +449,8 @@ const DailyReportHeader = ({
|
|
|
451
449
|
visitTimeDisplay: string
|
|
452
450
|
categoryLabel: string
|
|
453
451
|
fieldLabels: DailyReportFieldLabels
|
|
454
|
-
sourceTypeConfigs?: Record<string, SourceTypeConfig>
|
|
455
452
|
}) => (
|
|
456
453
|
<div className="flex flex-wrap items-center gap-2 font-medium text-slate-600 text-xs">
|
|
457
|
-
{(() => {
|
|
458
|
-
const sourceType = report.sourceType
|
|
459
|
-
const sourceConfig = sourceType ? sourceTypeConfigs?.[sourceType] : undefined
|
|
460
|
-
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
|
|
461
|
-
})()}
|
|
462
|
-
<button
|
|
463
|
-
type="button"
|
|
464
|
-
onClick={onToggleStar}
|
|
465
|
-
className="flex h-6 w-6 items-center justify-center rounded-full transition-colors hover:bg-slate-200 focus:outline-none dark:hover:bg-slate-700"
|
|
466
|
-
title={isStarred ? "スターを外す" : "スターを付ける"}
|
|
467
|
-
data-detail-star-button={report.reportHubId}>
|
|
468
|
-
{isStarred ? <Star className="h-3.5 w-3.5 fill-yellow-400 text-yellow-400" /> : <Star className="h-3.5 w-3.5 text-slate-300 dark:text-slate-500" />}
|
|
469
|
-
</button>
|
|
470
454
|
<button
|
|
471
455
|
type="button"
|
|
472
456
|
onClick={onToggleRead}
|
|
@@ -475,6 +459,14 @@ const DailyReportHeader = ({
|
|
|
475
459
|
data-detail-read-button={report.reportHubId}>
|
|
476
460
|
{isRead ? <Check className="h-3.5 w-3.5 text-blue-500" /> : <UnreadIndicator className="text-xs" />}
|
|
477
461
|
</button>
|
|
462
|
+
<button
|
|
463
|
+
type="button"
|
|
464
|
+
onClick={onToggleStar}
|
|
465
|
+
className="flex h-6 w-6 items-center justify-center rounded-full transition-colors hover:bg-slate-200 focus:outline-none dark:hover:bg-slate-700"
|
|
466
|
+
title={isStarred ? "スターを外す" : "スターを付ける"}
|
|
467
|
+
data-detail-star-button={report.reportHubId}>
|
|
468
|
+
{isStarred ? <Star className="h-3.5 w-3.5 fill-yellow-400 text-yellow-400" /> : <Star className="h-3.5 w-3.5 text-slate-300 dark:text-slate-500" />}
|
|
469
|
+
</button>
|
|
478
470
|
{isMine && (
|
|
479
471
|
<button type="button" onClick={onDelete} data-detail-delete-button={report.reportHubId} className="text-lg leading-none transition-transform focus:outline-none active:scale-125" title="削除する">
|
|
480
472
|
<Trash2 className="h-4 w-4 text-slate-300 hover:text-red-500" />
|
|
@@ -484,7 +476,6 @@ const DailyReportHeader = ({
|
|
|
484
476
|
<span className="text-[10px] text-blue-500 uppercase tracking-wide">{fieldLabels.id}</span>
|
|
485
477
|
{report.reportHubId}
|
|
486
478
|
</span>
|
|
487
|
-
|
|
488
479
|
<span className="inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-slate-100 px-3 py-1">
|
|
489
480
|
<span className="text-[10px] text-slate-400 uppercase tracking-wide">{fieldLabels.businessDate}</span>
|
|
490
481
|
{formatToIsoDate(report.date)}
|
|
@@ -560,7 +551,7 @@ const DailyReportResolvedItem = ({ item, report, onCommentAdded, userId, onDoubl
|
|
|
560
551
|
// 表示中ユーザーはアクションコンテキストから取得する (root loader 非依存)
|
|
561
552
|
const { toggleStar, toggleRead, pendingStarUpdates, pendingReadUpdates, deleteReport, user } = useDailyReportActionContext()
|
|
562
553
|
const { uiComments, handleAddComment, handleDeleteComment, pendingDeleteId, setPendingDeleteId, resolvedIdMap } = useDailyReportComments(report, user, userId)
|
|
563
|
-
const { fieldLabels
|
|
554
|
+
const { fieldLabels } = useDailyReportConfig()
|
|
564
555
|
|
|
565
556
|
const handleAddCommentWrapper = async (content: string) => {
|
|
566
557
|
await handleAddComment(content)
|
|
@@ -618,7 +609,6 @@ const DailyReportResolvedItem = ({ item, report, onCommentAdded, userId, onDoubl
|
|
|
618
609
|
visitTimeDisplay={visitTimeDisplay}
|
|
619
610
|
categoryLabel={categoryLabel}
|
|
620
611
|
fieldLabels={fieldLabels}
|
|
621
|
-
sourceTypeConfigs={sourceTypeConfigs}
|
|
622
612
|
/>
|
|
623
613
|
<div className="grid gap-4 md:grid-cols-[minmax(0,1fr)_240px]">
|
|
624
614
|
<div className="flex flex-col gap-4">
|