@daeryun/dr_components 0.8.93 → 0.8.94
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/asset/images/BrochureBtn/download_btn.webp +0 -0
- package/dist/asset/images/PageTitleBox/archive.webp +0 -0
- package/dist/asset/images/PageTitleBox/archive_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/broadcast.webp +0 -0
- package/dist/asset/images/PageTitleBox/broadcast_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/faq.webp +0 -0
- package/dist/asset/images/PageTitleBox/faq_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/field.webp +0 -0
- package/dist/asset/images/PageTitleBox/field_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/info.webp +0 -0
- package/dist/asset/images/PageTitleBox/info_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/lawfirm.webp +0 -0
- package/dist/asset/images/PageTitleBox/lawfirm_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/notice.webp +0 -0
- package/dist/asset/images/PageTitleBox/notice_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/reply.webp +0 -0
- package/dist/asset/images/PageTitleBox/reply_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/success.webp +0 -0
- package/dist/asset/images/PageTitleBox/success_m.webp +0 -0
- package/dist/asset/images/PageTitleBox/trend.webp +0 -0
- package/dist/asset/images/PageTitleBox/trend_m.webp +0 -0
- package/dist/asset/images/SearchBar/search.webp +0 -0
- package/dist/asset/images/cat.png +0 -0
- package/dist/asset/images/categoryMenu/House.svg +0 -3
- package/dist/asset/images/categoryMenu/HouseWhite.svg +0 -3
- package/dist/asset/images/categoryMenu/right_arrow.svg +0 -3
- package/dist/asset/images/categoryView/section9_arrow_01.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_02.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_03.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_04.webp +0 -0
- package/dist/asset/images/categoryView/section9_arrow_05.webp +0 -0
- package/dist/asset/images/categoryView/section9_icon.webp +0 -0
- package/dist/asset/images/choice/choice_call.webp +0 -0
- package/dist/asset/images/choice/choice_kakao.webp +0 -0
- package/dist/asset/images/choice/choice_stepIcon_01.webp +0 -0
- package/dist/asset/images/choice/choice_stepIcon_02.webp +0 -0
- package/dist/asset/images/choice/choice_stepIcon_03.webp +0 -0
- package/dist/asset/images/choice/choice_stepIcon_04.webp +0 -0
- package/dist/asset/images/choice/choice_tri.webp +0 -0
- package/dist/asset/images/choice/mt_icon.svg +0 -16
- package/dist/asset/images/choice/new_choice_consult.webp +0 -0
- package/dist/asset/images/choice/new_choice_consulting.webp +0 -0
- package/dist/asset/images/consult/arrow_icon.svg +0 -5
- package/dist/asset/images/consulting/choice_lock.webp +0 -0
- package/dist/asset/images/consulting/new_choice_consulting.webp +0 -0
- package/dist/asset/images/daeryuntalk/close.svg +0 -5
- package/dist/asset/images/daeryuntalk/daeryun-logo.svg +0 -5
- package/dist/asset/images/daeryuntalk/daeryuntalk-intro.png +0 -0
- package/dist/asset/images/daeryuntalk/daeryuntalk_home_bg.png +0 -0
- package/dist/asset/images/daeryuntalk/download.svg +0 -5
- package/dist/asset/images/daeryuntalk/empty_message.svg +0 -8
- package/dist/asset/images/daeryuntalk/firstGo.svg +0 -5
- package/dist/asset/images/daeryuntalk/history.svg +0 -6
- package/dist/asset/images/daeryuntalk/home.svg +0 -4
- package/dist/asset/images/daeryuntalk/home_bg_logo.png +0 -0
- package/dist/asset/images/daeryuntalk/info.svg +0 -5
- package/dist/asset/images/daeryuntalk/link_right.svg +0 -11
- package/dist/asset/images/daeryuntalk/minus.svg +0 -4
- package/dist/asset/images/daeryuntalk/notice-icon.svg +0 -4
- package/dist/asset/images/daeryuntalk/notice.svg +0 -6
- package/dist/asset/images/daeryuntalk/objectBack.svg +0 -4
- package/dist/asset/images/daeryuntalk/plus.svg +0 -4
- package/dist/asset/images/daeryuntalk/prev.svg +0 -3
- package/dist/asset/images/daeryuntalk/re_send.svg +0 -11
- package/dist/asset/images/daeryuntalk/send.svg +0 -11
- package/dist/asset/images/daeryuntalk/time.svg +0 -3
- package/dist/asset/images/daeryuntalk/viewer/close.svg +0 -4
- package/dist/asset/images/daeryuntalk/viewer/gray-download.svg +0 -7
- package/dist/asset/images/daeryuntalk/viewer/move-button.svg +0 -4
- package/dist/asset/images/daeryuntalk/viewer/rotate.svg +0 -17
- package/dist/asset/images/daeryuntalk/viewer/zoom-in.svg +0 -5
- package/dist/asset/images/daeryuntalk/viewer/zoom-out.svg +0 -4
- package/dist/asset/images/faq/Ellipse.webp +0 -0
- package/dist/asset/images/faq/cal.webp +0 -0
- package/dist/asset/images/faq/check.webp +0 -0
- package/dist/asset/images/faq/down.webp +0 -0
- package/dist/asset/images/faq/eye.webp +0 -0
- package/dist/asset/images/faq/plus.webp +0 -0
- package/dist/asset/images/faq/right.webp +0 -0
- package/dist/asset/images/faq/vector_blu.svg +0 -3
- package/dist/asset/images/faq/vector_stroke.svg +0 -3
- package/dist/asset/images/fieldNew/field_mark.png +0 -0
- package/dist/asset/images/fieldNew/v_arrow.png +0 -0
- package/dist/asset/images/fieldNew/vector_blu.png +0 -0
- package/dist/asset/images/fieldNew/vector_stroke.png +0 -0
- package/dist/asset/images/fix/arrow.webp +0 -0
- package/dist/asset/images/fix/call.webp +0 -0
- package/dist/asset/images/fix/call2.webp +0 -0
- package/dist/asset/images/fix/call_m.webp +0 -0
- package/dist/asset/images/fix/kakao.webp +0 -0
- package/dist/asset/images/fix/kakao_m.webp +0 -0
- package/dist/asset/images/fix/menu_x.webp +0 -0
- package/dist/asset/images/fix/online.webp +0 -0
- package/dist/asset/images/fix/online_m.webp +0 -0
- package/dist/asset/images/footer/footer_daeryun.webp +0 -0
- package/dist/asset/images/footer/ft_icon_arr_2.webp +0 -0
- package/dist/asset/images/footer/icon_arrow_gray.webp +0 -0
- package/dist/asset/images/footer/logo_b.webp +0 -0
- package/dist/asset/images/footer/logo_b_discovery.webp +0 -0
- package/dist/asset/images/footer/sns_01.webp +0 -0
- package/dist/asset/images/footer/sns_02.webp +0 -0
- package/dist/asset/images/footer/sns_03.webp +0 -0
- package/dist/asset/images/footer/sns_04.webp +0 -0
- package/dist/asset/images/footer/sns_05.webp +0 -0
- package/dist/asset/images/footer/top.svg +0 -13
- package/dist/asset/images/header/h_call_line.webp +0 -0
- package/dist/asset/images/header/h_call_line_b.webp +0 -0
- package/dist/asset/images/header/h_icon_g.webp +0 -0
- package/dist/asset/images/header/h_menu.webp +0 -0
- package/dist/asset/images/header/h_menu_b.webp +0 -0
- package/dist/asset/images/header/head_link.svg +0 -3
- package/dist/asset/images/header/header_call.webp +0 -0
- package/dist/asset/images/header/image_b.webp +0 -0
- package/dist/asset/images/header/language.webp +0 -0
- package/dist/asset/images/header/logo_b.webp +0 -0
- package/dist/asset/images/header/logo_s.webp +0 -0
- package/dist/asset/images/header/logo_w.webp +0 -0
- package/dist/asset/images/header/m_right.webp +0 -0
- package/dist/asset/images/header/m_sr.webp +0 -0
- package/dist/asset/images/header/main_img_01.webp +0 -0
- package/dist/asset/images/header/main_img_02.webp +0 -0
- package/dist/asset/images/header/main_img_03.webp +0 -0
- package/dist/asset/images/header/menu.webp +0 -0
- package/dist/asset/images/header/menu_call.webp +0 -0
- package/dist/asset/images/header/menu_sns.webp +0 -0
- package/dist/asset/images/header/menu_sns_01.webp +0 -0
- package/dist/asset/images/header/menu_sns_02.webp +0 -0
- package/dist/asset/images/header/menu_sns_03.webp +0 -0
- package/dist/asset/images/header/menu_sns_04.webp +0 -0
- package/dist/asset/images/header/menu_sns_05.webp +0 -0
- package/dist/asset/images/header/menu_x.webp +0 -0
- package/dist/asset/images/header/military.svg +0 -38
- package/dist/asset/images/header/military_w.svg +0 -38
- package/dist/asset/images/header/online.png +0 -0
- package/dist/asset/images/header/phone.png +0 -0
- package/dist/asset/images/header/search_black.webp +0 -0
- package/dist/asset/images/header/search_white.webp +0 -0
- package/dist/asset/images/header/talk.png +0 -0
- package/dist/asset/images/header/top_icon_01.webp +0 -0
- package/dist/asset/images/header/top_icon_02.webp +0 -0
- package/dist/asset/images/header/top_icon_03.webp +0 -0
- package/dist/asset/images/header/top_icon_04.webp +0 -0
- package/dist/asset/images/lawfirm/balance.svg +0 -19
- package/dist/asset/images/lawfirm/certified.svg +0 -33
- package/dist/asset/images/lawfirm/checkbox.svg +0 -11
- package/dist/asset/images/lawfirm/document.svg +0 -23
- package/dist/asset/images/lawfirm/downArrow.svg +0 -5
- package/dist/asset/images/lawfirm/picture.svg +0 -12
- package/dist/asset/images/lawfirm/section_1_1.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_1_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_3.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_3_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_4.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_5.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_5_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_6.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_7.webp +0 -0
- package/dist/asset/images/lawfirm/section_1_8.webp +0 -0
- package/dist/asset/images/lawfirm/section_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_2_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_1.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_1_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_1_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_2_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_2_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_3.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_3_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_3_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_4.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_4_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_4_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_5.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_5_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_3_5_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_4.webp +0 -0
- package/dist/asset/images/lawfirm/section_4_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_1.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_3.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_4.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_5.webp +0 -0
- package/dist/asset/images/lawfirm/section_5_6.webp +0 -0
- package/dist/asset/images/lawfirm/section_6.webp +0 -0
- package/dist/asset/images/lawfirm/section_6_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_6_t.webp +0 -0
- package/dist/asset/images/lawfirm/section_7_1.webp +0 -0
- package/dist/asset/images/lawfirm/section_7_2.webp +0 -0
- package/dist/asset/images/lawfirm/section_7_3.webp +0 -0
- package/dist/asset/images/lawfirm/section_9.webp +0 -0
- package/dist/asset/images/lawfirm/section_9_m.webp +0 -0
- package/dist/asset/images/lawfirm/section_9_t.webp +0 -0
- package/dist/asset/images/mark/accounting.svg +0 -37
- package/dist/asset/images/mark/court.svg +0 -41
- package/dist/asset/images/mark/customs.svg +0 -12
- package/dist/asset/images/mark/military.svg +0 -932
- package/dist/asset/images/mark/patent.svg +0 -3258
- package/dist/asset/images/mark/police.svg +0 -24
- package/dist/asset/images/mark/prosecution.svg +0 -34
- package/dist/asset/images/mark/tax.svg +0 -10
- package/dist/asset/images/mark/trial.svg +0 -30
- package/dist/asset/images/myCase/arrow_2.webp +0 -0
- package/dist/asset/images/myCase/arrow_b.webp +0 -0
- package/dist/asset/images/myCase/arrow_b_w.webp +0 -0
- package/dist/asset/images/myCase/arrow_right.webp +0 -0
- package/dist/asset/images/myCase/background.svg +0 -8
- package/dist/asset/images/myCase/background.webp +0 -0
- package/dist/asset/images/myCase/background_mo.webp +0 -0
- package/dist/asset/images/myCase/background_tb.webp +0 -0
- package/dist/asset/images/myCase/home.svg +0 -16
- package/dist/asset/images/myCase/home.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon1.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon2.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon3.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon4.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon5.webp +0 -0
- package/dist/asset/images/myCase/icon/case_icon6.webp +0 -0
- package/dist/asset/images/myCase/icon/case_lookup_linkout.webp +0 -0
- package/dist/asset/images/myCase/icon/check box_3.webp +0 -0
- package/dist/asset/images/myCase/icon/check box_red.webp +0 -0
- package/dist/asset/images/myCase/icon/check_box.webp +0 -0
- package/dist/asset/images/myCase/icon/check_box_gray.webp +0 -0
- package/dist/asset/images/myCase/icon/check_circle.webp +0 -0
- package/dist/asset/images/myCase/icon/check_circle2.webp +0 -0
- package/dist/asset/images/myCase/icon/client.webp +0 -0
- package/dist/asset/images/myCase/icon/close copy.webp +0 -0
- package/dist/asset/images/myCase/icon/close.webp +0 -0
- package/dist/asset/images/myCase/icon/contract_icon.webp +0 -0
- package/dist/asset/images/myCase/icon/daeryun.webp +0 -0
- package/dist/asset/images/myCase/icon/defaultIcon.webp +0 -0
- package/dist/asset/images/myCase/icon/docs.webp +0 -0
- package/dist/asset/images/myCase/icon/download.webp +0 -0
- package/dist/asset/images/myCase/icon/file.webp +0 -0
- package/dist/asset/images/myCase/icon/hwp.webp +0 -0
- package/dist/asset/images/myCase/icon/ink_pen.webp +0 -0
- package/dist/asset/images/myCase/icon/jpeg.webp +0 -0
- package/dist/asset/images/myCase/icon/jpg.webp +0 -0
- package/dist/asset/images/myCase/icon/modal_icon.webp +0 -0
- package/dist/asset/images/myCase/icon/pdf.webp +0 -0
- package/dist/asset/images/myCase/icon/png.webp +0 -0
- package/dist/asset/images/myCase/icon/unknown.webp +0 -0
- package/dist/asset/images/myCase/icon/upload.webp +0 -0
- package/dist/asset/images/myCase/icon/word.webp +0 -0
- package/dist/asset/images/myCase/icon/xls.webp +0 -0
- package/dist/asset/images/myCase/nav_arr.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_l_off.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_l_on.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_r_off.webp +0 -0
- package/dist/asset/images/myCase/pagination/arrow_r_on.webp +0 -0
- package/dist/asset/images/myCaseManage/arrow_2.webp +0 -0
- package/dist/asset/images/myCaseManage/arrow_right.svg +0 -3
- package/dist/asset/images/myCaseManage/background.svg +0 -8
- package/dist/asset/images/myCaseManage/header_arrow.svg +0 -3
- package/dist/asset/images/myCaseManage/home.svg +0 -16
- package/dist/asset/images/myCaseManage/home.webp +0 -0
- package/dist/asset/images/myCaseManage/icon/case_icon1.svg +0 -4
- package/dist/asset/images/myCaseManage/icon/case_icon2.svg +0 -6
- package/dist/asset/images/myCaseManage/icon/case_icon3.svg +0 -3
- package/dist/asset/images/myCaseManage/icon/case_lookup_linkout.svg +0 -5
- package/dist/asset/images/myCaseManage/icon/check_circle.svg +0 -3
- package/dist/asset/images/myCaseManage/icon/check_circle2.svg +0 -3
- package/dist/asset/images/myCaseManage/icon/client.svg +0 -14
- package/dist/asset/images/myCaseManage/icon/daeryun.svg +0 -7
- package/dist/asset/images/myCaseManage/icon/download.svg +0 -3
- package/dist/asset/images/myCaseManage/icon/jpg.svg +0 -15
- package/dist/asset/images/myCaseManage/icon/pdf.svg +0 -9
- package/dist/asset/images/myCaseManage/icon/png.svg +0 -25
- package/dist/asset/images/myCaseManage/icon/word.svg +0 -11
- package/dist/asset/images/myCaseManage/icon/xls.svg +0 -18
- package/dist/asset/images/myCaseManage/nav_arr.webp +0 -0
- package/dist/asset/images/pagination/small_arrow.svg +0 -3
- package/dist/asset/images/pdfPrintCopyLink/pdf.svg +0 -17
- package/dist/asset/images/pdfPrintCopyLink/print.svg +0 -19
- package/dist/asset/images/pdfPrintCopyLink/share.svg +0 -15
- package/dist/asset/images/seo/Arrow_Right_MD.svg +0 -3
- package/dist/asset/images/seo/bg_img.webp +0 -0
- package/dist/asset/images/seo/left.webp +0 -0
- package/dist/asset/images/seo/rec_01.svg +0 -34
- package/dist/asset/images/seo/rec_02.svg +0 -41
- package/dist/asset/images/seo/rec_03.svg +0 -16
- package/dist/asset/images/seo/rec_img_01.webp +0 -0
- package/dist/asset/images/seo/rec_img_sm01.webp +0 -0
- package/dist/asset/images/seo/right.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_call.webp +0 -0
- package/dist/asset/images/seo/secConsulting/choice_kakao.webp +0 -0
- package/dist/asset/images/seo/secConsulting/online.svg +0 -36
- package/dist/asset/images/seo/seoAddLink/link_arrow.webp +0 -0
- package/dist/asset/images/seo/seoAddLink/link_on.webp +0 -0
- package/dist/asset/images/seo/seoAddLink/logo_youtube.webp +0 -0
- package/dist/asset/images/seo/seoAddLink/ribon.svg +0 -3
- package/dist/asset/images/seo/seoAddLink/youtubeSmall_ico.svg +0 -4
- package/dist/asset/images/seo/seoYoutube/youtube_ico.svg +0 -7
- package/dist/asset/images/seo/seoYoutube/youtube_txt.svg +0 -3
- package/dist/asset/images/seo/successCase/dia_dot.svg +0 -3
- package/dist/asset/images/seo/successCase/right_arrow.svg +0 -4
- package/dist/asset/images/seo/successCase/up_right.svg +0 -3
- package/dist/asset/images/strength/01.webp +0 -0
- package/dist/asset/images/strength/010.webp +0 -0
- package/dist/asset/images/strength/011.webp +0 -0
- package/dist/asset/images/strength/02.webp +0 -0
- package/dist/asset/images/strength/03.webp +0 -0
- package/dist/asset/images/strength/04.webp +0 -0
- package/dist/asset/images/strength/05.webp +0 -0
- package/dist/asset/images/strength/06.webp +0 -0
- package/dist/asset/images/strength/07.webp +0 -0
- package/dist/asset/images/strength/08.webp +0 -0
- package/dist/asset/images/strength/09.webp +0 -0
- package/dist/asset/images/strength/arrow.webp +0 -0
- package/dist/asset/images/strength/bg.webp +0 -0
- package/dist/asset/images/strength/mo.webp +0 -0
- package/dist/asset/images/strength/red_arrow.webp +0 -0
- package/dist/asset/images/strength/tb.webp +0 -0
- package/dist/asset/images/success_new/arrow.svg +0 -13
- package/dist/asset/images/success_new/arrow_full.webp +0 -0
- package/dist/asset/images/success_new/arrow_line.svg +0 -3
- package/dist/asset/images/success_new/arrow_line.webp +0 -0
- package/dist/asset/images/success_new/dia_dot.svg +0 -3
- package/dist/asset/images/success_new/field_icon.webp +0 -0
- package/dist/asset/images/success_new/label.svg +0 -10
- package/dist/asset/images/success_new/left.webp +0 -0
- package/dist/asset/images/success_new/logo.webp +0 -0
- package/dist/asset/images/success_new/right.webp +0 -0
- package/dist/asset/images/success_new/right_arrow.svg +0 -4
- package/dist/asset/images/success_new/up_right.svg +0 -3
- package/dist/asset/images/system/svg/Arrow_Right_LG.svg +0 -3
- package/dist/asset/images/system/svg/arrow_system.svg +0 -3
- package/dist/asset/images/system/system_allocation.webp +0 -0
- package/dist/asset/images/system/system_btn_1.webp +0 -0
- package/dist/asset/images/system/system_btn_2.webp +0 -0
- package/dist/asset/images/system/system_btn_3.webp +0 -0
- package/dist/asset/images/system/system_consult_now.webp +0 -0
- package/dist/asset/images/system/system_consult_now_m.webp +0 -0
- package/dist/asset/images/system/system_consult_now_t.webp +0 -0
- package/dist/asset/images/system/system_consultation.webp +0 -0
- package/dist/asset/images/system/system_consultation_img.webp +0 -0
- package/dist/asset/images/system/system_consultation_img_m.webp +0 -0
- package/dist/asset/images/system/system_consultation_img_t.webp +0 -0
- package/dist/asset/images/system/system_consultation_txt.webp +0 -0
- package/dist/asset/images/system/system_post.webp +0 -0
- package/dist/asset/images/system/system_sec1_bg.webp +0 -0
- package/dist/asset/images/system/system_sec1_bg_m.webp +0 -0
- package/dist/asset/images/system/system_sec1_bg_t.webp +0 -0
- package/dist/asset/images/viewMoreSection/arrow.svg +0 -11
- package/dist/asset/images/viewMoreSection/search.svg +0 -15
- package/dist/asset/images/viewMoreSection/searchIconSVG/section12_icon_01a.svg +0 -18
- package/dist/asset/images/viewMoreSection/searchIconSVG/section12_icon_02a.svg +0 -23
- package/dist/asset/images/viewMoreSection/searchIconSVG/section12_icon_03a.svg +0 -25
- package/dist/asset/images/viewMoreSection/searchIconSVG/section12_icon_04a.svg +0 -24
- package/dist/asset/images/youtube_arrow.png +0 -0
- package/dist/asset/images/youtube_logo.png +0 -0
- package/dist/components/BrochureBtn/BrochureBtn.stories.d.ts +0 -24
- package/dist/components/BrochureBtn/BrochureBtn.stories.jsx +0 -25
- package/dist/components/BrochureBtn/BrochureBtn.stories.tsx +0 -33
- package/dist/components/BrochureBtn/BrochureBtn.tsx +0 -83
- package/dist/components/BrochureBtn/MedicalBrochureBtn.tsx +0 -88
- package/dist/components/CategoryMenu/CategoryMenuForPage.tsx +0 -81
- package/dist/components/ChannelTalk/ChannelTalk.tsx +0 -47
- package/dist/components/CountingSection/CountingSection.stories.d.ts +0 -8
- package/dist/components/CountingSection/CountingSection.stories.jsx +0 -22
- package/dist/components/CountingSection/CountingSection.stories.tsx +0 -30
- package/dist/components/CountingSection/CountingSection.tsx +0 -192
- package/dist/components/Daeryuntalk/ChatButton.tsx +0 -124
- package/dist/components/Daeryuntalk/ChatConversation.tsx +0 -362
- package/dist/components/Daeryuntalk/ChatConversationItem/ChatConversationHeader.tsx +0 -59
- package/dist/components/Daeryuntalk/ChatHomeView.tsx +0 -232
- package/dist/components/Daeryuntalk/ChatInput.tsx +0 -79
- package/dist/components/Daeryuntalk/ChatItem/ChatFile.tsx +0 -228
- package/dist/components/Daeryuntalk/ChatItem/ChatLoading.tsx +0 -21
- package/dist/components/Daeryuntalk/ChatItem/ChatPrivacyAuth.tsx +0 -128
- package/dist/components/Daeryuntalk/ChatItem/ChatWrapper.tsx +0 -25
- package/dist/components/Daeryuntalk/ChatItem/RichText.tsx +0 -45
- package/dist/components/Daeryuntalk/ChatItem/TimeWrapper.tsx +0 -20
- package/dist/components/Daeryuntalk/ChatItem/TypingComp.tsx +0 -38
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowAuthForm.tsx +0 -31
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowClickData.tsx +0 -36
- package/dist/components/Daeryuntalk/ChatItem/WorkFlowImg.tsx +0 -232
- package/dist/components/Daeryuntalk/ChatMessage.tsx +0 -287
- package/dist/components/Daeryuntalk/ChatObject/FieldWorkObject.tsx +0 -65
- package/dist/components/Daeryuntalk/ChatObject/ObjectBack.tsx +0 -28
- package/dist/components/Daeryuntalk/ChatObject/ObjectButton.tsx +0 -183
- package/dist/components/Daeryuntalk/ChatWidget.tsx +0 -114
- package/dist/components/Daeryuntalk/DaeryuntalkContext.tsx +0 -286
- package/dist/components/Daeryuntalk/DateSeparator.tsx +0 -23
- package/dist/components/Daeryuntalk/FixedErrorBox.tsx +0 -73
- package/dist/components/Daeryuntalk/History/AuthForm.tsx +0 -204
- package/dist/components/Daeryuntalk/HistoryView.tsx +0 -158
- package/dist/components/Daeryuntalk/HomeView.tsx +0 -216
- package/dist/components/Daeryuntalk/NavigationFooter.tsx +0 -90
- package/dist/components/Daeryuntalk/NoticeMessage.tsx +0 -44
- package/dist/components/Daeryuntalk/Tiptap/Tiptap.tsx +0 -182
- package/dist/components/Daeryuntalk/Toast/DaeryuntalkToastProvider.tsx +0 -70
- package/dist/components/Daeryuntalk/Toast/Toast.tsx +0 -94
- package/dist/components/Daeryuntalk/Toast/ToastRender.tsx +0 -30
- package/dist/components/Daeryuntalk/Viewer/ImageViewer.tsx +0 -147
- package/dist/components/Daeryuntalk/Viewer/MobileViewer.tsx +0 -168
- package/dist/components/Daeryuntalk/Viewer/TbPcViewer.tsx +0 -232
- package/dist/components/Daeryuntalk/ViewportHandler.tsx +0 -49
- package/dist/components/Daeryuntalk/_api/daeryuntalk/index.ts +0 -1060
- package/dist/components/Daeryuntalk/_api/daeryuntalk/type/response.ts +0 -153
- package/dist/components/Daeryuntalk/_api/index.ts +0 -7
- package/dist/components/Daeryuntalk/_enums/ask-status.ts +0 -25
- package/dist/components/Daeryuntalk/_enums/error.ts +0 -292
- package/dist/components/Daeryuntalk/_enums/message_type.ts +0 -13
- package/dist/components/Daeryuntalk/_enums/sender_type.ts +0 -16
- package/dist/components/Daeryuntalk/_enums/socket_type.ts +0 -44
- package/dist/components/Daeryuntalk/_enums/template.ts +0 -81
- package/dist/components/Daeryuntalk/_enums/work_flow_object_expose.ts +0 -69
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHandler.ts +0 -539
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useChatHistory.ts +0 -1
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useFullURL.tsx +0 -22
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useHistoryHandler.ts +0 -143
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useSocketEventHandler.ts +0 -395
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useViewerHook.ts +0 -23
- package/dist/components/Daeryuntalk/_hooks/talkprovider/useWorkFlow.ts +0 -122
- package/dist/components/Daeryuntalk/_hooks/useScrollShadow.ts +0 -34
- package/dist/components/Daeryuntalk/_hooks/useWindowSize.ts +0 -30
- package/dist/components/Daeryuntalk/_hooks/view/useChatSocketState.ts +0 -43
- package/dist/components/Daeryuntalk/_hooks/view/useHistoryView.ts +0 -93
- package/dist/components/Daeryuntalk/_hooks/view/useHomeView.ts +0 -65
- package/dist/components/Daeryuntalk/_lib/index.ts +0 -140
- package/dist/components/Daeryuntalk/_lib/utils.ts +0 -113
- package/dist/components/Daeryuntalk/_types/message.ts +0 -155
- package/dist/components/Daeryuntalk/_types/message_object.ts +0 -21
- package/dist/components/Daeryuntalk/_types/socket/message.ts +0 -0
- package/dist/components/Daeryuntalk/_types/socket/workflow.ts +0 -15
- package/dist/components/Daeryuntalk/_ui/ShadowBox.tsx +0 -14
- package/dist/components/Daeryuntalk/_ui/buttons/Button1.tsx +0 -28
- package/dist/components/Daeryuntalk/_ui/buttons/Button2.tsx +0 -28
- package/dist/components/Daeryuntalk/_ui/buttons/Button3.tsx +0 -29
- package/dist/components/Daeryuntalk/_ui/inputs/Input1.tsx +0 -39
- package/dist/components/Daeryuntalk/_ui/inputs/Input2.tsx +0 -43
- package/dist/components/Daeryuntalk/index.tsx +0 -125
- package/dist/components/FieldNew/RelatedGroup.stories.d.ts +0 -12
- package/dist/components/FieldNew/RelatedGroup.stories.jsx +0 -15
- package/dist/components/FieldNew/RelatedGroup.stories.tsx +0 -23
- package/dist/components/FieldNew/RelatedGroup.tsx +0 -41
- package/dist/components/Fix/Fix.stories.d.ts +0 -15
- package/dist/components/Fix/Fix.stories.jsx +0 -19
- package/dist/components/Fix/Fix.stories.tsx +0 -27
- package/dist/components/Fix/index.module.css +0 -316
- package/dist/components/Fix/index.tsx +0 -719
- package/dist/components/Footer/Footer.stories.d.ts +0 -10
- package/dist/components/Footer/Footer.stories.jsx +0 -76
- package/dist/components/Footer/Footer.stories.tsx +0 -92
- package/dist/components/Footer/FooterV2.tsx +0 -764
- package/dist/components/Footer/IFooterTypes.ts +0 -347
- package/dist/components/Footer/TopBtn.tsx +0 -31
- package/dist/components/Footer/_actions/action.ts +0 -17
- package/dist/components/Footer/_backup/index.tsx +0 -747
- package/dist/components/Footer/_fetchers/getFooterTermList.ts +0 -5
- package/dist/components/Footer/_type/termType.ts +0 -15
- package/dist/components/Footer/index.tsx +0 -676
- package/dist/components/Header/HeaderWrapper.tsx +0 -22
- package/dist/components/Header/MobileHeader.stories.d.ts +0 -7
- package/dist/components/Header/MobileHeader.stories.jsx +0 -28
- package/dist/components/Header/MobileHeader.stories.tsx +0 -36
- package/dist/components/Header/MobileHeader.tsx +0 -102
- package/dist/components/Header/PcHeader.stories.d.ts +0 -7
- package/dist/components/Header/PcHeader.stories.jsx +0 -27
- package/dist/components/Header/PcHeader.stories.tsx +0 -35
- package/dist/components/Header/PcHeader.tsx +0 -229
- package/dist/components/Layout/PageWrapper.tsx +0 -35
- package/dist/components/Layout/Wrapper.tsx +0 -38
- package/dist/components/Loader/Loader.stories.d.ts +0 -9
- package/dist/components/Loader/Loader.stories.jsx +0 -22
- package/dist/components/Loader/Loader.stories.tsx +0 -32
- package/dist/components/Loader/Loader.tsx +0 -18
- package/dist/components/LogoSection/LogoSection.stories.d.ts +0 -8
- package/dist/components/LogoSection/LogoSection.stories.jsx +0 -15
- package/dist/components/LogoSection/LogoSection.stories.tsx +0 -23
- package/dist/components/LogoSection/LogoSection.tsx +0 -159
- package/dist/components/MapFix/AreaImage.tsx +0 -95
- package/dist/components/MapFix/MapFix.stories.d.ts +0 -7
- package/dist/components/MapFix/MapFix.stories.jsx +0 -20
- package/dist/components/MapFix/MapFix.stories.tsx +0 -30
- package/dist/components/MapFix/MapFix.tsx +0 -170
- package/dist/components/MapSection/Map.tsx +0 -340
- package/dist/components/MapSection/MapSection.stories.d.ts +0 -8
- package/dist/components/MapSection/MapSection.stories.jsx +0 -38
- package/dist/components/MapSection/MapSection.stories.tsx +0 -64
- package/dist/components/MapSection/MapSection.tsx +0 -144
- package/dist/components/Mark/Mark.stories.d.ts +0 -6
- package/dist/components/Mark/Mark.stories.jsx +0 -24
- package/dist/components/Mark/Mark.stories.tsx +0 -31
- package/dist/components/Mark/Mark.tsx +0 -112
- package/dist/components/Menu/IMenuTypes.ts +0 -13
- package/dist/components/Menu/Menu.stories.d.ts +0 -7
- package/dist/components/Menu/Menu.stories.jsx +0 -162
- package/dist/components/Menu/Menu.stories.tsx +0 -170
- package/dist/components/Menu/Menu.tsx +0 -15
- package/dist/components/Menu/MobileMenu.tsx +0 -285
- package/dist/components/Menu/MyCase.tsx +0 -47
- package/dist/components/Menu/PCMenu.tsx +0 -236
- package/dist/components/Model/YoutubeLawyerModal.tsx +0 -64
- package/dist/components/PageTitleBox/ImgTypes.ts +0 -12
- package/dist/components/PageTitleBox/PageTitleBox.stories.d.ts +0 -6
- package/dist/components/PageTitleBox/PageTitleBox.stories.jsx +0 -19
- package/dist/components/PageTitleBox/PageTitleBox.stories.tsx +0 -26
- package/dist/components/PageTitleBox/PageTitleBox.tsx +0 -141
- package/dist/components/Pagination/Pagination.tsx +0 -79
- package/dist/components/PdfPrintCopyLink/PdfPrintCopyLink.stories.d.ts +0 -8
- package/dist/components/PdfPrintCopyLink/PdfPrintCopyLink.stories.jsx +0 -16
- package/dist/components/PdfPrintCopyLink/PdfPrintCopyLink.stories.tsx +0 -24
- package/dist/components/PdfPrintCopyLink/PdfPrintCopyLink.tsx +0 -176
- package/dist/components/SearchBar/SearchBar.stories.d.ts +0 -6
- package/dist/components/SearchBar/SearchBar.stories.jsx +0 -21
- package/dist/components/SearchBar/SearchBar.stories.tsx +0 -28
- package/dist/components/SearchBar/SearchBar.tsx +0 -173
- package/dist/components/SelectBox/SelectBox.tsx +0 -80
- package/dist/components/Seo/FieldCase.tsx +0 -95
- package/dist/components/Seo/Lawyer.tsx +0 -151
- package/dist/components/Seo/SeoAdditionalLink.stories.d.ts +0 -19
- package/dist/components/Seo/SeoAdditionalLink.stories.jsx +0 -34
- package/dist/components/Seo/SeoAdditionalLink.stories.tsx +0 -41
- package/dist/components/Seo/SeoAdditionalLink.tsx +0 -144
- package/dist/components/Seo/SeoConsulting.tsx +0 -271
- package/dist/components/Seo/SeoStrength.stories.d.ts +0 -12
- package/dist/components/Seo/SeoStrength.stories.jsx +0 -15
- package/dist/components/Seo/SeoStrength.stories.tsx +0 -22
- package/dist/components/Seo/SeoStrength.tsx +0 -96
- package/dist/components/Seo/SeoYoutube.stories.d.ts +0 -19
- package/dist/components/Seo/SeoYoutube.stories.jsx +0 -34
- package/dist/components/Seo/SeoYoutube.stories.tsx +0 -41
- package/dist/components/Seo/SeoYoutube.tsx +0 -191
- package/dist/components/Seo/SuccessCase.tsx +0 -97
- package/dist/components/Seo/right_arrow.svg +0 -4
- package/dist/components/SubPage/SubPageTitle.tsx +0 -113
- package/dist/components/TuiViewer/TuiViewer.tsx +0 -14
- package/dist/components/ViewMoreSection/SearchIcon.tsx +0 -29
- package/dist/components/ViewMoreSection/ViewMoreSection.stories.d.ts +0 -8
- package/dist/components/ViewMoreSection/ViewMoreSection.stories.jsx +0 -50
- package/dist/components/ViewMoreSection/ViewMoreSection.stories.tsx +0 -61
- package/dist/components/ViewMoreSection/ViewMoreSection.tsx +0 -283
- package/dist/components/VisitReservationLawyer/VisitReservationLawyer.stories.d.ts +0 -8
- package/dist/components/VisitReservationLawyer/VisitReservationLawyer.stories.jsx +0 -15
- package/dist/components/VisitReservationLawyer/VisitReservationLawyer.stories.tsx +0 -23
- package/dist/components/VisitReservationLawyer/VisitReservationLawyer.tsx +0 -469
- package/dist/components/YoutubeModal/YoutubeModal.tsx +0 -57
- package/dist/components/banner/TopBanner.module.css +0 -111
- package/dist/components/banner/TopBanner.stories.d.ts +0 -10
- package/dist/components/banner/TopBanner.stories.jsx +0 -22
- package/dist/components/banner/TopBanner.stories.tsx +0 -29
- package/dist/components/banner/TopBanner.tsx +0 -425
- package/dist/components/categoryView/CategoryComponent.tsx +0 -185
- package/dist/components/categoryView/CategoryView.stories.d.ts +0 -16
- package/dist/components/categoryView/CategoryView.stories.jsx +0 -4772
- package/dist/components/categoryView/CategoryView.stories.tsx +0 -4779
- package/dist/components/categoryView/CategoryView.tsx +0 -138
- package/dist/components/categoryView/CenterComponent.tsx +0 -194
- package/dist/components/categoryView/ICategoryViewTypes.ts +0 -11
- package/dist/components/common/data/index.ts +0 -2088
- package/dist/components/common/hook/index.ts +0 -3
- package/dist/components/common/hook/useBrowser.ts +0 -52
- package/dist/components/common/hook/useCountNum.tsx +0 -28
- package/dist/components/common/hook/useElementObserve.ts +0 -44
- package/dist/components/common/index.ts +0 -3
- package/dist/components/common/initialData/index.ts +0 -65
- package/dist/components/common/integrate/index.tsx +0 -107
- package/dist/components/common/strength/index.ts +0 -219
- package/dist/components/common/system/index.tsx +0 -40
- package/dist/components/common/types/faq/index.ts +0 -11
- package/dist/components/common/types/index.ts +0 -55
- package/dist/components/common/types/seo/index.ts +0 -40
- package/dist/components/hook/useBrowser.ts +0 -60
- package/dist/components/hook/useCountNum.tsx +0 -30
- package/dist/components/hook/useScrollRestoration.ts +0 -82
- package/dist/components/hook/useScrollRestorationException.ts +0 -32
- package/dist/components/index.ts +0 -45
- package/dist/components/myCase/MyCase.tsx +0 -48
- package/dist/components/page/Choice/Choice.stories.d.ts +0 -6
- package/dist/components/page/Choice/Choice.stories.jsx +0 -14
- package/dist/components/page/Choice/Choice.stories.tsx +0 -22
- package/dist/components/page/Choice/Choice.tsx +0 -975
- package/dist/components/page/ConsultComplete/ConsultComplete.stories.d.ts +0 -6
- package/dist/components/page/ConsultComplete/ConsultComplete.stories.jsx +0 -13
- package/dist/components/page/ConsultComplete/ConsultComplete.stories.tsx +0 -21
- package/dist/components/page/ConsultComplete/ConsultComplete.tsx +0 -220
- package/dist/components/page/ConsultComplete/complete.module.css +0 -142
- package/dist/components/page/Consulting/Consulting.stories.d.ts +0 -6
- package/dist/components/page/Consulting/Consulting.stories.jsx +0 -13
- package/dist/components/page/Consulting/Consulting.stories.tsx +0 -21
- package/dist/components/page/Consulting/Consulting.tsx +0 -770
- package/dist/components/page/Consulting/IConsultingTypes.tsx +0 -25
- package/dist/components/page/Faq/Detail/FaqDetail.tsx +0 -300
- package/dist/components/page/Faq/Detail/FaqList.stories.d.ts +0 -6
- package/dist/components/page/Faq/Detail/FaqList.stories.jsx +0 -133
- package/dist/components/page/Faq/Detail/FaqList.stories.tsx +0 -155
- package/dist/components/page/Faq/FaqList.stories.d.ts +0 -6
- package/dist/components/page/Faq/FaqList.stories.jsx +0 -76
- package/dist/components/page/Faq/FaqList.stories.tsx +0 -93
- package/dist/components/page/Faq/FaqList.tsx +0 -207
- package/dist/components/page/Faq/GroupList.tsx +0 -63
- package/dist/components/page/Faq/GroupSelectBox.tsx +0 -126
- package/dist/components/page/FieldNew/FieldNew.tsx +0 -351
- package/dist/components/page/FieldNew/FieldNewTypes.ts +0 -30
- package/dist/components/page/FieldNew/FieldNewView.tsx +0 -326
- package/dist/components/page/FieldNew/FieldWrapper.tsx +0 -36
- package/dist/components/page/Integrate/AiSearch.stories.d.ts +0 -6
- package/dist/components/page/Integrate/AiSearch.stories.jsx +0 -13
- package/dist/components/page/Integrate/AiSearch.stories.tsx +0 -21
- package/dist/components/page/Integrate/AiSearch.tsx +0 -114
- package/dist/components/page/Integrate/Broadcast.tsx +0 -268
- package/dist/components/page/Integrate/Field.tsx +0 -136
- package/dist/components/page/Integrate/LawInfo.tsx +0 -155
- package/dist/components/page/Integrate/Lawyer.tsx +0 -413
- package/dist/components/page/Integrate/Map.tsx +0 -273
- package/dist/components/page/Integrate/MenuTab.tsx +0 -68
- package/dist/components/page/Integrate/NoResult.tsx +0 -21
- package/dist/components/page/Integrate/Reply.tsx +0 -186
- package/dist/components/page/Integrate/SearchData.tsx +0 -300
- package/dist/components/page/Integrate/Success.tsx +0 -193
- package/dist/components/page/Integrate/Title.tsx +0 -68
- package/dist/components/page/Integrate/ViewMore.tsx +0 -63
- package/dist/components/page/Integrate/index.module.css +0 -915
- package/dist/components/page/Integrate/integrateType.ts +0 -171
- package/dist/components/page/LawInfoNew/LawInfoNew.tsx +0 -437
- package/dist/components/page/LawInfoNew/LawInfoNewTypes.ts +0 -30
- package/dist/components/page/LawInfoNew/LawInfoNewView.tsx +0 -405
- package/dist/components/page/LawInfoNew/LawInfoWrapper.tsx +0 -36
- package/dist/components/page/Lawfirm/CardSection1.tsx +0 -101
- package/dist/components/page/Lawfirm/CardSection3.tsx +0 -132
- package/dist/components/page/Lawfirm/CardSection5.tsx +0 -38
- package/dist/components/page/Lawfirm/CardSection7.tsx +0 -46
- package/dist/components/page/Lawfirm/Lawfirm.stories.d.ts +0 -6
- package/dist/components/page/Lawfirm/Lawfirm.stories.jsx +0 -14
- package/dist/components/page/Lawfirm/Lawfirm.stories.tsx +0 -21
- package/dist/components/page/Lawfirm/Lawfirm.tsx +0 -34
- package/dist/components/page/Lawfirm/Section1.tsx +0 -221
- package/dist/components/page/Lawfirm/Section2.tsx +0 -121
- package/dist/components/page/Lawfirm/Section3.tsx +0 -274
- package/dist/components/page/Lawfirm/Section4.tsx +0 -75
- package/dist/components/page/Lawfirm/Section5.tsx +0 -174
- package/dist/components/page/Lawfirm/Section6.tsx +0 -66
- package/dist/components/page/Lawfirm/Section7.tsx +0 -201
- package/dist/components/page/Lawfirm/Section8.tsx +0 -145
- package/dist/components/page/Lawfirm/Section9.tsx +0 -70
- package/dist/components/page/Lawfirm/lawfirm.module.css +0 -541
- package/dist/components/page/LawyerDetail/ILawyerDetailTypes.tsx +0 -55
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.d.ts +0 -7
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.jsx +0 -4621
- package/dist/components/page/LawyerDetail/LawyerDetail.stories.tsx +0 -4642
- package/dist/components/page/LawyerDetail/LawyerDetail.tsx +0 -212
- package/dist/components/page/LawyerDetail/component/BasicInfo.tsx +0 -374
- package/dist/components/page/LawyerDetail/component/CareerList.tsx +0 -550
- package/dist/components/page/LawyerDetail/component/Introduce.tsx +0 -58
- package/dist/components/page/LawyerDetail/component/MobileRelatedPage.tsx +0 -115
- package/dist/components/page/LawyerDetail/component/MobileSpeciality.tsx +0 -130
- package/dist/components/page/LawyerDetail/component/MobileTabButton.tsx +0 -35
- package/dist/components/page/LawyerDetail/component/PcTabButton.tsx +0 -180
- package/dist/components/page/LawyerDetail/detail.module.css +0 -602
- package/dist/components/page/Login/AppHeaderContainer.tsx +0 -84
- package/dist/components/page/Login/Login.stories.d.ts +0 -6
- package/dist/components/page/Login/Login.stories.jsx +0 -13
- package/dist/components/page/Login/Login.stories.tsx +0 -21
- package/dist/components/page/Login/Login.tsx +0 -50
- package/dist/components/page/Login/LoginComp/LButton.tsx +0 -36
- package/dist/components/page/Login/LoginComp/Linput.tsx +0 -40
- package/dist/components/page/Login/LoginComp/LoginBreadCrumb.tsx +0 -40
- package/dist/components/page/Login/LoginComp/LoginContainer.tsx +0 -171
- package/dist/components/page/Login/LoginComp/Modal/AlertConfirmModal.tsx +0 -94
- package/dist/components/page/Login/LoginComp/Modal/ConfirmModal.tsx +0 -85
- package/dist/components/page/Login/LoginComp/Modal/TermModal.tsx +0 -67
- package/dist/components/page/Login/LoginComp/Sign/OptionalCheckBox.tsx +0 -148
- package/dist/components/page/Login/LoginComp/Sign/RequiredCheckBox.tsx +0 -94
- package/dist/components/page/Login/LoginComp/SignContainer.tsx +0 -1018
- package/dist/components/page/Login/LoginComp/Update/MyPageOptionalCheckBox.tsx +0 -211
- package/dist/components/page/Login/LoginComp/Withdraw/WithdrawCheckBox.tsx +0 -59
- package/dist/components/page/Login/LoginShareCheckContainer.tsx +0 -213
- package/dist/components/page/Login/Personal.tsx +0 -929
- package/dist/components/page/Login/Sign.tsx +0 -41
- package/dist/components/page/Login/Withdraw.tsx +0 -240
- package/dist/components/page/Login/_api/_server/appLoginInfo.ts +0 -26
- package/dist/components/page/Login/_api/checkThirdPartyCookie.ts +0 -22
- package/dist/components/page/Login/_api/completeUser.ts +0 -18
- package/dist/components/page/Login/_api/confirmNumber.ts +0 -14
- package/dist/components/page/Login/_api/createTokenAndFetchUser.ts +0 -14
- package/dist/components/page/Login/_api/fetchAuthCallback.ts +0 -12
- package/dist/components/page/Login/_api/fetchUserData.ts +0 -19
- package/dist/components/page/Login/_api/getLoginStatus.ts +0 -42
- package/dist/components/page/Login/_api/logout.ts +0 -39
- package/dist/components/page/Login/_api/optionalTermAgree.ts +0 -19
- package/dist/components/page/Login/_api/sendNumber.ts +0 -15
- package/dist/components/page/Login/_api/signRedirect.ts +0 -13
- package/dist/components/page/Login/_api/token.ts +0 -25
- package/dist/components/page/Login/_api/updateUserInfo.ts +0 -17
- package/dist/components/page/Login/_api/withdraw.ts +0 -25
- package/dist/components/page/Login/_fetch/fetch.ts +0 -57
- package/dist/components/page/Login/_fetch/serverFetch.ts +0 -43
- package/dist/components/page/Login/_hooks/useAppLoginDetect.ts +0 -97
- package/dist/components/page/Login/_hooks/useLogout.ts +0 -15
- package/dist/components/page/Login/_hooks/useModalScroll.ts +0 -15
- package/dist/components/page/Login/_lib/goToAIDaeryun.ts +0 -17
- package/dist/components/page/Login/_types/login.ts +0 -7
- package/dist/components/page/Login/_types/termType.ts +0 -16
- package/dist/components/page/MyCase/MyCasePage.tsx +0 -37
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +0 -14
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +0 -143
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +0 -97
- package/dist/components/page/MyCase/[id]/_component/MyCaseDetailPageContainer.tsx +0 -185
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +0 -79
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +0 -214
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +0 -63
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +0 -95
- package/dist/components/page/MyCase/[id]/_component/_document/FileDropZone.tsx +0 -65
- package/dist/components/page/MyCase/[id]/_component/_document/FileUpload.ts +0 -49
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +0 -155
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +0 -59
- package/dist/components/page/MyCase/[id]/_component/_modal/ContractModal.tsx +0 -69
- package/dist/components/page/MyCase/[id]/_component/_modal/FileSuccessModal.tsx +0 -42
- package/dist/components/page/MyCase/[id]/_component/_modal/FileUploadModal.tsx +0 -134
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +0 -39
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +0 -24
- package/dist/components/page/MyCase/_actions/action.ts +0 -205
- package/dist/components/page/MyCase/_component/CaseContainer.tsx +0 -251
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenu.tsx +0 -85
- package/dist/components/page/MyCase/_component/_button/Badge.tsx +0 -25
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +0 -33
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +0 -36
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +0 -104
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +0 -29
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +0 -41
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +0 -5
- package/dist/components/page/MyCase/_component/_layout/IntroWrapper.tsx +0 -72
- package/dist/components/page/MyCase/_component/_loading/Loading.tsx +0 -92
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponent.tsx +0 -133
- package/dist/components/page/MyCase/_component/_table/CaseLine.tsx +0 -129
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +0 -79
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +0 -97
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +0 -31
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +0 -69
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +0 -26
- package/dist/components/page/MyCase/_fetchers/addMyFileUpload.ts +0 -28
- package/dist/components/page/MyCase/_fetchers/getCase.ts +0 -25
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +0 -35
- package/dist/components/page/MyCase/_fetchers/getContact.ts +0 -23
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +0 -25
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +0 -25
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +0 -25
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +0 -25
- package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +0 -13
- package/dist/components/page/MyCase/_type/type.ts +0 -94
- package/dist/components/page/Strength/Strength.stories.d.ts +0 -6
- package/dist/components/page/Strength/Strength.stories.jsx +0 -17
- package/dist/components/page/Strength/Strength.stories.tsx +0 -24
- package/dist/components/page/Strength/Strength.tsx +0 -15
- package/dist/components/page/Strength/StrengthIntro.tsx +0 -357
- package/dist/components/page/Strength/StrengthList.tsx +0 -223
- package/dist/components/page/SuccessNew/SuccessNew.tsx +0 -479
- package/dist/components/page/SuccessNew/SuccessNewType.ts +0 -155
- package/dist/components/page/SuccessNew/SuccessNewView.tsx +0 -400
- package/dist/components/page/SuccessNew/components/ContentList.tsx +0 -151
- package/dist/components/page/SuccessNew/components/FieldCase.tsx +0 -101
- package/dist/components/page/SuccessNew/components/H2Contents.tsx +0 -49
- package/dist/components/page/SuccessNew/components/H3Contents.tsx +0 -58
- package/dist/components/page/SuccessNew/components/LawInfoContentList.tsx +0 -106
- package/dist/components/page/SuccessNew/components/Lawyer.tsx +0 -150
- package/dist/components/page/SuccessNew/components/SeoAdditionalLink.tsx +0 -140
- package/dist/components/page/SuccessNew/components/SuccessCase.tsx +0 -105
- package/dist/components/page/SuccessNew/components/SuccessWrapper.tsx +0 -36
- package/dist/components/page/System/AllocationSystem.tsx +0 -97
- package/dist/components/page/System/ConsultNow.tsx +0 -113
- package/dist/components/page/System/ConsultationSystem.tsx +0 -174
- package/dist/components/page/System/PostSystem.tsx +0 -79
- package/dist/components/page/System/System.stories.d.ts +0 -6
- package/dist/components/page/System/System.stories.jsx +0 -14
- package/dist/components/page/System/System.stories.tsx +0 -21
- package/dist/components/page/System/SystemLayout.tsx +0 -89
- package/dist/components/page/System/SystemPage.tsx +0 -20
- package/dist/components/page/System/SystemTextBox.tsx +0 -35
- package/dist/components/page/System/SystemTitle.tsx +0 -177
- package/dist/components/page/System/SystemWrapper.tsx +0 -38
- package/dist/components/page/index.ts +0 -18
- package/dist/components/routes/gnb.tsx +0 -106
- package/dist/index.ts +0 -2
- package/dist/lib/categoryMenuName.ts +0 -141
- package/dist/lib/conversion.ts +0 -25
- package/dist/lib/index.ts +0 -6
- package/dist/lib/pagination/locale/en_US.js +0 -23
- package/dist/lib/pagination/locale/ko_KR.js +0 -23
- package/dist/lib/powerlink.ts +0 -147
- package/dist/lib/share.ts +0 -61
- package/dist/lib/utils.ts +0 -492
- package/dist/styles/font_style.css +0 -238
- package/dist/styles/observe.module.css +0 -30
|
@@ -1,1060 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Daeryuntalk API 클라이언트 모듈 2025-04-23
|
|
3
|
-
*
|
|
4
|
-
* 이 모듈은 Daeryuntalk 채팅 API와 상호작용하기 위한 함수를 제공
|
|
5
|
-
* 1. 고객 인증
|
|
6
|
-
* 2. 웹소켓 연결 초기화
|
|
7
|
-
* 3. 웹소켓 연결
|
|
8
|
-
* 4. 채팅 문의 관리
|
|
9
|
-
*/
|
|
10
|
-
import {
|
|
11
|
-
IDaeryunTalkResponseWrapper,
|
|
12
|
-
IAuthConnectionDataResponse,
|
|
13
|
-
WebSocketInitDataResponse,
|
|
14
|
-
IChatInquiryMainDataResponse,
|
|
15
|
-
ChatInquiryCreateDataResponse,
|
|
16
|
-
ChatInquiryDetailDataResponse,
|
|
17
|
-
ChatMessage,
|
|
18
|
-
SendMessageResponse,
|
|
19
|
-
ChatInquiryMessageListDataResponse,
|
|
20
|
-
HistoryListResponse,
|
|
21
|
-
RequestConfirmNumberResponse
|
|
22
|
-
} from './type/response';
|
|
23
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
24
|
-
import { ErrorEnum } from '../../_enums/error';
|
|
25
|
-
|
|
26
|
-
// API 기본 URL
|
|
27
|
-
const API_BASE_URL = 'https://chat-client-api.lawmance.com';
|
|
28
|
-
|
|
29
|
-
// API 기본 버전
|
|
30
|
-
export const DEFAULT_API_VERSION = '1.0.0';
|
|
31
|
-
|
|
32
|
-
// API 엔드포인트
|
|
33
|
-
const ENDPOINTS = {
|
|
34
|
-
/* 시작점 */
|
|
35
|
-
AUTHENTICATE: '/chatctm/ctf/crtfica', // 유저 인증
|
|
36
|
-
WEBSOCKET_INIT: '/chatctm/ctf/ws-init', // 웹 소켓 초기화
|
|
37
|
-
/* 채팅 */
|
|
38
|
-
CHAT_INQUIRY_MAIN: '/chatctm/hom/chatinquirymainsearch', // 채팅 문의 메인 조회
|
|
39
|
-
CHAT_INQUIRY_CREATE: '/chatctm/hom/chatinquirycreate', // XXX
|
|
40
|
-
CHAT_INQUIRY_DETAIL: '/chatctm/hom/chatinquirydetailsearch',
|
|
41
|
-
CHAT_INQUIRY_GENERATION: '/chatctm/chi/chatinquirygeneration', // 채팅 문의 생성
|
|
42
|
-
CHAT_INQUIRY_DETAIL_NEW: '/chatctm/chi/chatinquirydetail', // 채팅 문의 상세 조회
|
|
43
|
-
CHAT_INQUIRY_MESSAGE_LIST: '/chatctm/chi/chatinquirymessagelist', // 채팅 문의 메시지 목록 조회
|
|
44
|
-
CHAT_MESSAGE_SEND: '/chatctm/chi/chatinquirymessagesend', // 채팅 문의 메시지 전송
|
|
45
|
-
CHAT_MESSAGE_FILE_URL_REQUEST: '/chatctm/chi/chatinquirymessagefiledownloadurlgeneration', //채팅 문의 메시지 파일 다운로드 URL 생성 요청
|
|
46
|
-
CHAT_MESSAGE_WORKFLOW_START: '/chatctm/chi/chatinquiryworkflowprogress', // 채팅 문의 워크플로우 진행
|
|
47
|
-
CHAT_MESSAGE_WORKFLOW_BACK: '/chatctm/chi/chatinquiryworkflowrollback', // 채팅 문의 워크플로우 되돌리기
|
|
48
|
-
/* 유저 */
|
|
49
|
-
USER_INFO_UPDATE: '/chatctm/chi/individualinformationupdate', //개인 정보 업데이트
|
|
50
|
-
/* 히스토리 */
|
|
51
|
-
HISTORY_PHONE_REQUEST: '/chatctm/his/occupancycertificationnumbersend', // 점유 인증 번호 요청
|
|
52
|
-
HISTORY_PHONE_AUTHENTICATION: '/chatctm/his/occupancycertificationnumberverification', // 점유 인증 번호 검증
|
|
53
|
-
HISTORY_LIST: '/chatctm/his/historychatinquirylistsearch', // 히스토리 채팅 문의 목록 조회
|
|
54
|
-
ATTEND_CHAT_BY_HISTORY: '/chatctm/his/historychatinquiryparticipation', // 채팅문의 참여
|
|
55
|
-
/* 팔로업 알림 인증 */
|
|
56
|
-
FOLLOWUP_ATTENTD: '/chatctm/chi/chatinquiryalarmparticipation' // 채팅 문의 알림 참여
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
// 메인
|
|
60
|
-
export const TEST_CENTER_CODE: string = 'CT0000';
|
|
61
|
-
|
|
62
|
-
// 채팅 메시지 유형 상수
|
|
63
|
-
export const MESSAGE_TYPES = {
|
|
64
|
-
SYSTEM: 'MSP00100001',
|
|
65
|
-
BOT: 'MSP00100002',
|
|
66
|
-
CUSTOMER: 'MSP00100003',
|
|
67
|
-
OPERATOR: 'MSP00100004',
|
|
68
|
-
MACRO: 'MSP00100005'
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
// 재시도
|
|
72
|
-
async function retryable<T>(fn: () => Promise<T>, maxAttempts = 3, delayMs = 350, label = ''): Promise<T> {
|
|
73
|
-
let attempt = 0;
|
|
74
|
-
while (attempt < maxAttempts) {
|
|
75
|
-
try {
|
|
76
|
-
return await fn();
|
|
77
|
-
} catch (error) {
|
|
78
|
-
attempt++;
|
|
79
|
-
console.warn(`[재시도] ${label} ${attempt}회 실패`, error);
|
|
80
|
-
if (attempt >= maxAttempts) throw new Error(`${label} 최대 재시도 초과`);
|
|
81
|
-
await new Promise(res => setTimeout(res, delayMs));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
throw new Error(`${label} 실패`);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* 쿠키 지원이 포함된 기본 fetch 함수
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
async function fetchWithCookies<T>(
|
|
92
|
-
url: string,
|
|
93
|
-
options: RequestInit = {},
|
|
94
|
-
version: string = DEFAULT_API_VERSION
|
|
95
|
-
): Promise<IDaeryunTalkResponseWrapper<T>> {
|
|
96
|
-
const headers = new Headers(options.headers || {});
|
|
97
|
-
|
|
98
|
-
if (!headers.has('Content-Type')) {
|
|
99
|
-
headers.set('Content-Type', 'application/json');
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (typeof window !== 'undefined') {
|
|
103
|
-
const AuthToken = localStorage.getItem('daeryunchatinquirytoken') || '';
|
|
104
|
-
if (AuthToken) {
|
|
105
|
-
headers.set('a', AuthToken);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
headers.set('v', version);
|
|
110
|
-
|
|
111
|
-
const mergedOptions: RequestInit = {
|
|
112
|
-
credentials: 'include',
|
|
113
|
-
...options,
|
|
114
|
-
headers
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
const isAuthRequest = url.includes(ENDPOINTS.AUTHENTICATE);
|
|
118
|
-
|
|
119
|
-
try {
|
|
120
|
-
const response = await fetch(url, mergedOptions);
|
|
121
|
-
|
|
122
|
-
const contentLength = response.headers.get('content-length');
|
|
123
|
-
const isEmpty = contentLength === '0';
|
|
124
|
-
|
|
125
|
-
let data: any = null;
|
|
126
|
-
|
|
127
|
-
try {
|
|
128
|
-
const text = await response.clone().text();
|
|
129
|
-
if (text && text.trim()) {
|
|
130
|
-
data = JSON.parse(text);
|
|
131
|
-
}
|
|
132
|
-
} catch (err) {
|
|
133
|
-
console.error(`[API 응답 파싱 실패] ${url}`, err);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
if (!response.ok || (!isAuthRequest && data?.result_info?.result_type_cd !== 'OK')) {
|
|
137
|
-
// 실패 응답도 서버에서 온 데이터 그대로 반환
|
|
138
|
-
return {
|
|
139
|
-
result_info: data?.result_info ?? {
|
|
140
|
-
result_cd: String(response.status),
|
|
141
|
-
result_type_cd: 'ERROR',
|
|
142
|
-
result_msg: `${response.status} ${response.statusText}`
|
|
143
|
-
},
|
|
144
|
-
data: data?.data ?? (null as any)
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// 성공 응답 처리 (서버 값 그대로)
|
|
149
|
-
return {
|
|
150
|
-
result_info: data?.result_info ?? {
|
|
151
|
-
result_cd: '200',
|
|
152
|
-
result_type_cd: 'OK',
|
|
153
|
-
result_msg: '성공'
|
|
154
|
-
},
|
|
155
|
-
data: data?.data ?? ({} as T)
|
|
156
|
-
};
|
|
157
|
-
} catch (error) {
|
|
158
|
-
console.error(`[API 호출 실패] ${url}`, error);
|
|
159
|
-
return {
|
|
160
|
-
result_info: {
|
|
161
|
-
result_cd: 'FETCH_ERROR',
|
|
162
|
-
result_type_cd: 'ERROR',
|
|
163
|
-
result_msg: error instanceof Error ? error.message : '알 수 없는 오류'
|
|
164
|
-
},
|
|
165
|
-
data: null as any
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* 사용자 인증
|
|
172
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
173
|
-
* @returns 인증 응답
|
|
174
|
-
*/
|
|
175
|
-
|
|
176
|
-
export async function authenticateUser(centerCode: string, version?: string, retry?: boolean): Promise<any> {
|
|
177
|
-
try {
|
|
178
|
-
const body = {
|
|
179
|
-
d: {
|
|
180
|
-
center_code: centerCode
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
// 인증 API 호출
|
|
185
|
-
const response = await fetchWithCookies<IAuthConnectionDataResponse>(
|
|
186
|
-
`${API_BASE_URL}${ENDPOINTS.AUTHENTICATE}`,
|
|
187
|
-
{
|
|
188
|
-
method: 'POST',
|
|
189
|
-
body: JSON.stringify(body)
|
|
190
|
-
},
|
|
191
|
-
version
|
|
192
|
-
);
|
|
193
|
-
|
|
194
|
-
// 빈 응답인 경우에도 성공으로 처리 -> 이거 지워야함
|
|
195
|
-
// if (Object.keys(response).length === 0) {
|
|
196
|
-
// console.log('[인증 성공] 사용자 인증 완료 - 빈 응답 (쿠키만 설정됨)');
|
|
197
|
-
// return { success: true, status: 'authenticated' };
|
|
198
|
-
// }
|
|
199
|
-
|
|
200
|
-
if (typeof window !== 'undefined' && response?.data?.token) {
|
|
201
|
-
localStorage.setItem('daeryunchatinquirytoken', response.data.token);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
console.log('[인증 성공] 사용자 인증 완료', response);
|
|
205
|
-
return response;
|
|
206
|
-
} catch (error) {
|
|
207
|
-
console.error('[인증 실패] 사용자 인증 오류:', error);
|
|
208
|
-
throw error;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* 웹소켓 연결 초기화
|
|
214
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
215
|
-
* @returns 연결 URL과 토큰이 포함된 웹소켓 초기화 데이터
|
|
216
|
-
*/
|
|
217
|
-
export async function initializeWebSocket(
|
|
218
|
-
version?: string
|
|
219
|
-
): Promise<IDaeryunTalkResponseWrapper<WebSocketInitDataResponse>> {
|
|
220
|
-
console.log(
|
|
221
|
-
'[웹소켓 초기화 시작] 웹소켓 연결 초기화 요청',
|
|
222
|
-
version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`
|
|
223
|
-
);
|
|
224
|
-
try {
|
|
225
|
-
const response = await fetchWithCookies<WebSocketInitDataResponse>(
|
|
226
|
-
`${API_BASE_URL}${ENDPOINTS.WEBSOCKET_INIT}`,
|
|
227
|
-
{ method: 'POST' },
|
|
228
|
-
version
|
|
229
|
-
);
|
|
230
|
-
return response;
|
|
231
|
-
} catch (error) {
|
|
232
|
-
console.error('[웹소켓 초기화 실패] 웹소켓 연결 초기화 오류:', error);
|
|
233
|
-
throw error;
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* 웹소켓 연결
|
|
239
|
-
* @param wsUrl 웹소켓 URL
|
|
240
|
-
* @param token 연결 토큰
|
|
241
|
-
* @param onMessage 메시지 핸들러
|
|
242
|
-
* @param onOpen 연결 열림 핸들러
|
|
243
|
-
* @param onClose 연결 닫힘 핸들러
|
|
244
|
-
* @param onError 오류 핸들러
|
|
245
|
-
* @returns 웹소켓 인스턴스
|
|
246
|
-
*/
|
|
247
|
-
let reconnectAttempts = 0;
|
|
248
|
-
const MAX_RECONNECT_ATTEMPTS = 5;
|
|
249
|
-
const RECONNECT_DELAY_MS = 2000;
|
|
250
|
-
|
|
251
|
-
export function connectWebSocket(
|
|
252
|
-
wsUrl: string,
|
|
253
|
-
token: string,
|
|
254
|
-
isOpen: boolean,
|
|
255
|
-
setIsConnected: Dispatch<SetStateAction<boolean | null>>,
|
|
256
|
-
onMessage?: (event: MessageEvent) => void,
|
|
257
|
-
onOpen?: (event: Event) => void,
|
|
258
|
-
onClose?: (event: CloseEvent) => void,
|
|
259
|
-
onError?: (event: Event) => void
|
|
260
|
-
): WebSocket {
|
|
261
|
-
// URL에 토큰을 파라미터로 추가
|
|
262
|
-
const connectionUrl = `${wsUrl}?token=${token}`;
|
|
263
|
-
console.log('[웹소켓 연결 시작] 연결 URL:', connectionUrl);
|
|
264
|
-
|
|
265
|
-
try {
|
|
266
|
-
const socket = new WebSocket(connectionUrl);
|
|
267
|
-
|
|
268
|
-
const setupSocketHandlers = (socket: WebSocket) => {
|
|
269
|
-
socket.onopen = event => {
|
|
270
|
-
console.log('[웹소켓 연결 성공]');
|
|
271
|
-
reconnectAttempts = 0;
|
|
272
|
-
if (onOpen) onOpen(event);
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
socket.onmessage = event => {
|
|
276
|
-
console.log('[웹소켓 메시지 수신]', event.data);
|
|
277
|
-
|
|
278
|
-
try {
|
|
279
|
-
const data = JSON.parse(event.data);
|
|
280
|
-
console.log('📩 New Message (parsed):', data);
|
|
281
|
-
} catch (err) {
|
|
282
|
-
console.error('[웹소켓] JSON 파싱 오류:', err);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
if (onMessage) onMessage(event.data);
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
socket.onclose = async event => {
|
|
289
|
-
console.warn('[웹소켓 종료]', event);
|
|
290
|
-
|
|
291
|
-
if (!isOpen) {
|
|
292
|
-
console.log('[웹소켓 종료] 채팅창이 닫혀있어 재연결하지 않음');
|
|
293
|
-
if (onClose) onClose(event);
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
if (reconnectAttempts < MAX_RECONNECT_ATTEMPTS) {
|
|
298
|
-
reconnectAttempts++;
|
|
299
|
-
console.log(`[재연결 시도] ${reconnectAttempts}회... ${RECONNECT_DELAY_MS}ms 후`);
|
|
300
|
-
await new Promise(res => setTimeout(res, RECONNECT_DELAY_MS));
|
|
301
|
-
|
|
302
|
-
try {
|
|
303
|
-
// 새로운 initData 요청
|
|
304
|
-
const newInitData = await initializeWebSocket(); // 직접 구현한 API 요청 함수
|
|
305
|
-
const newSocket = new WebSocket(
|
|
306
|
-
`${newInitData?.data?.connection_url}?token=${newInitData?.data?.connection_token}`
|
|
307
|
-
);
|
|
308
|
-
if (newSocket) {
|
|
309
|
-
setIsConnected(true);
|
|
310
|
-
} else {
|
|
311
|
-
setIsConnected(false);
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
// 새 소켓에 핸들러 등록
|
|
315
|
-
setupSocketHandlers(newSocket);
|
|
316
|
-
} catch (error) {
|
|
317
|
-
console.log('socket error', error);
|
|
318
|
-
setIsConnected(false);
|
|
319
|
-
}
|
|
320
|
-
} else {
|
|
321
|
-
console.error('[웹소켓 재연결 실패] 최대 재시도 초과');
|
|
322
|
-
if (onClose) onClose(event);
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
socket.onerror = event => {
|
|
327
|
-
console.error('[웹소켓 오류]', event);
|
|
328
|
-
if (onError) onError(event);
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
setupSocketHandlers(socket);
|
|
333
|
-
|
|
334
|
-
return socket;
|
|
335
|
-
} catch (error) {
|
|
336
|
-
console.error('[웹소켓 연결 실패]', error);
|
|
337
|
-
throw error;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* 채팅 문의 메인 조회
|
|
343
|
-
* @param channelNumber 전달받은 채널
|
|
344
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
345
|
-
* @returns 채팅 문의 메인 데이터
|
|
346
|
-
*/
|
|
347
|
-
export async function getChatInquiryMain(
|
|
348
|
-
channelNumber: string,
|
|
349
|
-
version?: string
|
|
350
|
-
): Promise<IDaeryunTalkResponseWrapper<IChatInquiryMainDataResponse>> {
|
|
351
|
-
const body = {
|
|
352
|
-
d: {
|
|
353
|
-
channel_number: channelNumber
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
console.log('body', body);
|
|
357
|
-
|
|
358
|
-
console.log(
|
|
359
|
-
'[채팅 문의 메인 조회 시작] 채널 번호:',
|
|
360
|
-
body.d.channel_number,
|
|
361
|
-
version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`
|
|
362
|
-
);
|
|
363
|
-
try {
|
|
364
|
-
const response = await fetchWithCookies<IChatInquiryMainDataResponse>(
|
|
365
|
-
`${API_BASE_URL}${ENDPOINTS.CHAT_INQUIRY_MAIN}`,
|
|
366
|
-
{
|
|
367
|
-
method: 'POST',
|
|
368
|
-
body: JSON.stringify(body)
|
|
369
|
-
},
|
|
370
|
-
version
|
|
371
|
-
);
|
|
372
|
-
console.log('[채팅 문의 메인 조회 성공]', response);
|
|
373
|
-
return response;
|
|
374
|
-
} catch (error) {
|
|
375
|
-
console.error('[채팅 문의 메인 조회 실패]', error);
|
|
376
|
-
throw error;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* 새 채팅 문의 생성 (개선된 API)
|
|
382
|
-
* @param channelNumber
|
|
383
|
-
* @param currentUrl
|
|
384
|
-
* @param version
|
|
385
|
-
*/
|
|
386
|
-
export async function generateChatInquiry(
|
|
387
|
-
channelNumber: string,
|
|
388
|
-
currentUrl: string,
|
|
389
|
-
version?: string
|
|
390
|
-
): Promise<IDaeryunTalkResponseWrapper<ChatInquiryCreateDataResponse>> {
|
|
391
|
-
console.log('[새 채팅 문의 생성 시작 (개선)]', version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`);
|
|
392
|
-
let channelId = channelNumber;
|
|
393
|
-
if (!channelNumber) {
|
|
394
|
-
const authRes = await authenticateUser(TEST_CENTER_CODE, version);
|
|
395
|
-
channelId = authRes.data.channel_number;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
const body = {
|
|
399
|
-
d: {
|
|
400
|
-
channel_number: channelId,
|
|
401
|
-
current_url: currentUrl
|
|
402
|
-
}
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
try {
|
|
406
|
-
const response = await fetchWithCookies<ChatInquiryCreateDataResponse>(
|
|
407
|
-
`${API_BASE_URL}${ENDPOINTS.CHAT_INQUIRY_GENERATION}`,
|
|
408
|
-
{
|
|
409
|
-
method: 'POST',
|
|
410
|
-
body: JSON.stringify(body)
|
|
411
|
-
},
|
|
412
|
-
version
|
|
413
|
-
);
|
|
414
|
-
console.log('[새 채팅 문의 생성 성공 (개선)] 문의 번호:', response.data.chat_inquiry_number);
|
|
415
|
-
return response;
|
|
416
|
-
} catch (error) {
|
|
417
|
-
console.error('[새 채팅 문의 생성 실패 (개선)]', error);
|
|
418
|
-
throw error;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* 채팅 문의 상세 조회 (개선된 API)
|
|
424
|
-
* @param chatInquiryNumber 채팅 문의 번호
|
|
425
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
426
|
-
* @returns 채팅 문의 상세 정보
|
|
427
|
-
*/
|
|
428
|
-
export async function getChatInquiryDetailNew(
|
|
429
|
-
chat_inquiry_number: string,
|
|
430
|
-
version?: string
|
|
431
|
-
): Promise<IDaeryunTalkResponseWrapper<ChatInquiryDetailDataResponse>> {
|
|
432
|
-
const body = {
|
|
433
|
-
d: {
|
|
434
|
-
chat_inquiry_number: chat_inquiry_number // 채팅문의 번호
|
|
435
|
-
}
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
console.log(
|
|
439
|
-
'[채팅 문의 상세 조회 시작 (개선)] 문의 번호:',
|
|
440
|
-
chat_inquiry_number,
|
|
441
|
-
version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`
|
|
442
|
-
);
|
|
443
|
-
try {
|
|
444
|
-
const response = await fetchWithCookies<ChatInquiryDetailDataResponse>(
|
|
445
|
-
`${API_BASE_URL}${ENDPOINTS.CHAT_INQUIRY_DETAIL_NEW}`,
|
|
446
|
-
{
|
|
447
|
-
method: 'POST',
|
|
448
|
-
body: JSON.stringify(body)
|
|
449
|
-
},
|
|
450
|
-
version
|
|
451
|
-
);
|
|
452
|
-
console.log('[채팅 문의 상세 조회 성공 (개선)]', response);
|
|
453
|
-
return response;
|
|
454
|
-
} catch (error) {
|
|
455
|
-
console.error('[채팅 문의 상세 조회 실패 (개선)]', error);
|
|
456
|
-
throw error;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* 채팅 메세지 목록 조회
|
|
462
|
-
* @param chatInquiryNumber 채팅 문의 번호
|
|
463
|
-
* @param standard_date_time 기준 일시
|
|
464
|
-
* @param size 사이즈
|
|
465
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
466
|
-
* @returns 채팅 메세지 리스트
|
|
467
|
-
*/
|
|
468
|
-
export async function getChatInquiryMessageList(
|
|
469
|
-
chatInquiryNumber: string,
|
|
470
|
-
standardDateTime?: any,
|
|
471
|
-
size?: number,
|
|
472
|
-
version?: string
|
|
473
|
-
): Promise<IDaeryunTalkResponseWrapper<ChatInquiryMessageListDataResponse>> {
|
|
474
|
-
const body = {
|
|
475
|
-
d: {
|
|
476
|
-
chat_inquiry_number: chatInquiryNumber,
|
|
477
|
-
...(standardDateTime && { standard_date_time: standardDateTime }),
|
|
478
|
-
// standard_date_time: standard_date_time ?? new Date().toISOString(),
|
|
479
|
-
size: size ?? 400
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
console.log(
|
|
484
|
-
'[채팅 메세지 리스트] 문의 번호:',
|
|
485
|
-
chatInquiryNumber,
|
|
486
|
-
version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`
|
|
487
|
-
);
|
|
488
|
-
try {
|
|
489
|
-
const response = await fetchWithCookies<ChatInquiryMessageListDataResponse>(
|
|
490
|
-
`${API_BASE_URL}${ENDPOINTS.CHAT_INQUIRY_MESSAGE_LIST}`,
|
|
491
|
-
{
|
|
492
|
-
method: 'POST',
|
|
493
|
-
body: JSON.stringify(body)
|
|
494
|
-
},
|
|
495
|
-
version
|
|
496
|
-
);
|
|
497
|
-
console.log('[채팅 메세지 리스트]', response);
|
|
498
|
-
return response;
|
|
499
|
-
} catch (error) {
|
|
500
|
-
console.error('[채팅 메세지 리스트]', error);
|
|
501
|
-
throw error;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* Daeryuntalk 초기화 완료 흐름
|
|
507
|
-
* 이 함수는 인증부터 웹소켓 연결까지 완전한 흐름을 처리
|
|
508
|
-
* @param onWebSocketConnected 웹소켓 연결 시 콜백
|
|
509
|
-
* @param onWebSocketMessage 메시지 핸들러
|
|
510
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
511
|
-
* @returns 웹소켓 인스턴스 및 문의 데이터
|
|
512
|
-
*/
|
|
513
|
-
export async function initializeDaeryuntalk(
|
|
514
|
-
hashValue: string,
|
|
515
|
-
isOpen: boolean,
|
|
516
|
-
setIsConnected: Dispatch<SetStateAction<boolean | null>>,
|
|
517
|
-
isMobile: boolean,
|
|
518
|
-
onWebSocketConnected?: (socket: WebSocket) => void,
|
|
519
|
-
onWebSocketMessage?: (event: MessageEvent) => void,
|
|
520
|
-
version?: string
|
|
521
|
-
): Promise<{
|
|
522
|
-
inquiryData: IDaeryunTalkResponseWrapper<IChatInquiryMainDataResponse> | null;
|
|
523
|
-
socket: WebSocket | null;
|
|
524
|
-
hashAuth: any;
|
|
525
|
-
errorCode: IDaeryunTalkResponseWrapper<any> | null;
|
|
526
|
-
}> {
|
|
527
|
-
if (typeof window !== 'undefined' && hashValue) {
|
|
528
|
-
localStorage.removeItem('daeryunchatinquirytoken');
|
|
529
|
-
}
|
|
530
|
-
console.log(
|
|
531
|
-
'[Daeryuntalk 초기화 시작] 전체 흐름 실행',
|
|
532
|
-
version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`
|
|
533
|
-
);
|
|
534
|
-
try {
|
|
535
|
-
console.log('[Daeryuntalk 초기화] 전체 흐름 시작');
|
|
536
|
-
let errorData: IDaeryunTalkResponseWrapper<any> | null = null;
|
|
537
|
-
|
|
538
|
-
// 1단계: 사용자 인증
|
|
539
|
-
let authResponse = await retryable(() => authenticateUser(TEST_CENTER_CODE, version), 1, 350, '사용자 인증');
|
|
540
|
-
|
|
541
|
-
console.log('authResponse11', authResponse);
|
|
542
|
-
// 9379809eec4c09ea276496b15b5d2778a2ef7af312c25d95bd2a0f884cb72bf3
|
|
543
|
-
// 만약 만료된 토큰이라면?
|
|
544
|
-
// console.log('authResponse', authResponse);
|
|
545
|
-
// console.log('ErrorEnum.CE_TOKEN_EXPIRED', ErrorEnum.CE_TOKEN_EXPIRED);
|
|
546
|
-
// console.log('authResponse?.result_info?.result_cd', authResponse?.result_info?.result_cd);
|
|
547
|
-
if (authResponse?.result_info?.result_cd === 'OK' || authResponse?.result_info?.result_type_cd === 'OK') {
|
|
548
|
-
} else {
|
|
549
|
-
if (
|
|
550
|
-
authResponse?.result_info?.result_cd === ErrorEnum.CE_TOKEN_EXPIRED ||
|
|
551
|
-
authResponse?.result_info?.result_type_cd === ErrorEnum.CE_TOKEN_EXPIRED
|
|
552
|
-
) {
|
|
553
|
-
// 재인증 시작
|
|
554
|
-
errorData = authResponse;
|
|
555
|
-
console.log('재인증 시작');
|
|
556
|
-
localStorage.removeItem('daeryunchatinquirytoken');
|
|
557
|
-
authResponse = await retryable(
|
|
558
|
-
() => authenticateUser(TEST_CENTER_CODE, version, true),
|
|
559
|
-
3,
|
|
560
|
-
350,
|
|
561
|
-
'사용자 인증'
|
|
562
|
-
);
|
|
563
|
-
} else {
|
|
564
|
-
errorData = authResponse;
|
|
565
|
-
return {
|
|
566
|
-
inquiryData: null,
|
|
567
|
-
socket: null,
|
|
568
|
-
hashAuth: '',
|
|
569
|
-
errorCode: errorData
|
|
570
|
-
};
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
// 2단계: 웹소켓 초기화
|
|
575
|
-
const wsInitData = await retryable(() => initializeWebSocket(version), 3, 350, '웹소켓 초기화');
|
|
576
|
-
|
|
577
|
-
if (!(authResponse?.result_info?.result_cd === 'OK' || authResponse?.result_info?.result_type_cd === 'OK')) {
|
|
578
|
-
errorData = wsInitData;
|
|
579
|
-
return {
|
|
580
|
-
inquiryData: null,
|
|
581
|
-
socket: null,
|
|
582
|
-
hashAuth: '',
|
|
583
|
-
errorCode: errorData
|
|
584
|
-
};
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
// 3단계: 웹소켓 연결
|
|
588
|
-
const socket = await retryable(
|
|
589
|
-
() =>
|
|
590
|
-
new Promise<WebSocket>((resolve, reject) => {
|
|
591
|
-
try {
|
|
592
|
-
const ws = connectWebSocket(
|
|
593
|
-
wsInitData.data.connection_url,
|
|
594
|
-
wsInitData.data.connection_token,
|
|
595
|
-
isOpen,
|
|
596
|
-
setIsConnected,
|
|
597
|
-
onWebSocketMessage,
|
|
598
|
-
() => {
|
|
599
|
-
console.log('[웹소켓 연결 성공]');
|
|
600
|
-
onWebSocketConnected?.(ws);
|
|
601
|
-
resolve(ws);
|
|
602
|
-
},
|
|
603
|
-
() => {},
|
|
604
|
-
event => {
|
|
605
|
-
console.error('[웹소켓 연결 실패]', event);
|
|
606
|
-
reject(new Error('웹소켓 연결 실패'));
|
|
607
|
-
}
|
|
608
|
-
);
|
|
609
|
-
} catch (err) {
|
|
610
|
-
reject(err);
|
|
611
|
-
}
|
|
612
|
-
}),
|
|
613
|
-
3,
|
|
614
|
-
2000,
|
|
615
|
-
'웹소켓 연결'
|
|
616
|
-
);
|
|
617
|
-
|
|
618
|
-
// 4단계: 해시 인증
|
|
619
|
-
let hashAuth = null;
|
|
620
|
-
if (hashValue) {
|
|
621
|
-
hashAuth = await retryable(() => followupAttend({ token: hashValue }), 2, 1000, '해시 인증');
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
// 5단계: 문의 조회
|
|
625
|
-
const chatInquiryData = await retryable(
|
|
626
|
-
() => getChatInquiryMain(authResponse.data.channel_number, version),
|
|
627
|
-
2,
|
|
628
|
-
350,
|
|
629
|
-
'채팅 문의 메인 조회'
|
|
630
|
-
);
|
|
631
|
-
|
|
632
|
-
console.log('[Daeryuntalk 초기화 완료]');
|
|
633
|
-
return {
|
|
634
|
-
inquiryData: chatInquiryData,
|
|
635
|
-
socket,
|
|
636
|
-
hashAuth,
|
|
637
|
-
errorCode: errorData
|
|
638
|
-
};
|
|
639
|
-
} catch (error) {
|
|
640
|
-
console.error('[Daeryuntalk 초기화 실패] 오류 발생:', error);
|
|
641
|
-
throw error;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* 채팅 워크플로우 진행 처리
|
|
647
|
-
*
|
|
648
|
-
* @param chatInquiryNumber 채팅 문의 번호 required
|
|
649
|
-
* @param messageNumber 메시지 번호 required
|
|
650
|
-
* @param workFlowNumber 워크플로우 번호 required
|
|
651
|
-
* @param objectNumber 오브젝트 번호 required
|
|
652
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
653
|
-
* @returns 전송된 메시지 데이터
|
|
654
|
-
*/
|
|
655
|
-
export async function chatWorkFlow(
|
|
656
|
-
chatInquiryNumber: string,
|
|
657
|
-
messageNumber: string,
|
|
658
|
-
workFlowNumber: string,
|
|
659
|
-
objectNumber: string,
|
|
660
|
-
version?: string
|
|
661
|
-
): Promise<IDaeryunTalkResponseWrapper<SendMessageResponse>> {
|
|
662
|
-
const body = {
|
|
663
|
-
d: {
|
|
664
|
-
chat_inquiry_number: chatInquiryNumber,
|
|
665
|
-
message_number: messageNumber,
|
|
666
|
-
work_flow_number: workFlowNumber,
|
|
667
|
-
object_number: objectNumber
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
console.log(
|
|
672
|
-
'[채팅 워크플로우 시작]',
|
|
673
|
-
'문의 번호:',
|
|
674
|
-
chatInquiryNumber,
|
|
675
|
-
'메시지 번호:',
|
|
676
|
-
messageNumber,
|
|
677
|
-
'워크플로우 번호:',
|
|
678
|
-
workFlowNumber,
|
|
679
|
-
'오브젝트 번호:',
|
|
680
|
-
objectNumber,
|
|
681
|
-
version ? `버전: ${version}` : '기본 버전: 1.0.0'
|
|
682
|
-
);
|
|
683
|
-
try {
|
|
684
|
-
const response = await fetchWithCookies<any>(
|
|
685
|
-
`${API_BASE_URL}${ENDPOINTS.CHAT_MESSAGE_WORKFLOW_START}`,
|
|
686
|
-
{
|
|
687
|
-
method: 'POST',
|
|
688
|
-
body: JSON.stringify(body)
|
|
689
|
-
},
|
|
690
|
-
version
|
|
691
|
-
);
|
|
692
|
-
console.log('[채팅 워크플로우 시작 성공]', response);
|
|
693
|
-
return response;
|
|
694
|
-
} catch (error) {
|
|
695
|
-
console.error('[채팅 워크플로우 시작 실패]', error);
|
|
696
|
-
throw error;
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* 채팅 워크플로우 되돌리기
|
|
702
|
-
*
|
|
703
|
-
* @param chatInquiryNumber 채팅 문의 번호 required
|
|
704
|
-
* @param messageNumber 메시지 번호 required
|
|
705
|
-
* @param workFlowNavigationCode 워크플로우네비게이션코드 번호 required
|
|
706
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
707
|
-
* @returns 전송된 메시지 데이터
|
|
708
|
-
*/
|
|
709
|
-
export async function chatWorkFlowBack(
|
|
710
|
-
chatInquiryNumber: string,
|
|
711
|
-
messageNumber: string,
|
|
712
|
-
workFlowNavigationCode: string,
|
|
713
|
-
version?: string
|
|
714
|
-
): Promise<IDaeryunTalkResponseWrapper<null>> {
|
|
715
|
-
const body = {
|
|
716
|
-
d: {
|
|
717
|
-
chat_inquiry_number: chatInquiryNumber,
|
|
718
|
-
message_number: messageNumber,
|
|
719
|
-
work_flow_navigation_code: workFlowNavigationCode
|
|
720
|
-
}
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
console.log(
|
|
724
|
-
'[채팅 워크플로우 되돌리기 시작]',
|
|
725
|
-
'문의 번호:',
|
|
726
|
-
chatInquiryNumber,
|
|
727
|
-
'메시지 번호:',
|
|
728
|
-
messageNumber,
|
|
729
|
-
'워크플로우네비게이션코드 번호:',
|
|
730
|
-
workFlowNavigationCode,
|
|
731
|
-
version ? `버전: ${version}` : '기본 버전: 1.0.0'
|
|
732
|
-
);
|
|
733
|
-
try {
|
|
734
|
-
const response = await fetchWithCookies<any>(
|
|
735
|
-
`${API_BASE_URL}${ENDPOINTS.CHAT_MESSAGE_WORKFLOW_BACK}`,
|
|
736
|
-
{
|
|
737
|
-
method: 'POST',
|
|
738
|
-
body: JSON.stringify(body)
|
|
739
|
-
},
|
|
740
|
-
version
|
|
741
|
-
);
|
|
742
|
-
console.log('[채팅 워크플로우 되돌리기 성공]', response);
|
|
743
|
-
return response;
|
|
744
|
-
} catch (error) {
|
|
745
|
-
console.error('[채팅 워크플로우 되돌리기 실패]', error);
|
|
746
|
-
throw error;
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* 채팅 메시지 전송
|
|
752
|
-
* @param chatInquiryNumber 채팅 문의 번호
|
|
753
|
-
* @param messageText 메시지 내용
|
|
754
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
755
|
-
* @returns 전송된 메시지 데이터
|
|
756
|
-
*/
|
|
757
|
-
export async function sendChatMessage(
|
|
758
|
-
chatInquiryNumber: string,
|
|
759
|
-
htmlContent: string,
|
|
760
|
-
jsonData: any,
|
|
761
|
-
version?: string
|
|
762
|
-
): Promise<IDaeryunTalkResponseWrapper<SendMessageResponse>> {
|
|
763
|
-
if (!chatInquiryNumber) {
|
|
764
|
-
throw new Error('채팅 메시지 전송 실패: 문의 번호가 없음');
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
if (!htmlContent) {
|
|
768
|
-
throw new Error('채팅 메시지 전송 실패: 메시지가 없음');
|
|
769
|
-
}
|
|
770
|
-
if (!jsonData) {
|
|
771
|
-
throw new Error('채팅 메시지 전송 실패: json 데이터 없음');
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
const body = {
|
|
775
|
-
d: {
|
|
776
|
-
chat_inquiry_number: chatInquiryNumber, // required
|
|
777
|
-
html_content: htmlContent, // required, tiptap html
|
|
778
|
-
json_data: jsonData // required, tiptab json
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
console.log(
|
|
783
|
-
'[채팅 메시지 전송 시작] 문의 번호:',
|
|
784
|
-
chatInquiryNumber,
|
|
785
|
-
'메시지:',
|
|
786
|
-
htmlContent,
|
|
787
|
-
version ? `버전: ${version}` : `기본 버전: ${DEFAULT_API_VERSION}`
|
|
788
|
-
);
|
|
789
|
-
try {
|
|
790
|
-
const response = await fetchWithCookies<SendMessageResponse>(
|
|
791
|
-
`${API_BASE_URL}${ENDPOINTS.CHAT_MESSAGE_SEND}`,
|
|
792
|
-
{
|
|
793
|
-
method: 'POST',
|
|
794
|
-
body: JSON.stringify(body)
|
|
795
|
-
},
|
|
796
|
-
version
|
|
797
|
-
);
|
|
798
|
-
console.log('[채팅 메시지 전송 성공]', response);
|
|
799
|
-
return response;
|
|
800
|
-
} catch (error) {
|
|
801
|
-
console.error('[채팅 메시지 전송 실패]', error);
|
|
802
|
-
throw error;
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* 채팅 개인 정보 업데이트
|
|
808
|
-
* @param chatInquiryNumber 채팅 문의 번호
|
|
809
|
-
* @param messageNumber 해당 채팅 번호
|
|
810
|
-
* @param name 이름
|
|
811
|
-
* @param cellPhoneNumber 전화번호
|
|
812
|
-
* @param version API 버전 (기본값: 1.0.0)
|
|
813
|
-
* @returns 전송된 메시지 데이터
|
|
814
|
-
*/
|
|
815
|
-
export async function chatUserUpdate(
|
|
816
|
-
chatInquiryNumber: string,
|
|
817
|
-
messageNumber: string,
|
|
818
|
-
name: string,
|
|
819
|
-
cellPhoneNumber: string,
|
|
820
|
-
version?: string
|
|
821
|
-
): Promise<IDaeryunTalkResponseWrapper<any>> {
|
|
822
|
-
const body = {
|
|
823
|
-
d: {
|
|
824
|
-
chat_inquiry_number: chatInquiryNumber, // required
|
|
825
|
-
message_number: messageNumber, // required
|
|
826
|
-
name: name, // required
|
|
827
|
-
cell_phone_number: cellPhoneNumber // required
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
|
|
831
|
-
console.log('[채팅 개인 정보 업데이트] 시작');
|
|
832
|
-
try {
|
|
833
|
-
const response = await fetchWithCookies<any>(
|
|
834
|
-
`${API_BASE_URL}${ENDPOINTS.USER_INFO_UPDATE}`,
|
|
835
|
-
{
|
|
836
|
-
method: 'POST',
|
|
837
|
-
body: JSON.stringify(body)
|
|
838
|
-
},
|
|
839
|
-
version
|
|
840
|
-
);
|
|
841
|
-
console.log('[채팅 메시지 전송 성공]', response);
|
|
842
|
-
return response;
|
|
843
|
-
} catch (error) {
|
|
844
|
-
console.error('[채팅 메시지 전송 실패]', error);
|
|
845
|
-
throw error;
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
/**
|
|
850
|
-
* 채팅문의 메시지 파일 다운로드 URL 생성
|
|
851
|
-
* @param chatInquiryNumber 채팅문의번호
|
|
852
|
-
* @param fileNumber 파일번호
|
|
853
|
-
* @param version
|
|
854
|
-
*/
|
|
855
|
-
export const getMessageFileDownloadUrl = async ({
|
|
856
|
-
chatInquiryNumber,
|
|
857
|
-
fileNumber,
|
|
858
|
-
version = DEFAULT_API_VERSION
|
|
859
|
-
}: {
|
|
860
|
-
chatInquiryNumber: string; // required
|
|
861
|
-
fileNumber: string;
|
|
862
|
-
version?: string;
|
|
863
|
-
}) => {
|
|
864
|
-
const consoleName = '채팅문의 메시지 파일 다운로드 URL 생성';
|
|
865
|
-
try {
|
|
866
|
-
const body = {
|
|
867
|
-
d: {
|
|
868
|
-
chat_inquiry_number: chatInquiryNumber, // required
|
|
869
|
-
file_number: fileNumber // required
|
|
870
|
-
}
|
|
871
|
-
};
|
|
872
|
-
console.log(`[${consoleName} 진행]`);
|
|
873
|
-
const response = await fetchWithCookies<{ url: string }>(
|
|
874
|
-
`${API_BASE_URL}${ENDPOINTS.CHAT_MESSAGE_FILE_URL_REQUEST}`,
|
|
875
|
-
{
|
|
876
|
-
method: 'POST',
|
|
877
|
-
body: JSON.stringify(body)
|
|
878
|
-
},
|
|
879
|
-
version
|
|
880
|
-
);
|
|
881
|
-
|
|
882
|
-
console.log(`[${consoleName} 완료]`, response);
|
|
883
|
-
return response;
|
|
884
|
-
} catch (error) {
|
|
885
|
-
console.error(`[${consoleName} 실패] 오류:`, error);
|
|
886
|
-
throw error;
|
|
887
|
-
}
|
|
888
|
-
};
|
|
889
|
-
|
|
890
|
-
// /* 히스토리 */
|
|
891
|
-
// HISTORY_PHONE_REQUEST: '/chatctm/his/occupancycertificationnumbersend', // 점유 인증 번호 요청
|
|
892
|
-
// HISTORY_PHONE_AUTHENTICATION: '/chatctm/his/occupancycertificationnumberverification', // 점유 인증 번호 검증
|
|
893
|
-
// HISTORY_LIST: '/chatctm/his/historychatinquirylistsearch' // 히스토리 채팅 문의 목록 조회
|
|
894
|
-
|
|
895
|
-
/**
|
|
896
|
-
* 점유 인증 번호 요청
|
|
897
|
-
* @param name
|
|
898
|
-
* @param cellPhoneNumber
|
|
899
|
-
* @param version
|
|
900
|
-
*/
|
|
901
|
-
export const requestPhone = async ({
|
|
902
|
-
name,
|
|
903
|
-
cellPhoneNumber,
|
|
904
|
-
version = DEFAULT_API_VERSION
|
|
905
|
-
}: {
|
|
906
|
-
name: string; // required
|
|
907
|
-
cellPhoneNumber: string;
|
|
908
|
-
version?: string;
|
|
909
|
-
}) => {
|
|
910
|
-
const consoleName = '점유 인증 번호 요청';
|
|
911
|
-
try {
|
|
912
|
-
const body = {
|
|
913
|
-
d: {
|
|
914
|
-
name: name, // required
|
|
915
|
-
cell_phone_number: cellPhoneNumber // required
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
console.log(`[${consoleName} 진행]`);
|
|
919
|
-
const response = await fetchWithCookies<RequestConfirmNumberResponse>(
|
|
920
|
-
`${API_BASE_URL}${ENDPOINTS.HISTORY_PHONE_REQUEST}`,
|
|
921
|
-
{
|
|
922
|
-
method: 'POST',
|
|
923
|
-
body: JSON.stringify(body)
|
|
924
|
-
},
|
|
925
|
-
version
|
|
926
|
-
);
|
|
927
|
-
|
|
928
|
-
console.log(`[${consoleName} 완료]`, response);
|
|
929
|
-
return response;
|
|
930
|
-
} catch (error) {
|
|
931
|
-
console.error(`[${consoleName} 실패] 오류:`, error);
|
|
932
|
-
throw error;
|
|
933
|
-
}
|
|
934
|
-
};
|
|
935
|
-
|
|
936
|
-
/**
|
|
937
|
-
* 점유 인증 번호 검증
|
|
938
|
-
* @param name
|
|
939
|
-
* @param cellPhoneNumber
|
|
940
|
-
* @param certificationNumber
|
|
941
|
-
* @param version
|
|
942
|
-
*/
|
|
943
|
-
export const historyPhoneAuth = async ({
|
|
944
|
-
name,
|
|
945
|
-
cellPhoneNumber,
|
|
946
|
-
certificationNumber,
|
|
947
|
-
version = DEFAULT_API_VERSION
|
|
948
|
-
}: {
|
|
949
|
-
name: string; // required
|
|
950
|
-
cellPhoneNumber: string;
|
|
951
|
-
certificationNumber: string;
|
|
952
|
-
version?: string;
|
|
953
|
-
}) => {
|
|
954
|
-
const consoleName = '점유 인증 번호 검증';
|
|
955
|
-
try {
|
|
956
|
-
const body = {
|
|
957
|
-
d: {
|
|
958
|
-
name: name, // required
|
|
959
|
-
cell_phone_number: cellPhoneNumber, // required
|
|
960
|
-
certification_number: certificationNumber // required
|
|
961
|
-
}
|
|
962
|
-
};
|
|
963
|
-
console.log(`[${consoleName} 진행]`);
|
|
964
|
-
const response = await fetchWithCookies<unknown>(
|
|
965
|
-
`${API_BASE_URL}${ENDPOINTS.HISTORY_PHONE_AUTHENTICATION}`,
|
|
966
|
-
{
|
|
967
|
-
method: 'POST',
|
|
968
|
-
body: JSON.stringify(body)
|
|
969
|
-
},
|
|
970
|
-
version
|
|
971
|
-
);
|
|
972
|
-
|
|
973
|
-
console.log(`[${consoleName} 완료]`, response);
|
|
974
|
-
return response;
|
|
975
|
-
} catch (error) {
|
|
976
|
-
console.error(`[${consoleName} 실패] 오류:`, error);
|
|
977
|
-
throw error;
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
|
-
|
|
981
|
-
export const getHistoryList = async ({ version = DEFAULT_API_VERSION }: { version?: string }) => {
|
|
982
|
-
const consoleName = '히스토리 채팅 문의 목록 조회';
|
|
983
|
-
try {
|
|
984
|
-
console.log(`[${consoleName} 진행]`);
|
|
985
|
-
const response = await fetchWithCookies<HistoryListResponse>(
|
|
986
|
-
`${API_BASE_URL}${ENDPOINTS.HISTORY_LIST}`,
|
|
987
|
-
{
|
|
988
|
-
method: 'POST'
|
|
989
|
-
// body: JSON.stringify(body)
|
|
990
|
-
},
|
|
991
|
-
version
|
|
992
|
-
);
|
|
993
|
-
|
|
994
|
-
console.log(`[${consoleName} 완료]`, response);
|
|
995
|
-
return response;
|
|
996
|
-
} catch (error) {
|
|
997
|
-
console.error(`[${consoleName} 실패] 오류:`, error);
|
|
998
|
-
throw error;
|
|
999
|
-
}
|
|
1000
|
-
};
|
|
1001
|
-
|
|
1002
|
-
export const attendChatRoomByHistory = async ({
|
|
1003
|
-
chatInquiryNumber,
|
|
1004
|
-
version = DEFAULT_API_VERSION
|
|
1005
|
-
}: {
|
|
1006
|
-
chatInquiryNumber: string;
|
|
1007
|
-
version?: string;
|
|
1008
|
-
}) => {
|
|
1009
|
-
const consoleName = '히스토리 채팅 문의 참여';
|
|
1010
|
-
try {
|
|
1011
|
-
console.log(`[${consoleName} 진행]`);
|
|
1012
|
-
|
|
1013
|
-
const body = {
|
|
1014
|
-
d: {
|
|
1015
|
-
chat_inquiry_number: chatInquiryNumber // required
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
const response = await fetchWithCookies<HistoryListResponse>(
|
|
1019
|
-
`${API_BASE_URL}${ENDPOINTS.ATTEND_CHAT_BY_HISTORY}`,
|
|
1020
|
-
{
|
|
1021
|
-
method: 'POST',
|
|
1022
|
-
body: JSON.stringify(body)
|
|
1023
|
-
},
|
|
1024
|
-
version
|
|
1025
|
-
);
|
|
1026
|
-
|
|
1027
|
-
console.log(`[${consoleName} 완료]`, response);
|
|
1028
|
-
return response;
|
|
1029
|
-
} catch (error) {
|
|
1030
|
-
console.error(`[${consoleName} 실패] 오류:`, error);
|
|
1031
|
-
throw error;
|
|
1032
|
-
}
|
|
1033
|
-
};
|
|
1034
|
-
|
|
1035
|
-
export const followupAttend = async ({ token, version = DEFAULT_API_VERSION }: { token: string; version?: string }) => {
|
|
1036
|
-
const consoleName = '히스토리 채팅 문의 참여';
|
|
1037
|
-
try {
|
|
1038
|
-
console.log(`[${consoleName} 진행]`);
|
|
1039
|
-
|
|
1040
|
-
const body = {
|
|
1041
|
-
d: {
|
|
1042
|
-
token: token // required
|
|
1043
|
-
}
|
|
1044
|
-
};
|
|
1045
|
-
const response = await fetchWithCookies<HistoryListResponse>(
|
|
1046
|
-
`${API_BASE_URL}${ENDPOINTS.FOLLOWUP_ATTENTD}`,
|
|
1047
|
-
{
|
|
1048
|
-
method: 'POST',
|
|
1049
|
-
body: JSON.stringify(body)
|
|
1050
|
-
},
|
|
1051
|
-
version
|
|
1052
|
-
);
|
|
1053
|
-
|
|
1054
|
-
console.log(`[${consoleName} 완료]`, response);
|
|
1055
|
-
return response;
|
|
1056
|
-
} catch (error) {
|
|
1057
|
-
console.error(`[${consoleName} 실패] 오류:`, error);
|
|
1058
|
-
throw error;
|
|
1059
|
-
}
|
|
1060
|
-
};
|