@daeryun/dr_components 1.2.17 → 1.2.19
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/components/Daeryuntalk/ChatButton.jsx +1 -1
- package/dist/components/Daeryuntalk/ChatButton.tsx +1 -1
- package/dist/components/Daeryuntalk/ChatWidget.d.ts +1 -0
- package/dist/components/Daeryuntalk/ChatWidget.jsx +114 -31
- package/dist/components/Daeryuntalk/ChatWidget.tsx +120 -37
- package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +0 -9
- package/dist/components/Daeryuntalk/index.jsx +17 -1
- package/dist/components/Daeryuntalk/index.tsx +26 -2
- package/dist/components/DaeryuntalkBackup/ChatButton.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/ChatButton.jsx +123 -0
- package/dist/components/DaeryuntalkBackup/ChatButton.tsx +157 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.d.ts +21 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.jsx +259 -0
- package/dist/components/DaeryuntalkBackup/ChatConversation.tsx +390 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.d.ts +16 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.jsx +50 -0
- package/dist/components/DaeryuntalkBackup/ChatConversationItem/ChatConversationHeader.tsx +108 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.d.ts +14 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.jsx +147 -0
- package/dist/components/DaeryuntalkBackup/ChatHomeView.tsx +262 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.jsx +64 -0
- package/dist/components/DaeryuntalkBackup/ChatInput.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.jsx +19 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/AgeCheckBox.tsx +27 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.jsx +165 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatFile.tsx +244 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatLoading.tsx +25 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.jsx +100 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatPrivacyAuth.tsx +135 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.jsx +14 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/ChatWrapper.tsx +26 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.jsx +37 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/RichText.tsx +45 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.jsx +10 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TimeWrapper.tsx +21 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.d.ts +3 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.jsx +34 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/TypingComp.tsx +43 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.jsx +20 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowAuthForm.tsx +32 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.jsx +21 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowClickData.tsx +37 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.jsx +178 -0
- package/dist/components/DaeryuntalkBackup/ChatItem/WorkFlowImg.tsx +233 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.d.ts +20 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.jsx +198 -0
- package/dist/components/DaeryuntalkBackup/ChatMessage.tsx +295 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.jsx +39 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/FieldWorkObject.tsx +75 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.jsx +20 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectBack.tsx +39 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.jsx +138 -0
- package/dist/components/DaeryuntalkBackup/ChatObject/ObjectButton.tsx +177 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.jsx +154 -0
- package/dist/components/DaeryuntalkBackup/ChatWidget.tsx +221 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.d.ts +103 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.jsx +207 -0
- package/dist/components/DaeryuntalkBackup/DaeryuntalkContext.tsx +350 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.jsx +14 -0
- package/dist/components/DaeryuntalkBackup/DateSeparator.tsx +24 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.jsx +34 -0
- package/dist/components/DaeryuntalkBackup/FixedErrorBox.tsx +73 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.jsx +157 -0
- package/dist/components/DaeryuntalkBackup/History/AuthForm.tsx +206 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.d.ts +19 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.jsx +94 -0
- package/dist/components/DaeryuntalkBackup/HistoryView.tsx +182 -0
- package/dist/components/DaeryuntalkBackup/HomeView.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/HomeView.jsx +178 -0
- package/dist/components/DaeryuntalkBackup/HomeView.tsx +261 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.jsx +44 -0
- package/dist/components/DaeryuntalkBackup/NavigationFooter.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.jsx +40 -0
- package/dist/components/DaeryuntalkBackup/NoticeMessage.tsx +60 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.jsx +17 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/DisabledInput.tsx +28 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.d.ts +20 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.jsx +130 -0
- package/dist/components/DaeryuntalkBackup/Tiptap/Tiptap.tsx +181 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.d.ts +23 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.jsx +40 -0
- package/dist/components/DaeryuntalkBackup/Toast/DaeryuntalkToastProvider.tsx +70 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.d.ts +11 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.jsx +64 -0
- package/dist/components/DaeryuntalkBackup/Toast/Toast.tsx +98 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.d.ts +1 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.jsx +22 -0
- package/dist/components/DaeryuntalkBackup/Toast/ToastRender.tsx +30 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.jsx +98 -0
- package/dist/components/DaeryuntalkBackup/Viewer/ImageViewer.tsx +138 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.d.ts +18 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.jsx +104 -0
- package/dist/components/DaeryuntalkBackup/Viewer/MobileViewer.tsx +182 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.d.ts +24 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.jsx +141 -0
- package/dist/components/DaeryuntalkBackup/Viewer/TbPcViewer.tsx +278 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.jsx +25 -0
- package/dist/components/DaeryuntalkBackup/ViewportHandler.tsx +32 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.d.ts +177 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.js +801 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/index.ts +1097 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.d.ts +131 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.js +1 -0
- package/dist/components/DaeryuntalkBackup/_api/daeryuntalk/type/response.ts +159 -0
- package/dist/components/DaeryuntalkBackup/_api/index.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_api/index.js +6 -0
- package/dist/components/DaeryuntalkBackup/_api/index.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.d.ts +5 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.js +9 -0
- package/dist/components/DaeryuntalkBackup/_enums/ags_check_status.ts +9 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.js +25 -0
- package/dist/components/DaeryuntalkBackup/_enums/ask-status.ts +26 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.d.ts +109 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.js +254 -0
- package/dist/components/DaeryuntalkBackup/_enums/error.ts +289 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.js +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/message_type.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.js +16 -0
- package/dist/components/DaeryuntalkBackup/_enums/sender_type.ts +16 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.d.ts +34 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.js +46 -0
- package/dist/components/DaeryuntalkBackup/_enums/socket_type.ts +56 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.d.ts +32 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.js +76 -0
- package/dist/components/DaeryuntalkBackup/_enums/template.ts +81 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.d.ts +33 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.js +66 -0
- package/dist/components/DaeryuntalkBackup/_enums/work_flow_object_expose.ts +71 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.d.ts +48 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.js +465 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useChatHandler.ts +595 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.d.ts +1 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.jsx +15 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useFullURL.tsx +17 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.d.ts +24 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.js +112 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useHistoryHandler.ts +144 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.d.ts +44 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.js +534 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useSocketEventHandler.ts +706 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.js +18 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useViewerHook.ts +23 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.d.ts +9 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.js +109 -0
- package/dist/components/DaeryuntalkBackup/_hooks/talkprovider/useWorkFlow.ts +121 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.js +48 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useHoverScrollbar.ts +73 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.js +42 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useScrollShadow.ts +52 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.js +20 -0
- package/dist/components/DaeryuntalkBackup/_hooks/useWindowSize.ts +30 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.d.ts +2 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.js +26 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useChatSocketState.ts +43 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.d.ts +27 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.js +80 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHistoryView.ts +101 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.d.ts +18 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.js +66 -0
- package/dist/components/DaeryuntalkBackup/_hooks/view/useHomeView.ts +75 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.d.ts +7 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.js +103 -0
- package/dist/components/DaeryuntalkBackup/_lib/index.ts +136 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.d.ts +17 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.js +94 -0
- package/dist/components/DaeryuntalkBackup/_lib/utils.ts +119 -0
- package/dist/components/DaeryuntalkBackup/_types/message.d.ts +92 -0
- package/dist/components/DaeryuntalkBackup/_types/message.js +25 -0
- package/dist/components/DaeryuntalkBackup/_types/message.ts +156 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.d.ts +17 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.js +1 -0
- package/dist/components/DaeryuntalkBackup/_types/message_object.ts +18 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.d.ts +15 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.js +1 -0
- package/dist/components/DaeryuntalkBackup/_types/socket/workflow.ts +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.d.ts +6 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.jsx +5 -0
- package/dist/components/DaeryuntalkBackup/_ui/ShadowBox.tsx +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button1.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button2.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button3.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.d.ts +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.jsx +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/buttons/Button4.tsx +29 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.jsx +15 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox1.tsx +38 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.jsx +21 -0
- package/dist/components/DaeryuntalkBackup/_ui/checkboxs/CheckBox2.tsx +50 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.d.ts +12 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.jsx +9 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input1.tsx +39 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.d.ts +13 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.jsx +10 -0
- package/dist/components/DaeryuntalkBackup/_ui/inputs/Input2.tsx +43 -0
- package/dist/components/DaeryuntalkBackup/index.d.ts +8 -0
- package/dist/components/DaeryuntalkBackup/index.jsx +190 -0
- package/dist/components/DaeryuntalkBackup/index.tsx +261 -0
- package/dist/components/banner/TopBanner.jsx +2 -2
- package/dist/components/banner/TopBanner.tsx +4 -2
- package/dist/styles/globals.css +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare enum MessageSocketType {
|
|
2
|
+
/** 새로운 메시지가 생성됨 */
|
|
3
|
+
MESSAGE_CREATED = "message.created",
|
|
4
|
+
/** 기존 메시지가 수정됨 */
|
|
5
|
+
MESSAGE_UPDATED = "message.updated",
|
|
6
|
+
/** 메시지가 회수됨 */
|
|
7
|
+
MESSAGE_COLLECTED = "message.collected",
|
|
8
|
+
/** 문의 목록에서 보여지는 미리보기 정보 갱신 */
|
|
9
|
+
INQUIRY_PREVIEW_UPDATED = "inquiry.preview.updated",
|
|
10
|
+
/** 새로운 문의가 생성됨 */
|
|
11
|
+
INQUIRY_OPENED = "inquiry.opened",
|
|
12
|
+
/** 문의 워크플로우 변경됨 */
|
|
13
|
+
INQUIRY_WORKFLOW_UPDATED = "inquiry.workflow.updated",
|
|
14
|
+
/** 문의가 종료됨 */
|
|
15
|
+
INQUIRY_CLOSED = "inquiry.closed",
|
|
16
|
+
/** 오퍼레이터가 문의에 배정됨 */
|
|
17
|
+
INQUIRY_ASSIGNED = "inquiry.assigned",
|
|
18
|
+
/** 할당된 상담원이 해제됨 */
|
|
19
|
+
INQUIRY_UNASSIGNED = "inquiry.unassigned",
|
|
20
|
+
/** 고객 정보가 갱신됨 */
|
|
21
|
+
CUSTOMER_INFO_UPDATED = "customer.info.updated",
|
|
22
|
+
/** 타이핑중임 */
|
|
23
|
+
TYPING_STARTED = "typing.started",
|
|
24
|
+
/** 유저 인증 만료 */
|
|
25
|
+
USER_EXPIRED = "user.expired"
|
|
26
|
+
}
|
|
27
|
+
export declare enum MessageSendSocketType {
|
|
28
|
+
HEARTBEAT = "heartbeat",
|
|
29
|
+
INQUIRY_WATCHING = "inquiry.watching",
|
|
30
|
+
INQUIRY_JOINED = "inquiry.joined",
|
|
31
|
+
INQUIRY_LEFT = "inquiry.left",
|
|
32
|
+
HISTORY_ENTERED = "history.entered",
|
|
33
|
+
HISTORY_EXITED = "history.exited"
|
|
34
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export var MessageSocketType;
|
|
2
|
+
(function (MessageSocketType) {
|
|
3
|
+
/** 새로운 메시지가 생성됨 */
|
|
4
|
+
MessageSocketType["MESSAGE_CREATED"] = "message.created";
|
|
5
|
+
// -> 메시지 추가 처리
|
|
6
|
+
/** 기존 메시지가 수정됨 */
|
|
7
|
+
MessageSocketType["MESSAGE_UPDATED"] = "message.updated";
|
|
8
|
+
// -> 해당 메시지 수정 처리
|
|
9
|
+
/** 메시지가 회수됨 */
|
|
10
|
+
MessageSocketType["MESSAGE_COLLECTED"] = "message.collected";
|
|
11
|
+
// -> 해당 메시지 UI 삭제 처리
|
|
12
|
+
/** 문의 목록에서 보여지는 미리보기 정보 갱신 */
|
|
13
|
+
MessageSocketType["INQUIRY_PREVIEW_UPDATED"] = "inquiry.preview.updated";
|
|
14
|
+
// -> 미처리
|
|
15
|
+
/** 새로운 문의가 생성됨 */
|
|
16
|
+
MessageSocketType["INQUIRY_OPENED"] = "inquiry.opened";
|
|
17
|
+
// -> 미처리
|
|
18
|
+
/** 문의 워크플로우 변경됨 */
|
|
19
|
+
MessageSocketType["INQUIRY_WORKFLOW_UPDATED"] = "inquiry.workflow.updated";
|
|
20
|
+
// -> 워크플로우 업데이트 처리
|
|
21
|
+
/** 문의가 종료됨 */
|
|
22
|
+
MessageSocketType["INQUIRY_CLOSED"] = "inquiry.closed";
|
|
23
|
+
// -> 미처라
|
|
24
|
+
/** 오퍼레이터가 문의에 배정됨 */
|
|
25
|
+
MessageSocketType["INQUIRY_ASSIGNED"] = "inquiry.assigned";
|
|
26
|
+
// -> 미처라
|
|
27
|
+
/** 할당된 상담원이 해제됨 */
|
|
28
|
+
MessageSocketType["INQUIRY_UNASSIGNED"] = "inquiry.unassigned";
|
|
29
|
+
// -> 미처라
|
|
30
|
+
/** 고객 정보가 갱신됨 */
|
|
31
|
+
MessageSocketType["CUSTOMER_INFO_UPDATED"] = "customer.info.updated";
|
|
32
|
+
// -> 미처라
|
|
33
|
+
/** 타이핑중임 */
|
|
34
|
+
MessageSocketType["TYPING_STARTED"] = "typing.started";
|
|
35
|
+
/** 유저 인증 만료 */
|
|
36
|
+
MessageSocketType["USER_EXPIRED"] = "user.expired";
|
|
37
|
+
})(MessageSocketType || (MessageSocketType = {}));
|
|
38
|
+
export var MessageSendSocketType;
|
|
39
|
+
(function (MessageSendSocketType) {
|
|
40
|
+
MessageSendSocketType["HEARTBEAT"] = "heartbeat";
|
|
41
|
+
MessageSendSocketType["INQUIRY_WATCHING"] = "inquiry.watching";
|
|
42
|
+
MessageSendSocketType["INQUIRY_JOINED"] = "inquiry.joined";
|
|
43
|
+
MessageSendSocketType["INQUIRY_LEFT"] = "inquiry.left";
|
|
44
|
+
MessageSendSocketType["HISTORY_ENTERED"] = "history.entered";
|
|
45
|
+
MessageSendSocketType["HISTORY_EXITED"] = "history.exited";
|
|
46
|
+
})(MessageSendSocketType || (MessageSendSocketType = {}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export enum MessageSocketType {
|
|
2
|
+
/** 새로운 메시지가 생성됨 */
|
|
3
|
+
MESSAGE_CREATED = 'message.created',
|
|
4
|
+
// -> 메시지 추가 처리
|
|
5
|
+
|
|
6
|
+
/** 기존 메시지가 수정됨 */
|
|
7
|
+
MESSAGE_UPDATED = 'message.updated',
|
|
8
|
+
// -> 해당 메시지 수정 처리
|
|
9
|
+
|
|
10
|
+
/** 메시지가 회수됨 */
|
|
11
|
+
MESSAGE_COLLECTED = 'message.collected',
|
|
12
|
+
// -> 해당 메시지 UI 삭제 처리
|
|
13
|
+
|
|
14
|
+
/** 문의 목록에서 보여지는 미리보기 정보 갱신 */
|
|
15
|
+
INQUIRY_PREVIEW_UPDATED = 'inquiry.preview.updated',
|
|
16
|
+
// -> 미처리
|
|
17
|
+
|
|
18
|
+
/** 새로운 문의가 생성됨 */
|
|
19
|
+
INQUIRY_OPENED = 'inquiry.opened',
|
|
20
|
+
// -> 미처리
|
|
21
|
+
|
|
22
|
+
/** 문의 워크플로우 변경됨 */
|
|
23
|
+
INQUIRY_WORKFLOW_UPDATED = 'inquiry.workflow.updated',
|
|
24
|
+
// -> 워크플로우 업데이트 처리
|
|
25
|
+
|
|
26
|
+
/** 문의가 종료됨 */
|
|
27
|
+
INQUIRY_CLOSED = 'inquiry.closed',
|
|
28
|
+
// -> 미처라
|
|
29
|
+
|
|
30
|
+
/** 오퍼레이터가 문의에 배정됨 */
|
|
31
|
+
INQUIRY_ASSIGNED = 'inquiry.assigned',
|
|
32
|
+
// -> 미처라
|
|
33
|
+
|
|
34
|
+
/** 할당된 상담원이 해제됨 */
|
|
35
|
+
INQUIRY_UNASSIGNED = 'inquiry.unassigned',
|
|
36
|
+
// -> 미처라
|
|
37
|
+
|
|
38
|
+
/** 고객 정보가 갱신됨 */
|
|
39
|
+
CUSTOMER_INFO_UPDATED = 'customer.info.updated',
|
|
40
|
+
// -> 미처라
|
|
41
|
+
|
|
42
|
+
/** 타이핑중임 */
|
|
43
|
+
TYPING_STARTED = 'typing.started',
|
|
44
|
+
|
|
45
|
+
/** 유저 인증 만료 */
|
|
46
|
+
USER_EXPIRED = 'user.expired'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export enum MessageSendSocketType {
|
|
50
|
+
HEARTBEAT = 'heartbeat',
|
|
51
|
+
INQUIRY_WATCHING = 'inquiry.watching',
|
|
52
|
+
INQUIRY_JOINED = 'inquiry.joined',
|
|
53
|
+
INQUIRY_LEFT = 'inquiry.left',
|
|
54
|
+
HISTORY_ENTERED = 'history.entered',
|
|
55
|
+
HISTORY_EXITED = 'history.exited'
|
|
56
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare enum InquiryMessageTemplateType {
|
|
2
|
+
SYSTEM_TEMPLATE_1 = "MSP00300001",// 시스템 메시지 템플릿 1 : 고객쪽에 노출되지 않음
|
|
3
|
+
CUSTOMER_TEMPLATE_1 = "MSP00300101",// 사용자 메시지 템플릿 1 이미지랑 파일은 optional / 순서는 : 텍스트 이미지 파일
|
|
4
|
+
WORK_FLOW_TEMPLATE_1 = "MSP00300201",// 워크플로우 메시지 템플릿 1 : 텍스트
|
|
5
|
+
WORK_FLOW_TEMPLATE_2 = "MSP00300202",// 워크플로우 메시지 템플릿 2 : 이미지 + 텍스트 (이미지)
|
|
6
|
+
WORK_FLOW_TEMPLATE_3 = "MSP00300203",// 워크플로우 메시지 템플릿 3 : 아이콘 + 텍스트
|
|
7
|
+
WORK_FLOW_TEMPLATE_4 = "MSP00300204"
|
|
8
|
+
}
|
|
9
|
+
export declare const InquiryMessageTemplateTypeTextMap: Record<InquiryMessageTemplateType, string>;
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* "form": {
|
|
13
|
+
* "type": "개인정보수집",
|
|
14
|
+
* "inputs": [
|
|
15
|
+
* {
|
|
16
|
+
* "type": "text",
|
|
17
|
+
* "label": "이름",
|
|
18
|
+
* "value": "",
|
|
19
|
+
* "read_only": false,
|
|
20
|
+
* "binding_key": "name"
|
|
21
|
+
* },
|
|
22
|
+
* {
|
|
23
|
+
* "type": "text",
|
|
24
|
+
* "label": "휴대폰번호",
|
|
25
|
+
* "value": "",
|
|
26
|
+
* "read_only": false,
|
|
27
|
+
* "binding_key": "cell_phone_number"
|
|
28
|
+
* }
|
|
29
|
+
* ],
|
|
30
|
+
* "submitted_at": null
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// 문의 메시지 템플릿 코드 열거형
|
|
2
|
+
export var InquiryMessageTemplateType;
|
|
3
|
+
(function (InquiryMessageTemplateType) {
|
|
4
|
+
InquiryMessageTemplateType["SYSTEM_TEMPLATE_1"] = "MSP00300001";
|
|
5
|
+
InquiryMessageTemplateType["CUSTOMER_TEMPLATE_1"] = "MSP00300101";
|
|
6
|
+
InquiryMessageTemplateType["WORK_FLOW_TEMPLATE_1"] = "MSP00300201";
|
|
7
|
+
InquiryMessageTemplateType["WORK_FLOW_TEMPLATE_2"] = "MSP00300202";
|
|
8
|
+
InquiryMessageTemplateType["WORK_FLOW_TEMPLATE_3"] = "MSP00300203";
|
|
9
|
+
InquiryMessageTemplateType["WORK_FLOW_TEMPLATE_4"] = "MSP00300204"; // 워크플로우 메시지 템플릿 4 : 텍스트 + form
|
|
10
|
+
})(InquiryMessageTemplateType || (InquiryMessageTemplateType = {}));
|
|
11
|
+
// 문의 메시지 템플릿 텍스트 매핑
|
|
12
|
+
export const InquiryMessageTemplateTypeTextMap = {
|
|
13
|
+
[InquiryMessageTemplateType.SYSTEM_TEMPLATE_1]: '시스템 메시지 템플릿 1',
|
|
14
|
+
[InquiryMessageTemplateType.CUSTOMER_TEMPLATE_1]: '사용자 메시지 템플릿 1',
|
|
15
|
+
[InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_1]: '워크플로우 메시지 템플릿 1',
|
|
16
|
+
[InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_2]: '워크플로우 메시지 템플릿 2',
|
|
17
|
+
[InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_3]: '워크플로우 메시지 템플릿 3',
|
|
18
|
+
[InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_4]: '워크플로우 메시지 템플릿 4'
|
|
19
|
+
};
|
|
20
|
+
// 정렬은 timestamp
|
|
21
|
+
// MSP00300001 0 시스템 메시지 템플릿 1 : 고객쪽에 노출되지 않음
|
|
22
|
+
// MSP00300101 0 사용자 메시지 템플릿 1 : 이미지랑 파일은 optional / 순서는 : 텍스트 이미지 파일
|
|
23
|
+
// MSP00300203 0 워크플로우 메시지 템플릿 1 ; 텍스트
|
|
24
|
+
// MSP00300203 0 워크플로우 메시지 템플릿 2 ; 이미지 + 텍스트 (이미지)
|
|
25
|
+
// MSP00300203 0 워크플로우 메시지 템플릿 3 : 아이콘 + 텍스트
|
|
26
|
+
// MSP00300203 0 워크플로우 메시지 템플릿 4 : 텍스트 + form
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* "form": {
|
|
30
|
+
* "type": "개인정보수집",
|
|
31
|
+
* "inputs": [
|
|
32
|
+
* {
|
|
33
|
+
* "type": "text",
|
|
34
|
+
* "label": "이름",
|
|
35
|
+
* "value": "",
|
|
36
|
+
* "read_only": false,
|
|
37
|
+
* "binding_key": "name"
|
|
38
|
+
* },
|
|
39
|
+
* {
|
|
40
|
+
* "type": "text",
|
|
41
|
+
* "label": "휴대폰번호",
|
|
42
|
+
* "value": "",
|
|
43
|
+
* "read_only": false,
|
|
44
|
+
* "binding_key": "cell_phone_number"
|
|
45
|
+
* }
|
|
46
|
+
* ],
|
|
47
|
+
* "submitted_at": null
|
|
48
|
+
* }
|
|
49
|
+
*/
|
|
50
|
+
// const a = {
|
|
51
|
+
// messageNumber: 'MSG66001562355944269',
|
|
52
|
+
// plainText: '처음으로',
|
|
53
|
+
// senderType: 'MSP00100003', //고객
|
|
54
|
+
// messageType: 'MSP00200003', // 워크플로우 메시지
|
|
55
|
+
// messageStatus: 'CREATED',
|
|
56
|
+
// userKey: '042047.145_293-130eaa95-9090-4b57-bdc1-039aa87250ad',
|
|
57
|
+
// inquiryNumber: 'C4025066717411937562',
|
|
58
|
+
// templateType: 'MSP00300201', // 워크플로우 메시지 템플릿 1
|
|
59
|
+
// createdAt: '2025-07-02T04:43:54.030Z',
|
|
60
|
+
// updatedAt: '2025-07-02T04:43:54.030Z',
|
|
61
|
+
// language: 'ko',
|
|
62
|
+
// timestamp: 1751431434030270,
|
|
63
|
+
// richText: {
|
|
64
|
+
// version: 0,
|
|
65
|
+
// htmlContent: '',
|
|
66
|
+
// structuredData: null
|
|
67
|
+
// },
|
|
68
|
+
// blocks: [
|
|
69
|
+
// {
|
|
70
|
+
// type: 'icon-text',
|
|
71
|
+
// value: '처음으로',
|
|
72
|
+
// iconUrl:
|
|
73
|
+
// 'https://daeryun-chat-inquiry-pub-dev.s3.ap-northeast-2.amazonaws.com/COM00300003/COM00400006/firstpage2_small.png'
|
|
74
|
+
// }
|
|
75
|
+
// ]
|
|
76
|
+
// };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// 문의 메시지 템플릿 코드 열거형
|
|
2
|
+
export enum InquiryMessageTemplateType {
|
|
3
|
+
SYSTEM_TEMPLATE_1 = 'MSP00300001', // 시스템 메시지 템플릿 1 : 고객쪽에 노출되지 않음
|
|
4
|
+
CUSTOMER_TEMPLATE_1 = 'MSP00300101', // 사용자 메시지 템플릿 1 이미지랑 파일은 optional / 순서는 : 텍스트 이미지 파일
|
|
5
|
+
WORK_FLOW_TEMPLATE_1 = 'MSP00300201', // 워크플로우 메시지 템플릿 1 : 텍스트
|
|
6
|
+
WORK_FLOW_TEMPLATE_2 = 'MSP00300202', // 워크플로우 메시지 템플릿 2 : 이미지 + 텍스트 (이미지)
|
|
7
|
+
WORK_FLOW_TEMPLATE_3 = 'MSP00300203', // 워크플로우 메시지 템플릿 3 : 아이콘 + 텍스트
|
|
8
|
+
WORK_FLOW_TEMPLATE_4 = 'MSP00300204' // 워크플로우 메시지 템플릿 4 : 텍스트 + form
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// 문의 메시지 템플릿 텍스트 매핑
|
|
12
|
+
export const InquiryMessageTemplateTypeTextMap: Record<InquiryMessageTemplateType, string> = {
|
|
13
|
+
[InquiryMessageTemplateType.SYSTEM_TEMPLATE_1]: '시스템 메시지 템플릿 1',
|
|
14
|
+
[InquiryMessageTemplateType.CUSTOMER_TEMPLATE_1]: '사용자 메시지 템플릿 1',
|
|
15
|
+
[InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_1]: '워크플로우 메시지 템플릿 1',
|
|
16
|
+
[InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_2]: '워크플로우 메시지 템플릿 2',
|
|
17
|
+
[InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_3]: '워크플로우 메시지 템플릿 3',
|
|
18
|
+
[InquiryMessageTemplateType.WORK_FLOW_TEMPLATE_4]: '워크플로우 메시지 템플릿 4'
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// 정렬은 timestamp
|
|
22
|
+
|
|
23
|
+
// MSP00300001 0 시스템 메시지 템플릿 1 : 고객쪽에 노출되지 않음
|
|
24
|
+
|
|
25
|
+
// MSP00300101 0 사용자 메시지 템플릿 1 : 이미지랑 파일은 optional / 순서는 : 텍스트 이미지 파일
|
|
26
|
+
|
|
27
|
+
// MSP00300203 0 워크플로우 메시지 템플릿 1 ; 텍스트
|
|
28
|
+
// MSP00300203 0 워크플로우 메시지 템플릿 2 ; 이미지 + 텍스트 (이미지)
|
|
29
|
+
// MSP00300203 0 워크플로우 메시지 템플릿 3 : 아이콘 + 텍스트
|
|
30
|
+
// MSP00300203 0 워크플로우 메시지 템플릿 4 : 텍스트 + form
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* "form": {
|
|
34
|
+
* "type": "개인정보수집",
|
|
35
|
+
* "inputs": [
|
|
36
|
+
* {
|
|
37
|
+
* "type": "text",
|
|
38
|
+
* "label": "이름",
|
|
39
|
+
* "value": "",
|
|
40
|
+
* "read_only": false,
|
|
41
|
+
* "binding_key": "name"
|
|
42
|
+
* },
|
|
43
|
+
* {
|
|
44
|
+
* "type": "text",
|
|
45
|
+
* "label": "휴대폰번호",
|
|
46
|
+
* "value": "",
|
|
47
|
+
* "read_only": false,
|
|
48
|
+
* "binding_key": "cell_phone_number"
|
|
49
|
+
* }
|
|
50
|
+
* ],
|
|
51
|
+
* "submitted_at": null
|
|
52
|
+
* }
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
// const a = {
|
|
56
|
+
// messageNumber: 'MSG66001562355944269',
|
|
57
|
+
// plainText: '처음으로',
|
|
58
|
+
// senderType: 'MSP00100003', //고객
|
|
59
|
+
// messageType: 'MSP00200003', // 워크플로우 메시지
|
|
60
|
+
// messageStatus: 'CREATED',
|
|
61
|
+
// userKey: '042047.145_293-130eaa95-9090-4b57-bdc1-039aa87250ad',
|
|
62
|
+
// inquiryNumber: 'C4025066717411937562',
|
|
63
|
+
// templateType: 'MSP00300201', // 워크플로우 메시지 템플릿 1
|
|
64
|
+
// createdAt: '2025-07-02T04:43:54.030Z',
|
|
65
|
+
// updatedAt: '2025-07-02T04:43:54.030Z',
|
|
66
|
+
// language: 'ko',
|
|
67
|
+
// timestamp: 1751431434030270,
|
|
68
|
+
// richText: {
|
|
69
|
+
// version: 0,
|
|
70
|
+
// htmlContent: '',
|
|
71
|
+
// structuredData: null
|
|
72
|
+
// },
|
|
73
|
+
// blocks: [
|
|
74
|
+
// {
|
|
75
|
+
// type: 'icon-text',
|
|
76
|
+
// value: '처음으로',
|
|
77
|
+
// iconUrl:
|
|
78
|
+
// 'https://daeryun-chat-inquiry-pub-dev.s3.ap-northeast-2.amazonaws.com/COM00300003/COM00400006/firstpage2_small.png'
|
|
79
|
+
// }
|
|
80
|
+
// ]
|
|
81
|
+
// };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare enum ObjectNumber {
|
|
2
|
+
FIRST_VISIT = "OB14897658423548P001",
|
|
3
|
+
START_CHAT = "OB14897658423548P002",
|
|
4
|
+
OTHER_RESERVATION = "OB14897658423548P003",
|
|
5
|
+
FAQ = "OB14897658423548P005"
|
|
6
|
+
}
|
|
7
|
+
export declare const ObjectNumberMap: Record<ObjectNumber, string>;
|
|
8
|
+
export declare enum WorkFlowButtonUiCode {
|
|
9
|
+
LEFT_FIT_BUTTON = "WFL01400001",
|
|
10
|
+
FULL_BUTTON = "WFL01400002",
|
|
11
|
+
TILE_BUTTON = "WFL01400003"
|
|
12
|
+
}
|
|
13
|
+
export declare const WorkFlowButtonUiCodeMap: Record<WorkFlowButtonUiCode, string>;
|
|
14
|
+
export declare enum WorkFlowObjectUICode {
|
|
15
|
+
BUTTON = "WFL01000001",
|
|
16
|
+
TEXTBOX = "WFL01000002",
|
|
17
|
+
UNKNOWN = "WFL01000003"
|
|
18
|
+
}
|
|
19
|
+
export declare const WorkFlowObjectUICodeMap: Record<WorkFlowObjectUICode, string>;
|
|
20
|
+
export declare enum WorkFlowBackOrInit {
|
|
21
|
+
BACK = "WFL01300001",
|
|
22
|
+
INIT = "WFL01300002"
|
|
23
|
+
}
|
|
24
|
+
export declare const WorkFlowBackOrInitMap: Record<WorkFlowBackOrInit, string>;
|
|
25
|
+
export declare enum WorkFlowButtonActionType {
|
|
26
|
+
INTERNAL_LINK = "WFL00900001",// 내부링크
|
|
27
|
+
EXTERNAL_LINK = "WFL00900002",// 외부링크
|
|
28
|
+
INPUT = "WFL00900003",// 입력
|
|
29
|
+
WORKFLOW_CALL = "WFL00900004",// 워크플로우호출
|
|
30
|
+
PHONE_CALL = "WFL00900005",// 전화연결
|
|
31
|
+
KAKAO_CONNECT = "WFL00900006"
|
|
32
|
+
}
|
|
33
|
+
export declare const WorkFlowButtonActionMap: Record<WorkFlowButtonActionType, string>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// 워크플로우 관련
|
|
2
|
+
export var ObjectNumber;
|
|
3
|
+
(function (ObjectNumber) {
|
|
4
|
+
ObjectNumber["FIRST_VISIT"] = "OB14897658423548P001";
|
|
5
|
+
ObjectNumber["START_CHAT"] = "OB14897658423548P002";
|
|
6
|
+
ObjectNumber["OTHER_RESERVATION"] = "OB14897658423548P003";
|
|
7
|
+
// ASK_AI = 'OB14897658423548P004',
|
|
8
|
+
ObjectNumber["FAQ"] = "OB14897658423548P005";
|
|
9
|
+
})(ObjectNumber || (ObjectNumber = {}));
|
|
10
|
+
export const ObjectNumberMap = {
|
|
11
|
+
[ObjectNumber.FIRST_VISIT]: '대륜에 처음 방문하셨나요?',
|
|
12
|
+
[ObjectNumber.START_CHAT]: '채팅 문의 시작하기',
|
|
13
|
+
[ObjectNumber.OTHER_RESERVATION]: '다른 예약 방법 보기',
|
|
14
|
+
// [ObjectNumber.ASK_AI]: 'AI 대륜에게 질문하기',
|
|
15
|
+
[ObjectNumber.FAQ]: '자주 묻는 질문'
|
|
16
|
+
};
|
|
17
|
+
export var WorkFlowButtonUiCode;
|
|
18
|
+
(function (WorkFlowButtonUiCode) {
|
|
19
|
+
WorkFlowButtonUiCode["LEFT_FIT_BUTTON"] = "WFL01400001";
|
|
20
|
+
WorkFlowButtonUiCode["FULL_BUTTON"] = "WFL01400002";
|
|
21
|
+
WorkFlowButtonUiCode["TILE_BUTTON"] = "WFL01400003";
|
|
22
|
+
})(WorkFlowButtonUiCode || (WorkFlowButtonUiCode = {}));
|
|
23
|
+
export const WorkFlowButtonUiCodeMap = {
|
|
24
|
+
[WorkFlowButtonUiCode.LEFT_FIT_BUTTON]: '왼쪽 오브젝트 배치',
|
|
25
|
+
[WorkFlowButtonUiCode.FULL_BUTTON]: '가운데 오브젝트 배치',
|
|
26
|
+
[WorkFlowButtonUiCode.TILE_BUTTON]: '타일 오브젝트 배치'
|
|
27
|
+
};
|
|
28
|
+
// 유형
|
|
29
|
+
export var WorkFlowObjectUICode;
|
|
30
|
+
(function (WorkFlowObjectUICode) {
|
|
31
|
+
WorkFlowObjectUICode["BUTTON"] = "WFL01000001";
|
|
32
|
+
WorkFlowObjectUICode["TEXTBOX"] = "WFL01000002";
|
|
33
|
+
WorkFlowObjectUICode["UNKNOWN"] = "WFL01000003";
|
|
34
|
+
})(WorkFlowObjectUICode || (WorkFlowObjectUICode = {}));
|
|
35
|
+
export const WorkFlowObjectUICodeMap = {
|
|
36
|
+
[WorkFlowObjectUICode.BUTTON]: '버튼형',
|
|
37
|
+
[WorkFlowObjectUICode.TEXTBOX]: '텍스트박스형',
|
|
38
|
+
[WorkFlowObjectUICode.UNKNOWN]: ''
|
|
39
|
+
};
|
|
40
|
+
// 뒤로가기 or 처음으로
|
|
41
|
+
export var WorkFlowBackOrInit;
|
|
42
|
+
(function (WorkFlowBackOrInit) {
|
|
43
|
+
WorkFlowBackOrInit["BACK"] = "WFL01300001";
|
|
44
|
+
WorkFlowBackOrInit["INIT"] = "WFL01300002";
|
|
45
|
+
})(WorkFlowBackOrInit || (WorkFlowBackOrInit = {}));
|
|
46
|
+
export const WorkFlowBackOrInitMap = {
|
|
47
|
+
[WorkFlowBackOrInit.BACK]: '이전단계',
|
|
48
|
+
[WorkFlowBackOrInit.INIT]: '최초단계'
|
|
49
|
+
};
|
|
50
|
+
export var WorkFlowButtonActionType;
|
|
51
|
+
(function (WorkFlowButtonActionType) {
|
|
52
|
+
WorkFlowButtonActionType["INTERNAL_LINK"] = "WFL00900001";
|
|
53
|
+
WorkFlowButtonActionType["EXTERNAL_LINK"] = "WFL00900002";
|
|
54
|
+
WorkFlowButtonActionType["INPUT"] = "WFL00900003";
|
|
55
|
+
WorkFlowButtonActionType["WORKFLOW_CALL"] = "WFL00900004";
|
|
56
|
+
WorkFlowButtonActionType["PHONE_CALL"] = "WFL00900005";
|
|
57
|
+
WorkFlowButtonActionType["KAKAO_CONNECT"] = "WFL00900006"; // 카카오연동
|
|
58
|
+
})(WorkFlowButtonActionType || (WorkFlowButtonActionType = {}));
|
|
59
|
+
export const WorkFlowButtonActionMap = {
|
|
60
|
+
[WorkFlowButtonActionType.INTERNAL_LINK]: '내부링크',
|
|
61
|
+
[WorkFlowButtonActionType.EXTERNAL_LINK]: '외부링크',
|
|
62
|
+
[WorkFlowButtonActionType.INPUT]: '입력',
|
|
63
|
+
[WorkFlowButtonActionType.WORKFLOW_CALL]: '워크플로우호출',
|
|
64
|
+
[WorkFlowButtonActionType.PHONE_CALL]: '전화연결',
|
|
65
|
+
[WorkFlowButtonActionType.KAKAO_CONNECT]: '카카오연동'
|
|
66
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// 워크플로우 관련
|
|
2
|
+
|
|
3
|
+
export enum ObjectNumber {
|
|
4
|
+
FIRST_VISIT = 'OB14897658423548P001',
|
|
5
|
+
START_CHAT = 'OB14897658423548P002',
|
|
6
|
+
OTHER_RESERVATION = 'OB14897658423548P003',
|
|
7
|
+
// ASK_AI = 'OB14897658423548P004',
|
|
8
|
+
FAQ = 'OB14897658423548P005'
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const ObjectNumberMap: Record<ObjectNumber, string> = {
|
|
12
|
+
[ObjectNumber.FIRST_VISIT]: '대륜에 처음 방문하셨나요?',
|
|
13
|
+
[ObjectNumber.START_CHAT]: '채팅 문의 시작하기',
|
|
14
|
+
[ObjectNumber.OTHER_RESERVATION]: '다른 예약 방법 보기',
|
|
15
|
+
// [ObjectNumber.ASK_AI]: 'AI 대륜에게 질문하기',
|
|
16
|
+
[ObjectNumber.FAQ]: '자주 묻는 질문'
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export enum WorkFlowButtonUiCode {
|
|
20
|
+
LEFT_FIT_BUTTON = 'WFL01400001',
|
|
21
|
+
FULL_BUTTON = 'WFL01400002',
|
|
22
|
+
TILE_BUTTON = 'WFL01400003'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const WorkFlowButtonUiCodeMap: Record<WorkFlowButtonUiCode, string> = {
|
|
26
|
+
[WorkFlowButtonUiCode.LEFT_FIT_BUTTON]: '왼쪽 오브젝트 배치',
|
|
27
|
+
[WorkFlowButtonUiCode.FULL_BUTTON]: '가운데 오브젝트 배치',
|
|
28
|
+
[WorkFlowButtonUiCode.TILE_BUTTON]: '타일 오브젝트 배치'
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// 유형
|
|
32
|
+
export enum WorkFlowObjectUICode {
|
|
33
|
+
BUTTON = 'WFL01000001',
|
|
34
|
+
TEXTBOX = 'WFL01000002',
|
|
35
|
+
UNKNOWN = 'WFL01000003'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const WorkFlowObjectUICodeMap: Record<WorkFlowObjectUICode, string> = {
|
|
39
|
+
[WorkFlowObjectUICode.BUTTON]: '버튼형',
|
|
40
|
+
[WorkFlowObjectUICode.TEXTBOX]: '텍스트박스형',
|
|
41
|
+
[WorkFlowObjectUICode.UNKNOWN]: ''
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// 뒤로가기 or 처음으로
|
|
45
|
+
export enum WorkFlowBackOrInit {
|
|
46
|
+
BACK = 'WFL01300001',
|
|
47
|
+
INIT = 'WFL01300002'
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const WorkFlowBackOrInitMap: Record<WorkFlowBackOrInit, string> = {
|
|
51
|
+
[WorkFlowBackOrInit.BACK]: '이전단계',
|
|
52
|
+
[WorkFlowBackOrInit.INIT]: '최초단계'
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export enum WorkFlowButtonActionType {
|
|
56
|
+
INTERNAL_LINK = 'WFL00900001', // 내부링크
|
|
57
|
+
EXTERNAL_LINK = 'WFL00900002', // 외부링크
|
|
58
|
+
INPUT = 'WFL00900003', // 입력
|
|
59
|
+
WORKFLOW_CALL = 'WFL00900004', // 워크플로우호출
|
|
60
|
+
PHONE_CALL = 'WFL00900005', // 전화연결
|
|
61
|
+
KAKAO_CONNECT = 'WFL00900006' // 카카오연동
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export const WorkFlowButtonActionMap: Record<WorkFlowButtonActionType, string> = {
|
|
65
|
+
[WorkFlowButtonActionType.INTERNAL_LINK]: '내부링크',
|
|
66
|
+
[WorkFlowButtonActionType.EXTERNAL_LINK]: '외부링크',
|
|
67
|
+
[WorkFlowButtonActionType.INPUT]: '입력',
|
|
68
|
+
[WorkFlowButtonActionType.WORKFLOW_CALL]: '워크플로우호출',
|
|
69
|
+
[WorkFlowButtonActionType.PHONE_CALL]: '전화연결',
|
|
70
|
+
[WorkFlowButtonActionType.KAKAO_CONNECT]: '카카오연동'
|
|
71
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IChatInquiryMainDataResponse } from '../../_api/daeryuntalk/type/response';
|
|
3
|
+
import { Message } from '../../_types/message';
|
|
4
|
+
import { MessageObject } from '../../_types/message_object';
|
|
5
|
+
import { AgeCheckStatusEnums } from '../../_enums/ags_check_status';
|
|
6
|
+
interface props {
|
|
7
|
+
setIsLoading: Dispatch<SetStateAction<boolean>>;
|
|
8
|
+
inquiryMainData: IChatInquiryMainDataResponse | null;
|
|
9
|
+
setChatInquiryNumber: Dispatch<SetStateAction<string | null>>;
|
|
10
|
+
setMessages: Dispatch<SetStateAction<Message[]>>;
|
|
11
|
+
setInquiryStatus: Dispatch<SetStateAction<string>>;
|
|
12
|
+
setMessageObject: Dispatch<SetStateAction<MessageObject | null>>;
|
|
13
|
+
chatInquiryNumber: string | null;
|
|
14
|
+
setIsNextPage: Dispatch<SetStateAction<boolean | null>>;
|
|
15
|
+
setWorkFlowStack: Dispatch<SetStateAction<string[]>>;
|
|
16
|
+
setInquiryMainData: Dispatch<SetStateAction<IChatInquiryMainDataResponse | null>>;
|
|
17
|
+
centerCode: string;
|
|
18
|
+
setAgeCheckStatus: Dispatch<SetStateAction<AgeCheckStatusEnums | null>>;
|
|
19
|
+
}
|
|
20
|
+
export declare const useChatHandler: ({ setIsLoading, inquiryMainData, setChatInquiryNumber, setMessages, setInquiryStatus, setMessageObject, chatInquiryNumber, setIsNextPage, setWorkFlowStack, setInquiryMainData, centerCode, setAgeCheckStatus }: props) => {
|
|
21
|
+
attendRoomByHistory: (chatInquiryNumber: string) => Promise<import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").HistoryListResponse> | undefined>;
|
|
22
|
+
startChat: (inquiryNumber?: string) => Promise<string | import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").ChatInquiryCreateDataResponse> | import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").ChatInquiryDetailDataResponse> | import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").ChatInquiryMessageListDataResponse> | {
|
|
23
|
+
error: unknown;
|
|
24
|
+
}>;
|
|
25
|
+
sendMessage: (htmlContent: string, jsonData: any, retry?: boolean) => Promise<import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").SendMessageResponse> | undefined>;
|
|
26
|
+
createNewChat: (version?: string) => Promise<import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").ChatInquiryCreateDataResponse> | import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").ChatInquiryDetailDataResponse> | import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").ChatInquiryMessageListDataResponse> | undefined>;
|
|
27
|
+
startWorkFlow: (data: {
|
|
28
|
+
chatInquiryNumber: string;
|
|
29
|
+
messageNumber: string;
|
|
30
|
+
workFlowNumber: string;
|
|
31
|
+
objectNumber: string;
|
|
32
|
+
}) => Promise<import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").SendMessageResponse> | undefined>;
|
|
33
|
+
workFlowBack: (data: {
|
|
34
|
+
chatInquiryNumber: string;
|
|
35
|
+
messageNumber: string;
|
|
36
|
+
workFlowNavigationCode: string;
|
|
37
|
+
}) => Promise<import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<null> | undefined>;
|
|
38
|
+
chatUserUpdate: (data: {
|
|
39
|
+
chatInquiryNumber: string;
|
|
40
|
+
messageNumber: string;
|
|
41
|
+
name: string;
|
|
42
|
+
cellPhoneNumber: string;
|
|
43
|
+
}) => Promise<import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<any> | undefined>;
|
|
44
|
+
getNextMessageList: (chatInquiryNumber: string, standardTimestamp: number) => Promise<void>;
|
|
45
|
+
startSelectedChat: (chatInquiryNumber: string) => Promise<string | import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").ChatInquiryDetailDataResponse> | import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<import("../../_api/daeryuntalk/type/response").ChatInquiryMessageListDataResponse>>;
|
|
46
|
+
ageConfirm: (chatInquiryNumber: string, ageConsentStateCode: AgeCheckStatusEnums) => Promise<import("../../_api/daeryuntalk/type/response").IDaeryunTalkResponseWrapper<any> | undefined>;
|
|
47
|
+
};
|
|
48
|
+
export {};
|