@clickcns/vmedic-react 0.0.16 → 0.0.18
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/dist/{api → cjs/api}/common/speechs/speech.d.ts +2 -5
- package/dist/{api → cjs/api}/common/user-notifications.d.ts +2 -1
- package/dist/cjs/api/index.js +1 -1
- package/dist/cjs/api/index.js.map +1 -1
- package/dist/cjs/hooks.user-notifications/index.js +1 -1
- package/dist/{types → cjs/types}/api/notifications.d.ts +7 -1
- package/dist/{types → cjs/types}/api/speech.d.ts +7 -1
- package/dist/es/App.d.ts +2 -0
- package/dist/es/api/axios/index.d.ts +1 -0
- package/dist/es/api/axios/initialize-axios.d.ts +11 -0
- package/dist/es/api/common/audio.d.ts +6 -0
- package/dist/es/api/common/auth.d.ts +22 -0
- package/dist/es/api/common/capture-rects.d.ts +12 -0
- package/dist/es/api/common/feedback.d.ts +18 -0
- package/dist/es/api/common/index.d.ts +12 -0
- package/dist/es/api/common/institutions.d.ts +10 -0
- package/dist/es/api/common/llm.d.ts +12 -0
- package/dist/es/api/common/notice.d.ts +8 -0
- package/dist/es/api/common/partners.d.ts +9 -0
- package/dist/es/api/common/push.d.ts +27 -0
- package/dist/es/api/common/speechs/index.d.ts +1 -0
- package/dist/es/api/common/speechs/speech-audios.d.ts +6 -0
- package/dist/es/api/common/speechs/speech-chat.d.ts +17 -0
- package/dist/es/api/common/speechs/speech-patients.d.ts +7 -0
- package/dist/es/api/common/speechs/speech-record-datas.d.ts +4 -0
- package/dist/es/api/common/speechs/speech-records.d.ts +27 -0
- package/dist/es/api/common/speechs/speech.d.ts +67 -0
- package/dist/es/api/common/user-notifications.d.ts +11 -0
- package/dist/es/api/common/user-settings.d.ts +5 -0
- package/dist/es/api/index.d.ts +2 -0
- package/dist/es/api/index.js +1 -4
- package/dist/es/api/index.js.map +1 -1
- package/dist/es/hooks/feedbacks/index.d.ts +10 -0
- package/dist/es/hooks/index.d.ts +1 -0
- package/dist/es/hooks/useTest.d.ts +8 -0
- package/dist/es/hooks/user-notifications/index.d.ts +7 -0
- package/dist/es/hooks.user-notifications/index.js +1 -1
- package/dist/es/index.d.ts +1 -0
- package/dist/es/lib/utils/index.d.ts +1 -0
- package/dist/es/lib/utils/utils.d.ts +2 -0
- package/dist/es/main.d.ts +0 -0
- package/dist/es/shadcn-ui/button.d.ts +10 -0
- package/dist/es/shadcn-ui/checkbox.d.ts +4 -0
- package/dist/es/shadcn-ui/combobox.d.ts +16 -0
- package/dist/es/shadcn-ui/command.d.ts +80 -0
- package/dist/es/shadcn-ui/dialog.d.ts +15 -0
- package/dist/es/shadcn-ui/drawer.d.ts +22 -0
- package/dist/es/shadcn-ui/field.d.ts +24 -0
- package/dist/es/shadcn-ui/hover-card.d.ts +6 -0
- package/dist/es/shadcn-ui/index.d.ts +20 -0
- package/dist/es/shadcn-ui/input.d.ts +3 -0
- package/dist/es/shadcn-ui/kbd.d.ts +3 -0
- package/dist/es/shadcn-ui/label.d.ts +4 -0
- package/dist/es/shadcn-ui/pagination.d.ts +32 -0
- package/dist/es/shadcn-ui/popover.d.ts +7 -0
- package/dist/es/shadcn-ui/resizable.d.ts +23 -0
- package/dist/es/shadcn-ui/scroll-area.d.ts +5 -0
- package/dist/es/shadcn-ui/separator.d.ts +4 -0
- package/dist/es/shadcn-ui/sheet.d.ts +25 -0
- package/dist/es/shadcn-ui/slider.d.ts +4 -0
- package/dist/es/shadcn-ui/textarea.d.ts +3 -0
- package/dist/es/shadcn-ui/tooltip.d.ts +7 -0
- package/dist/es/types/api/auth.d.ts +35 -0
- package/dist/es/types/api/capture-rects.d.ts +29 -0
- package/dist/es/types/api/feedback.d.ts +61 -0
- package/dist/es/types/api/index.d.ts +14 -0
- package/dist/es/types/api/institution.d.ts +7 -0
- package/dist/es/types/api/llm/chat.d.ts +62 -0
- package/dist/es/types/api/llm/diarization.d.ts +30 -0
- package/dist/es/types/api/llm/disease-recommendation.d.ts +13 -0
- package/dist/es/types/api/llm/index.d.ts +5 -0
- package/dist/es/types/api/llm/medical-summary.d.ts +15 -0
- package/dist/es/types/api/llm/mindmap.d.ts +7 -0
- package/dist/es/types/api/notice.d.ts +39 -0
- package/dist/es/types/api/notifications.d.ts +17 -0
- package/dist/es/types/api/partners.d.ts +42 -0
- package/dist/es/types/api/push.d.ts +14 -0
- package/dist/es/types/api/records.d.ts +49 -0
- package/dist/es/types/api/speech.d.ts +93 -0
- package/dist/es/types/api/transcript.d.ts +10 -0
- package/dist/es/types/api/user-setting.d.ts +23 -0
- package/dist/es/types/index.d.ts +2 -0
- package/dist/es/types/sio/base-response.dto.d.ts +4 -0
- package/dist/es/types/sio/index.d.ts +3 -0
- package/dist/es/types/sio/patient-info.dto.d.ts +4 -0
- package/dist/es/types/sio/ping-to-agent-response.dto.d.ts +5 -0
- package/dist/es/ui/feedbacks/FeedbackDetailPageContent.d.ts +29 -0
- package/dist/es/ui/feedbacks/components/CommentActions.d.ts +6 -0
- package/dist/es/ui/feedbacks/components/CommentEditor.d.ts +19 -0
- package/dist/es/ui/feedbacks/components/CommentItem.d.ts +21 -0
- package/dist/es/ui/feedbacks/components/CommentSection.d.ts +25 -0
- package/dist/es/ui/feedbacks/components/FeedbackBody.d.ts +16 -0
- package/dist/es/ui/feedbacks/components/FeedbackHeader.d.ts +11 -0
- package/dist/es/ui/feedbacks/components/index.d.ts +6 -0
- package/dist/es/ui/feedbacks/hooks/index.d.ts +1 -0
- package/dist/es/ui/feedbacks/hooks/useCommentEditor.d.ts +10 -0
- package/dist/es/ui/feedbacks/index.d.ts +1 -0
- package/dist/es/ui/feedbacks/utils/focusEditor.d.ts +6 -0
- package/dist/es/ui/feedbacks/utils/index.d.ts +1 -0
- package/dist/es/ui/index.d.ts +1 -0
- package/dist/user-notifications-Bh5Z6eqH.cjs +2 -0
- package/dist/user-notifications-Bh5Z6eqH.cjs.map +1 -0
- package/dist/{user-notifications-DbJeK8gS.js → user-notifications-CQ6PTkS2.js} +5 -4
- package/dist/user-notifications-CQ6PTkS2.js.map +1 -0
- package/package.json +11 -3
- package/dist/user-notifications-DbJeK8gS.js.map +0 -1
- package/dist/user-notifications-eaEdb3_1.cjs +0 -2
- package/dist/user-notifications-eaEdb3_1.cjs.map +0 -1
- /package/dist/{App.d.ts → cjs/App.d.ts} +0 -0
- /package/dist/{api → cjs/api}/axios/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/axios/initialize-axios.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/audio.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/auth.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/capture-rects.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/feedback.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/institutions.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/llm.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/notice.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/partners.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/push.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/index.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-audios.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-chat.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-patients.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-record-datas.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/speechs/speech-records.d.ts +0 -0
- /package/dist/{api → cjs/api}/common/user-settings.d.ts +0 -0
- /package/dist/{api → cjs/api}/index.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/feedbacks/index.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/useTest.d.ts +0 -0
- /package/dist/{hooks → cjs/hooks}/user-notifications/index.d.ts +0 -0
- /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
- /package/dist/{lib → cjs/lib}/utils/index.d.ts +0 -0
- /package/dist/{lib → cjs/lib}/utils/utils.d.ts +0 -0
- /package/dist/{main.d.ts → cjs/main.d.ts} +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/button.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/checkbox.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/combobox.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/command.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/dialog.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/drawer.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/field.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/hover-card.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/index.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/input.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/kbd.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/label.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/pagination.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/popover.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/resizable.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/scroll-area.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/separator.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/sheet.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/slider.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/textarea.d.ts +0 -0
- /package/dist/{shadcn-ui → cjs/shadcn-ui}/tooltip.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/auth.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/capture-rects.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/feedback.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/index.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/institution.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/chat.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/diarization.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/disease-recommendation.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/index.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/medical-summary.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/llm/mindmap.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/notice.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/partners.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/push.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/records.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/transcript.d.ts +0 -0
- /package/dist/{types → cjs/types}/api/user-setting.d.ts +0 -0
- /package/dist/{types → cjs/types}/index.d.ts +0 -0
- /package/dist/{types → cjs/types}/sio/base-response.dto.d.ts +0 -0
- /package/dist/{types → cjs/types}/sio/index.d.ts +0 -0
- /package/dist/{types → cjs/types}/sio/patient-info.dto.d.ts +0 -0
- /package/dist/{types → cjs/types}/sio/ping-to-agent-response.dto.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/FeedbackDetailPageContent.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/CommentActions.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/CommentEditor.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/CommentItem.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/CommentSection.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/FeedbackBody.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/FeedbackHeader.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/components/index.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/hooks/index.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/hooks/useCommentEditor.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/index.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/utils/focusEditor.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/feedbacks/utils/index.d.ts +0 -0
- /package/dist/{ui → cjs/ui}/index.d.ts +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
|
|
5
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
8
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const sheetVariants: (props?: ({
|
|
10
|
+
side?: "top" | "right" | "bottom" | "left" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
|
+
}
|
|
14
|
+
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const SheetHeader: {
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
declare const SheetFooter: {
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
3
|
+
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export { Slider };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Institution } from './institution';
|
|
2
|
+
export interface UserDto {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
username: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
ykiho?: string;
|
|
9
|
+
key: string;
|
|
10
|
+
role: "admin" | "user";
|
|
11
|
+
createdAt: Date | null;
|
|
12
|
+
updatedAt: Date | null;
|
|
13
|
+
institution?: Institution;
|
|
14
|
+
partnerId?: string | null;
|
|
15
|
+
}
|
|
16
|
+
export interface Tokens {
|
|
17
|
+
accessToken: string;
|
|
18
|
+
}
|
|
19
|
+
export interface AuthResponse {
|
|
20
|
+
tokens: Tokens;
|
|
21
|
+
user: UserDto;
|
|
22
|
+
}
|
|
23
|
+
export interface LoginRequest {
|
|
24
|
+
username: string;
|
|
25
|
+
password: string;
|
|
26
|
+
}
|
|
27
|
+
export interface RegisterRequest {
|
|
28
|
+
username: string;
|
|
29
|
+
password: string;
|
|
30
|
+
ykiho: string;
|
|
31
|
+
name: string;
|
|
32
|
+
email?: string;
|
|
33
|
+
phone?: string;
|
|
34
|
+
role: "user";
|
|
35
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface CaptureOnlyRect {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export interface CaptureRect extends CaptureOnlyRect {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
createdAt?: string;
|
|
11
|
+
updatedAt?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CreateCaptureRectRequest {
|
|
14
|
+
name: string;
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
}
|
|
20
|
+
export interface UpdateCaptureRectRequest {
|
|
21
|
+
name?: string;
|
|
22
|
+
x?: number;
|
|
23
|
+
y?: number;
|
|
24
|
+
width?: number;
|
|
25
|
+
height?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface DeleteCaptureRectResponse {
|
|
28
|
+
message: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export interface FeedbackDetail {
|
|
2
|
+
id: string;
|
|
3
|
+
feedbackId: string;
|
|
4
|
+
title: string;
|
|
5
|
+
body: string;
|
|
6
|
+
recordId?: string;
|
|
7
|
+
recordFileId?: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
updatedAt: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Feedback {
|
|
12
|
+
id: string;
|
|
13
|
+
userId: string;
|
|
14
|
+
status: "pending" | "resolved";
|
|
15
|
+
userName: string;
|
|
16
|
+
institutionName: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
feedbackDetail: FeedbackDetail;
|
|
20
|
+
}
|
|
21
|
+
export interface FeedbackExtended extends Feedback {
|
|
22
|
+
unreadNotificationCount: number;
|
|
23
|
+
}
|
|
24
|
+
export interface FeedbackListResponse {
|
|
25
|
+
feedbacks: FeedbackExtended[];
|
|
26
|
+
currentPage: number;
|
|
27
|
+
totalPages: number;
|
|
28
|
+
totalCount: number;
|
|
29
|
+
}
|
|
30
|
+
export interface FeedbackListRequest {
|
|
31
|
+
page?: number;
|
|
32
|
+
count?: number;
|
|
33
|
+
status?: "pending" | "resolved";
|
|
34
|
+
}
|
|
35
|
+
export interface CreateFeedbackRequest {
|
|
36
|
+
feedbackDetail: {
|
|
37
|
+
title: string;
|
|
38
|
+
body: string;
|
|
39
|
+
recordId?: string;
|
|
40
|
+
recordFileId?: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export interface FeedbackComment {
|
|
44
|
+
id: string;
|
|
45
|
+
feedbackId: string;
|
|
46
|
+
userId: string;
|
|
47
|
+
userName: string;
|
|
48
|
+
isAdmin: boolean;
|
|
49
|
+
body: string;
|
|
50
|
+
refId: string | null;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
children?: FeedbackComment[];
|
|
54
|
+
}
|
|
55
|
+
export interface FeedbackCommentsResponse {
|
|
56
|
+
comments: FeedbackComment[];
|
|
57
|
+
}
|
|
58
|
+
export interface CreateFeedbackCommentRequest {
|
|
59
|
+
body: string;
|
|
60
|
+
refId?: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './speech';
|
|
2
|
+
export * from './auth';
|
|
3
|
+
export * from './capture-rects';
|
|
4
|
+
export * from './feedback';
|
|
5
|
+
export * from './institution';
|
|
6
|
+
export * from './notice';
|
|
7
|
+
export * from './partners';
|
|
8
|
+
export * from './records';
|
|
9
|
+
export * from './transcript';
|
|
10
|
+
export * from './user-setting';
|
|
11
|
+
export * from './llm';
|
|
12
|
+
export * from './push';
|
|
13
|
+
export * from './partners';
|
|
14
|
+
export * from './notifications';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export interface ChatRequest {
|
|
2
|
+
roomId?: string;
|
|
3
|
+
recordId: string;
|
|
4
|
+
humanMessageId: string;
|
|
5
|
+
conversationContent: string;
|
|
6
|
+
currentQuestion?: string;
|
|
7
|
+
action?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ChatResponse {
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
export type ChatHumanStream = {
|
|
13
|
+
type: "human";
|
|
14
|
+
id: string;
|
|
15
|
+
content: string;
|
|
16
|
+
threadId: string;
|
|
17
|
+
};
|
|
18
|
+
export type ChatRoomStream = {
|
|
19
|
+
type: "room";
|
|
20
|
+
id: string;
|
|
21
|
+
};
|
|
22
|
+
export type ChatAiStream = {
|
|
23
|
+
type: "ai";
|
|
24
|
+
id: string;
|
|
25
|
+
content: string;
|
|
26
|
+
threadId: string;
|
|
27
|
+
};
|
|
28
|
+
export type ChatToolStream = {
|
|
29
|
+
type: "tool";
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
input: string;
|
|
33
|
+
content: string;
|
|
34
|
+
threadId: string;
|
|
35
|
+
};
|
|
36
|
+
export type ChatStream = ChatRoomStream | ChatAiStream | ChatToolStream | ChatHumanStream;
|
|
37
|
+
export interface LlmRoom {
|
|
38
|
+
id?: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
createdAt?: Date;
|
|
41
|
+
updatedAt?: Date;
|
|
42
|
+
msgs?: LlmMsg[];
|
|
43
|
+
}
|
|
44
|
+
export interface LlmMsg {
|
|
45
|
+
id: string;
|
|
46
|
+
role: "human" | "ai" | "tool";
|
|
47
|
+
threadId: string;
|
|
48
|
+
text?: LlmText;
|
|
49
|
+
tool?: LlmTool;
|
|
50
|
+
img?: LlmImg;
|
|
51
|
+
}
|
|
52
|
+
export interface LlmText {
|
|
53
|
+
content: string;
|
|
54
|
+
}
|
|
55
|
+
export interface LlmTool {
|
|
56
|
+
name: string;
|
|
57
|
+
input: string;
|
|
58
|
+
content: string;
|
|
59
|
+
}
|
|
60
|
+
export interface LlmImg {
|
|
61
|
+
content: string;
|
|
62
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface DiarizationRequest {
|
|
2
|
+
/**
|
|
3
|
+
* 화자 분리를 수행할 텍스트
|
|
4
|
+
* @example '안녕하세요. 오늘 회의는 어떻게 진행할까요? 네, 먼저 안건부터 정리해보겠습니다.'
|
|
5
|
+
*/
|
|
6
|
+
content: string;
|
|
7
|
+
/**
|
|
8
|
+
* 이전 화자 분리 결과 (선택사항)
|
|
9
|
+
* @example 'A: 안녕하세요. B: 반갑습니다.'
|
|
10
|
+
*/
|
|
11
|
+
previousContext?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DiarizationMessage {
|
|
14
|
+
/**
|
|
15
|
+
* 화자 이름
|
|
16
|
+
* @example 'Speaker A'
|
|
17
|
+
*/
|
|
18
|
+
speaker: string;
|
|
19
|
+
/**
|
|
20
|
+
* 화자의 발화 내용
|
|
21
|
+
* @example '안녕하세요.'
|
|
22
|
+
*/
|
|
23
|
+
content: string;
|
|
24
|
+
}
|
|
25
|
+
export interface DiarizationResponse {
|
|
26
|
+
/**
|
|
27
|
+
* 화자별 메시지 목록
|
|
28
|
+
*/
|
|
29
|
+
messages: DiarizationMessage[];
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DiseaseRecommendationRequestDto {
|
|
2
|
+
conversation: string;
|
|
3
|
+
}
|
|
4
|
+
export interface DiseaseRecommendationResponseDto {
|
|
5
|
+
data: DiseaseRecommendation[];
|
|
6
|
+
message?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DiseaseRecommendation {
|
|
9
|
+
code: string;
|
|
10
|
+
name: string;
|
|
11
|
+
percent: number;
|
|
12
|
+
symptoms: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface MedicalSummaryRequest {
|
|
2
|
+
conversation: string;
|
|
3
|
+
}
|
|
4
|
+
export interface MedicalSummaryPlan {
|
|
5
|
+
medication: string;
|
|
6
|
+
education: string;
|
|
7
|
+
followUp: string;
|
|
8
|
+
}
|
|
9
|
+
export interface MedicalSummaryResponse {
|
|
10
|
+
cc: string;
|
|
11
|
+
subjective: string;
|
|
12
|
+
objective: string;
|
|
13
|
+
assessment: string;
|
|
14
|
+
plan: MedicalSummaryPlan;
|
|
15
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface Notice {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
content: string;
|
|
5
|
+
author: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
published: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface NoticeListItem {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
author: string;
|
|
14
|
+
published: boolean;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
}
|
|
18
|
+
export interface NoticeListResponse {
|
|
19
|
+
notices: NoticeListItem[];
|
|
20
|
+
currentPage: number;
|
|
21
|
+
totalPages: number;
|
|
22
|
+
totalCount: number;
|
|
23
|
+
}
|
|
24
|
+
export interface NoticeListRequest {
|
|
25
|
+
page?: number;
|
|
26
|
+
count?: number;
|
|
27
|
+
searchText?: string;
|
|
28
|
+
showPublishedOnly?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface CreateNoticeRequest {
|
|
31
|
+
title: string;
|
|
32
|
+
content: string;
|
|
33
|
+
published: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface UpdateNoticeRequest {
|
|
36
|
+
title?: string;
|
|
37
|
+
content?: string;
|
|
38
|
+
published?: boolean;
|
|
39
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type UserNotificationTargetType = "feedback" | "notice";
|
|
2
|
+
export interface UserNotification {
|
|
3
|
+
id: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
targetId: string;
|
|
6
|
+
targetType: UserNotificationTargetType;
|
|
7
|
+
title: string;
|
|
8
|
+
isRead: boolean;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
isAlert: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface UserNotificationListResponse extends Array<UserNotification> {
|
|
14
|
+
}
|
|
15
|
+
export interface MarkAsReadRequest {
|
|
16
|
+
targetType: UserNotificationTargetType;
|
|
17
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface PartnerDto {
|
|
2
|
+
id: string;
|
|
3
|
+
representativeName: string;
|
|
4
|
+
businessNumber: string | null;
|
|
5
|
+
companyName: string;
|
|
6
|
+
businessType: string | null;
|
|
7
|
+
businessCategory: string | null;
|
|
8
|
+
postCode: string | null;
|
|
9
|
+
addressName: string | null;
|
|
10
|
+
addressDetail: string | null;
|
|
11
|
+
email: string | null;
|
|
12
|
+
phoneNumber: string | null;
|
|
13
|
+
faxNumber: string | null;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}
|
|
17
|
+
export interface CreatePartnerRequest {
|
|
18
|
+
representativeName: string;
|
|
19
|
+
businessNumber?: string | null;
|
|
20
|
+
companyName: string;
|
|
21
|
+
businessType?: string | null;
|
|
22
|
+
businessCategory?: string | null;
|
|
23
|
+
postCode?: string | null;
|
|
24
|
+
addressName?: string | null;
|
|
25
|
+
addressDetail?: string | null;
|
|
26
|
+
email?: string | null;
|
|
27
|
+
phoneNumber?: string | null;
|
|
28
|
+
faxNumber?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface UpdatePartnerRequest {
|
|
31
|
+
representativeName?: string;
|
|
32
|
+
businessNumber?: string | null;
|
|
33
|
+
companyName?: string;
|
|
34
|
+
businessType?: string | null;
|
|
35
|
+
businessCategory?: string | null;
|
|
36
|
+
postCode?: string | null;
|
|
37
|
+
addressName?: string | null;
|
|
38
|
+
addressDetail?: string | null;
|
|
39
|
+
email?: string | null;
|
|
40
|
+
phoneNumber?: string | null;
|
|
41
|
+
faxNumber?: string | null;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface SendNotificationRequest {
|
|
2
|
+
title: string;
|
|
3
|
+
body: string;
|
|
4
|
+
tag: string;
|
|
5
|
+
data: {
|
|
6
|
+
url: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface PushSubscriptionResponse {
|
|
10
|
+
id: string;
|
|
11
|
+
endpoint: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { UserDto } from './auth';
|
|
2
|
+
import { DiarizationMessage, LlmRoom, MedicalSummaryResponse } from './llm';
|
|
3
|
+
import { AudioFile, Patient } from './speech';
|
|
4
|
+
export interface RecordsResponse {
|
|
5
|
+
id: string;
|
|
6
|
+
chart: string;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
updatedAt: Date;
|
|
9
|
+
userId: string;
|
|
10
|
+
ykiho: string | null;
|
|
11
|
+
patient: Patient;
|
|
12
|
+
user?: UserDto;
|
|
13
|
+
llmRooms?: LlmRoom[];
|
|
14
|
+
audioFiles?: AudioFile[];
|
|
15
|
+
recordData?: Partial<RecordData> | null;
|
|
16
|
+
}
|
|
17
|
+
export interface RecordData {
|
|
18
|
+
id: string;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
recordId: string;
|
|
21
|
+
medicalSummary: MedicalSummaryResponse | null;
|
|
22
|
+
speakerDiarization: DiarizationMessage[] | null;
|
|
23
|
+
}
|
|
24
|
+
export interface RecordsPageRequest {
|
|
25
|
+
page: number;
|
|
26
|
+
count: number;
|
|
27
|
+
searchText?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface RecordsWithPageResponse {
|
|
30
|
+
records: RecordsResponse[];
|
|
31
|
+
totalCount: number;
|
|
32
|
+
totalPages: number;
|
|
33
|
+
currentPage: number;
|
|
34
|
+
}
|
|
35
|
+
export interface GetRecordsByDatesRequest {
|
|
36
|
+
startDate: string;
|
|
37
|
+
endDate: string;
|
|
38
|
+
page: number;
|
|
39
|
+
searchText?: string;
|
|
40
|
+
ykiho?: string;
|
|
41
|
+
username?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface GetRecordsByDatesResponse {
|
|
44
|
+
totalCount: number;
|
|
45
|
+
audioFileCount: number;
|
|
46
|
+
avgDurationSeconds: number;
|
|
47
|
+
totalDurationSeconds: number;
|
|
48
|
+
records: RecordsResponse[];
|
|
49
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { LlmRoom } from './llm/chat';
|
|
2
|
+
import { RecordsResponse } from './records';
|
|
3
|
+
import { Transcript } from './transcript';
|
|
4
|
+
export interface TranscribeV3Response {
|
|
5
|
+
transcript: string;
|
|
6
|
+
language: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TranscribeWithTranslationResponse {
|
|
9
|
+
transcripts: Transcript[];
|
|
10
|
+
}
|
|
11
|
+
export interface UploadBlobs {
|
|
12
|
+
vadBuffer: ArrayBuffer | undefined;
|
|
13
|
+
totalBuffer: ArrayBuffer;
|
|
14
|
+
opusBlob: Blob;
|
|
15
|
+
duration: number;
|
|
16
|
+
startTime?: number;
|
|
17
|
+
endTime?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface UploadRequest extends UploadBlobs {
|
|
20
|
+
chart: string;
|
|
21
|
+
transcript: string;
|
|
22
|
+
recordId?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface PromptResult {
|
|
25
|
+
title: string;
|
|
26
|
+
result: string;
|
|
27
|
+
seq: number;
|
|
28
|
+
}
|
|
29
|
+
export interface UploadV3Request {
|
|
30
|
+
opusBlob: ArrayBuffer | Blob;
|
|
31
|
+
chart: string;
|
|
32
|
+
transcript: string;
|
|
33
|
+
transcripts: Transcript[];
|
|
34
|
+
promptResults?: PromptResult[];
|
|
35
|
+
durationSeconds: number;
|
|
36
|
+
recordId?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface UploadResponse {
|
|
39
|
+
record: Partial<RecordsResponse>;
|
|
40
|
+
audioFiles: AudioFile[];
|
|
41
|
+
isFirstUpload?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface ActivateRecordInfo extends Partial<Omit<RecordsResponse, "llmRooms">> {
|
|
44
|
+
llmRoom?: LlmRoom;
|
|
45
|
+
}
|
|
46
|
+
export interface AudioFile {
|
|
47
|
+
id: string;
|
|
48
|
+
recordId: string;
|
|
49
|
+
bucket: string;
|
|
50
|
+
objectKey: string;
|
|
51
|
+
fileSize: string;
|
|
52
|
+
durationSeconds: number;
|
|
53
|
+
mimeType: string;
|
|
54
|
+
updatedAt: Date;
|
|
55
|
+
transcripts?: AudioTranscript[];
|
|
56
|
+
}
|
|
57
|
+
export interface AudioTranscript {
|
|
58
|
+
id: string;
|
|
59
|
+
transcript: string;
|
|
60
|
+
language: string;
|
|
61
|
+
translatedText: string;
|
|
62
|
+
translatedLanguage: string;
|
|
63
|
+
audioFileId: string;
|
|
64
|
+
start: number;
|
|
65
|
+
end: number;
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
}
|
|
68
|
+
export interface ChatRoomsResponse {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
createdAt: Date;
|
|
72
|
+
updatedAt: Date;
|
|
73
|
+
}
|
|
74
|
+
export interface Patient {
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
ykiho: string;
|
|
78
|
+
chart: string;
|
|
79
|
+
}
|
|
80
|
+
export interface UpsertPatientRequest {
|
|
81
|
+
chart: string;
|
|
82
|
+
name?: string;
|
|
83
|
+
}
|
|
84
|
+
export type ResummaryPart = "cc" | "subjective" | "objective" | "assessment" | "plan";
|
|
85
|
+
export interface ResummaryPartRequest {
|
|
86
|
+
recordId: string;
|
|
87
|
+
level: number;
|
|
88
|
+
part: ResummaryPart;
|
|
89
|
+
}
|
|
90
|
+
export interface UpsertPatientRequest {
|
|
91
|
+
chart: string;
|
|
92
|
+
name?: string;
|
|
93
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface BaseUpsertUserSettingRequest {
|
|
2
|
+
language: "ko" | "en";
|
|
3
|
+
ccSummaryLevel: number;
|
|
4
|
+
subjectiveSummaryLevel: number;
|
|
5
|
+
objectiveSummaryLevel: number;
|
|
6
|
+
assessmentSummaryLevel: number;
|
|
7
|
+
planSummaryLevel: number;
|
|
8
|
+
fileStorageType: "local" | "s3" | "localAndS3";
|
|
9
|
+
includeSummaryTitleOnCopy: boolean;
|
|
10
|
+
ccCustomLevelPrompt?: string;
|
|
11
|
+
sCustomLevelPrompt?: string;
|
|
12
|
+
oCustomLevelPrompt?: string;
|
|
13
|
+
aCustomLevelPrompt?: string;
|
|
14
|
+
pCustomLevelPrompt?: string;
|
|
15
|
+
useAutoRecord?: boolean;
|
|
16
|
+
ex_useProofreading?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export type UpsertUserSettingRequest = Partial<BaseUpsertUserSettingRequest>;
|
|
19
|
+
export interface UserSetting extends BaseUpsertUserSettingRequest {
|
|
20
|
+
id: string;
|
|
21
|
+
userId: string;
|
|
22
|
+
}
|
|
23
|
+
export {};
|