@aiquants/daily-report 0.43.0 → 0.44.1
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/CHANGELOG.md +178 -0
- package/README.md +211 -86
- package/dist/client.d.mts +11 -25
- package/dist/client.d.ts +11 -25
- package/dist/client.js +5 -5
- package/dist/client.mjs +5 -5
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/instrumentation-CobsTeyw.d.mts +70 -0
- package/dist/instrumentation-Dz7Uh7dT.d.ts +70 -0
- package/dist/{search-marks-wire-BSS2d1t6.d.ts → search-marks-wire-BiImBos8.d.mts} +16 -1
- package/dist/{search-marks-wire-BSS2d1t6.d.mts → search-marks-wire-C_vjmxwf.d.ts} +16 -1
- package/dist/server.d.mts +9 -5
- package/dist/server.d.ts +9 -5
- package/dist/server.js +10 -10
- package/dist/server.mjs +10 -10
- package/dist/{source-types-Bu-_yfcY.d.ts → source-types-Cg7T2dm6.d.ts} +1 -1
- package/dist/{source-types-NkQm-gNO.d.mts → source-types-Hy_znWJl.d.mts} +1 -1
- package/dist/{sse-schema-Br0b278w.d.mts → sse-schema-BcjRPJjN.d.ts} +2 -75
- package/dist/{sse-schema-Br0b278w.d.ts → sse-schema-sKBorzg9.d.mts} +2 -75
- package/dist/styles/daily-report.standalone.css +1 -1
- package/dist/testing.d.mts +39 -0
- package/dist/testing.d.ts +39 -0
- package/dist/testing.js +1 -0
- package/dist/testing.mjs +1 -0
- package/dist/types-BP1kIGMo.d.mts +75 -0
- package/dist/types-BP1kIGMo.d.ts +75 -0
- package/package.json +8 -3
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
type DailyReportItem = {
|
|
2
|
+
reportHubId: number;
|
|
3
|
+
businessDate: string | null;
|
|
4
|
+
sourceType?: string;
|
|
5
|
+
};
|
|
6
|
+
type DailyReportInterviewer = {
|
|
7
|
+
name?: string | null;
|
|
8
|
+
affiliation?: string | null;
|
|
9
|
+
};
|
|
10
|
+
type DailyReportExternalComment = {
|
|
11
|
+
name?: string | null;
|
|
12
|
+
text?: string | null;
|
|
13
|
+
color?: string | null;
|
|
14
|
+
};
|
|
15
|
+
type DailyReportLabelDef = {
|
|
16
|
+
id: number;
|
|
17
|
+
name?: string | null;
|
|
18
|
+
color?: string | null;
|
|
19
|
+
};
|
|
20
|
+
type DailyReportAttachmentState = "present" | "absent" | "unknown";
|
|
21
|
+
type DailyReportAttachmentSummary = {
|
|
22
|
+
id: string;
|
|
23
|
+
fileName: string;
|
|
24
|
+
fileType: string | null;
|
|
25
|
+
fileSize: number | null;
|
|
26
|
+
createdAt: string | null;
|
|
27
|
+
state: DailyReportAttachmentState;
|
|
28
|
+
hasThumbnail: boolean;
|
|
29
|
+
};
|
|
30
|
+
type DailyReportPostedComment = {
|
|
31
|
+
id: number;
|
|
32
|
+
userId?: string | null;
|
|
33
|
+
userName?: string | null;
|
|
34
|
+
content?: string | null;
|
|
35
|
+
createdAt?: string | null;
|
|
36
|
+
isMine: boolean;
|
|
37
|
+
};
|
|
38
|
+
type DailyReportDetail = {
|
|
39
|
+
reportHubId: number;
|
|
40
|
+
date?: string | null;
|
|
41
|
+
createdAt?: string | null;
|
|
42
|
+
author?: string | null;
|
|
43
|
+
userId?: string | null;
|
|
44
|
+
sourceType?: string | null;
|
|
45
|
+
employeeName?: string | null;
|
|
46
|
+
updatedBy?: string | null;
|
|
47
|
+
updatedAt?: string | null;
|
|
48
|
+
category?: string | null;
|
|
49
|
+
creationCategory?: string | null;
|
|
50
|
+
visitTimeFrom?: string | null;
|
|
51
|
+
visitTimeTo?: string | null;
|
|
52
|
+
customerName?: string | null;
|
|
53
|
+
interviewers: DailyReportInterviewer[];
|
|
54
|
+
subject?: string | null;
|
|
55
|
+
content?: string | null;
|
|
56
|
+
externalComments: DailyReportExternalComment[];
|
|
57
|
+
isRead: boolean;
|
|
58
|
+
isStarred: boolean;
|
|
59
|
+
isDraft: boolean;
|
|
60
|
+
labels: DailyReportLabelDef[];
|
|
61
|
+
postedComments: DailyReportPostedComment[];
|
|
62
|
+
attachments: DailyReportAttachmentSummary[];
|
|
63
|
+
};
|
|
64
|
+
type DailyReportUser = {
|
|
65
|
+
id: string;
|
|
66
|
+
displayName?: string;
|
|
67
|
+
name?: {
|
|
68
|
+
familyName?: string;
|
|
69
|
+
givenName?: string;
|
|
70
|
+
};
|
|
71
|
+
emails?: {
|
|
72
|
+
value: string;
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
export type { DailyReportItem as D, DailyReportUser as a, DailyReportDetail as b, DailyReportAttachmentState as c, DailyReportAttachmentSummary as d, DailyReportExternalComment as e, DailyReportInterviewer as f, DailyReportLabelDef as g, DailyReportPostedComment as h };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
type DailyReportItem = {
|
|
2
|
+
reportHubId: number;
|
|
3
|
+
businessDate: string | null;
|
|
4
|
+
sourceType?: string;
|
|
5
|
+
};
|
|
6
|
+
type DailyReportInterviewer = {
|
|
7
|
+
name?: string | null;
|
|
8
|
+
affiliation?: string | null;
|
|
9
|
+
};
|
|
10
|
+
type DailyReportExternalComment = {
|
|
11
|
+
name?: string | null;
|
|
12
|
+
text?: string | null;
|
|
13
|
+
color?: string | null;
|
|
14
|
+
};
|
|
15
|
+
type DailyReportLabelDef = {
|
|
16
|
+
id: number;
|
|
17
|
+
name?: string | null;
|
|
18
|
+
color?: string | null;
|
|
19
|
+
};
|
|
20
|
+
type DailyReportAttachmentState = "present" | "absent" | "unknown";
|
|
21
|
+
type DailyReportAttachmentSummary = {
|
|
22
|
+
id: string;
|
|
23
|
+
fileName: string;
|
|
24
|
+
fileType: string | null;
|
|
25
|
+
fileSize: number | null;
|
|
26
|
+
createdAt: string | null;
|
|
27
|
+
state: DailyReportAttachmentState;
|
|
28
|
+
hasThumbnail: boolean;
|
|
29
|
+
};
|
|
30
|
+
type DailyReportPostedComment = {
|
|
31
|
+
id: number;
|
|
32
|
+
userId?: string | null;
|
|
33
|
+
userName?: string | null;
|
|
34
|
+
content?: string | null;
|
|
35
|
+
createdAt?: string | null;
|
|
36
|
+
isMine: boolean;
|
|
37
|
+
};
|
|
38
|
+
type DailyReportDetail = {
|
|
39
|
+
reportHubId: number;
|
|
40
|
+
date?: string | null;
|
|
41
|
+
createdAt?: string | null;
|
|
42
|
+
author?: string | null;
|
|
43
|
+
userId?: string | null;
|
|
44
|
+
sourceType?: string | null;
|
|
45
|
+
employeeName?: string | null;
|
|
46
|
+
updatedBy?: string | null;
|
|
47
|
+
updatedAt?: string | null;
|
|
48
|
+
category?: string | null;
|
|
49
|
+
creationCategory?: string | null;
|
|
50
|
+
visitTimeFrom?: string | null;
|
|
51
|
+
visitTimeTo?: string | null;
|
|
52
|
+
customerName?: string | null;
|
|
53
|
+
interviewers: DailyReportInterviewer[];
|
|
54
|
+
subject?: string | null;
|
|
55
|
+
content?: string | null;
|
|
56
|
+
externalComments: DailyReportExternalComment[];
|
|
57
|
+
isRead: boolean;
|
|
58
|
+
isStarred: boolean;
|
|
59
|
+
isDraft: boolean;
|
|
60
|
+
labels: DailyReportLabelDef[];
|
|
61
|
+
postedComments: DailyReportPostedComment[];
|
|
62
|
+
attachments: DailyReportAttachmentSummary[];
|
|
63
|
+
};
|
|
64
|
+
type DailyReportUser = {
|
|
65
|
+
id: string;
|
|
66
|
+
displayName?: string;
|
|
67
|
+
name?: {
|
|
68
|
+
familyName?: string;
|
|
69
|
+
givenName?: string;
|
|
70
|
+
};
|
|
71
|
+
emails?: {
|
|
72
|
+
value: string;
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
export type { DailyReportItem as D, DailyReportUser as a, DailyReportDetail as b, DailyReportAttachmentState as c, DailyReportAttachmentSummary as d, DailyReportExternalComment as e, DailyReportInterviewer as f, DailyReportLabelDef as g, DailyReportPostedComment as h };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiquants/daily-report",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.1",
|
|
4
4
|
"description": "Reusable daily-report feature package: shared types/schemas, React (Router v7 / v8) 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": [
|
|
6
6
|
"**/*.css"
|
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"import": "./dist/server.mjs",
|
|
25
25
|
"require": "./dist/server.js"
|
|
26
26
|
},
|
|
27
|
+
"./testing": {
|
|
28
|
+
"types": "./dist/testing.d.ts",
|
|
29
|
+
"import": "./dist/testing.mjs",
|
|
30
|
+
"require": "./dist/testing.js"
|
|
31
|
+
},
|
|
27
32
|
"./styles/daily-report.standalone.css": "./dist/styles/daily-report.standalone.css"
|
|
28
33
|
},
|
|
29
34
|
"files": [
|
|
@@ -62,7 +67,7 @@
|
|
|
62
67
|
"devDependencies": {
|
|
63
68
|
"@aiquants/resize-panels": "^2.1.0",
|
|
64
69
|
"@aiquants/swipe-overlay": "^1.2.5",
|
|
65
|
-
"@aiquants/virtualscroll": "^3.
|
|
70
|
+
"@aiquants/virtualscroll": "^3.18.0",
|
|
66
71
|
"@tailwindcss/cli": "^4.1.18",
|
|
67
72
|
"@testing-library/jest-dom": "^6.9.1",
|
|
68
73
|
"@testing-library/react": "^16.3.2",
|
|
@@ -86,7 +91,7 @@
|
|
|
86
91
|
"peerDependencies": {
|
|
87
92
|
"@aiquants/resize-panels": "^2.1.0",
|
|
88
93
|
"@aiquants/swipe-overlay": "^1.2.5",
|
|
89
|
-
"@aiquants/virtualscroll": "^3.
|
|
94
|
+
"@aiquants/virtualscroll": "^3.18.0",
|
|
90
95
|
"drizzle-orm": ">=1.0.0-beta.4 <2.0.0",
|
|
91
96
|
"react": ">=19",
|
|
92
97
|
"react-dom": ">=19",
|