@phonghq/go-chat 1.0.3 → 1.0.4

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.
Files changed (296) hide show
  1. package/dist/go-chat.es.js +6578 -6530
  2. package/dist/go-chat.umd.js +14 -14
  3. package/dist/style.css +1 -1
  4. package/package.json +1 -1
  5. package/dist/assets/icons/IconArrowLeft.vue.d.ts +0 -2
  6. package/dist/assets/icons/IconPhone.vue.d.ts +0 -2
  7. package/dist/assets/icons/IconPlan.vue.d.ts +0 -2
  8. package/dist/assets/icons/IconPlus.vue.d.ts +0 -2
  9. package/dist/assets/icons/IconSearch.vue.d.ts +0 -32
  10. package/dist/assets/icons/call/IconMic.vue.d.ts +0 -14
  11. package/dist/assets/icons/call/IconPhone.vue.d.ts +0 -2
  12. package/dist/assets/icons/call/IconPhoneCancel.vue.d.ts +0 -2
  13. package/dist/assets/icons/call/IconSpeaker.vue.d.ts +0 -14
  14. package/dist/assets/icons/customer-appointment/IconFilter.vue.d.ts +0 -2
  15. package/dist/assets/icons/customer-detail/IconArrow.vue.d.ts +0 -2
  16. package/dist/assets/icons/customer-detail/IconCheck.vue.d.ts +0 -2
  17. package/dist/assets/icons/customer-detail/IconDate.vue.d.ts +0 -2
  18. package/dist/assets/icons/customer-detail/IconGroup.vue.d.ts +0 -2
  19. package/dist/assets/icons/customer-detail/IconMessage.vue.d.ts +0 -2
  20. package/dist/assets/icons/customer-detail/IconNote.vue.d.ts +0 -2
  21. package/dist/assets/icons/customer-detail/IconPhone.vue.d.ts +0 -2
  22. package/dist/assets/icons/customer-detail/IconPin.vue.d.ts +0 -2
  23. package/dist/assets/icons/customer-detail/IconSearch.vue.d.ts +0 -2
  24. package/dist/chat/App.vue.d.ts +0 -5
  25. package/dist/chat/main.d.ts +0 -6
  26. package/dist/chat/page/customer-appointment/CustomerAppointment.vue.d.ts +0 -2
  27. package/dist/chat/page/customer-check-in/CollapseCheckIn.vue.d.ts +0 -12
  28. package/dist/chat/page/customer-check-in/CustomerCheckIn.vue.d.ts +0 -2
  29. package/dist/chat/page/customer-detail/CustomerDetail.vue.d.ts +0 -7
  30. package/dist/chat/page/customer-detail/SubInformation.vue.d.ts +0 -16
  31. package/dist/chat/page/error/Error.vue.d.ts +0 -2
  32. package/dist/chat/page/home/ChatList.vue.d.ts +0 -20
  33. package/dist/chat/page/home/ChatMessage.vue.d.ts +0 -16
  34. package/dist/chat/page/home/Home.vue.d.ts +0 -14
  35. package/dist/chat/page/home/HomeHeader.vue.d.ts +0 -10
  36. package/dist/chat/page/home/InputChat.vue.d.ts +0 -19
  37. package/dist/chat/page/home/NewCustomer.vue.d.ts +0 -6
  38. package/dist/components/ListenEvent.vue.d.ts +0 -2
  39. package/dist/components/chat/ScrollEvent/ScrollEvent.vue.d.ts +0 -22
  40. package/dist/components/chat/call/Calling.vue.d.ts +0 -7
  41. package/dist/components/chat/card/CardCustomerDetail.vue.d.ts +0 -13
  42. package/dist/components/chat/common/collapse/CollapseBase.vue.d.ts +0 -20
  43. package/dist/components/chat/common/input/InputSearch.vue.d.ts +0 -16
  44. package/dist/components/chat/common/popover/PopoverBase.vue.d.ts +0 -35
  45. package/dist/components/chat/common/spin/BaseSpin.vue.d.ts +0 -2
  46. package/dist/components/chat/customer/Avatar.vue.d.ts +0 -11
  47. package/dist/components/chat/layout/mobile/Footer.vue.d.ts +0 -2
  48. package/dist/components/common/CustomLoading.vue.d.ts +0 -2
  49. package/dist/components/common/Notification/NotificationDescription.vue.d.ts +0 -7
  50. package/dist/components/common/button/ButtonBase.vue.d.ts +0 -22
  51. package/dist/components/common/button/ButtonToggle.vue.d.ts +0 -20
  52. package/dist/components/common/checkbox/CCheckboxNumber.vue.d.ts +0 -16
  53. package/dist/components/common/collapse/BaseCollapse.vue.d.ts +0 -12
  54. package/dist/components/common/collapse/BaseCollapseItem.vue.d.ts +0 -4
  55. package/dist/components/common/drawer/DrawerBase.vue.d.ts +0 -39
  56. package/dist/components/common/dropdown/DropdownBase.vue.d.ts +0 -21
  57. package/dist/components/common/input/CInputSearch.vue.d.ts +0 -14
  58. package/dist/components/common/modal/ModalBase.vue.d.ts +0 -35
  59. package/dist/components/common/popover/PopoverBase.vue.d.ts +0 -3
  60. package/dist/components/common/slider/BaseSlider.vue.d.ts +0 -11
  61. package/dist/components/common/spin/CSpin.vue.d.ts +0 -9
  62. package/dist/components/common/tooltip/TooltipBase.vue.d.ts +0 -2
  63. package/dist/components/layout/Blank.vue.d.ts +0 -9
  64. package/dist/components/layout/Default.vue.d.ts +0 -9
  65. package/dist/components/modal/Confirm.vue.d.ts +0 -2
  66. package/dist/components/ui/button/CButton.vue.d.ts +0 -19
  67. package/dist/components/ui/button/c-button.d.ts +0 -7
  68. package/dist/components/ui/checkbox/Checkbox.vue.d.ts +0 -18
  69. package/dist/components/ui/checkbox/index.d.ts +0 -1
  70. package/dist/components/ui/collapsible/Collapsible.vue.d.ts +0 -16
  71. package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +0 -10
  72. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +0 -10
  73. package/dist/components/ui/collapsible/index.d.ts +0 -3
  74. package/dist/components/ui/dialog/Dialog.vue.d.ts +0 -14
  75. package/dist/components/ui/dialog/DialogClose.vue.d.ts +0 -10
  76. package/dist/components/ui/dialog/DialogContent.vue.d.ts +0 -29
  77. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +0 -14
  78. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +0 -13
  79. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +0 -13
  80. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +0 -30
  81. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +0 -14
  82. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +0 -10
  83. package/dist/components/ui/dialog/index.d.ts +0 -9
  84. package/dist/components/ui/drawer/Drawer.vue.d.ts +0 -26
  85. package/dist/components/ui/drawer/DrawerContent.vue.d.ts +0 -33
  86. package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +0 -14
  87. package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +0 -13
  88. package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +0 -13
  89. package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +0 -7
  90. package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +0 -14
  91. package/dist/components/ui/drawer/index.d.ts +0 -8
  92. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +0 -14
  93. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +0 -20
  94. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -28
  95. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -10
  96. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -15
  97. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -15
  98. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +0 -14
  99. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +0 -18
  100. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -7
  101. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
  102. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -14
  103. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -30
  104. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -14
  105. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -10
  106. package/dist/components/ui/dropdown-menu/index.d.ts +0 -15
  107. package/dist/components/ui/popover/Popover.vue.d.ts +0 -14
  108. package/dist/components/ui/popover/PopoverContent.vue.d.ts +0 -28
  109. package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +0 -10
  110. package/dist/components/ui/popover/index.d.ts +0 -3
  111. package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +0 -18
  112. package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +0 -7
  113. package/dist/components/ui/radio-group/index.d.ts +0 -2
  114. package/dist/components/ui/slider/Slider.vue.d.ts +0 -13
  115. package/dist/components/ui/slider/index.d.ts +0 -1
  116. package/dist/components/ui/switch/Switch.vue.d.ts +0 -18
  117. package/dist/components/ui/switch/index.d.ts +0 -1
  118. package/dist/composable/useCallHelper.d.ts +0 -23
  119. package/dist/composable/useInitData.d.ts +0 -11
  120. package/dist/composable/useModalConfirm.d.ts +0 -5
  121. package/dist/constant/color.d.ts +0 -22
  122. package/dist/constant/datetime.d.ts +0 -5
  123. package/dist/constant/general.d.ts +0 -8
  124. package/dist/constant/message.d.ts +0 -8
  125. package/dist/constant/mqtt.d.ts +0 -4
  126. package/dist/constant/user.d.ts +0 -8
  127. package/dist/lib/utils.d.ts +0 -2
  128. package/dist/plugins/axios-gci.d.ts +0 -3
  129. package/dist/plugins/axios.d.ts +0 -3
  130. package/dist/plugins/mqtt.d.ts +0 -10
  131. package/dist/plugins/sdk.d.ts +0 -19
  132. package/dist/plugins/websocket.d.ts +0 -4
  133. package/dist/test/assets/icons/IconArrowLeft.vue.js +0 -29
  134. package/dist/test/assets/icons/IconPhone.vue.js +0 -19
  135. package/dist/test/assets/icons/IconPlan.vue.js +0 -19
  136. package/dist/test/assets/icons/IconPlus.vue.js +0 -22
  137. package/dist/test/assets/icons/IconSearch.vue.js +0 -68
  138. package/dist/test/assets/icons/call/IconMic.vue.js +0 -123
  139. package/dist/test/assets/icons/call/IconPhone.vue.js +0 -35
  140. package/dist/test/assets/icons/call/IconPhoneCancel.vue.js +0 -35
  141. package/dist/test/assets/icons/call/IconSpeaker.vue.js +0 -62
  142. package/dist/test/assets/icons/customer-appointment/IconFilter.vue.js +0 -53
  143. package/dist/test/assets/icons/customer-detail/IconArrow.vue.js +0 -22
  144. package/dist/test/assets/icons/customer-detail/IconCheck.vue.js +0 -27
  145. package/dist/test/assets/icons/customer-detail/IconDate.vue.js +0 -43
  146. package/dist/test/assets/icons/customer-detail/IconGroup.vue.js +0 -48
  147. package/dist/test/assets/icons/customer-detail/IconMessage.vue.js +0 -28
  148. package/dist/test/assets/icons/customer-detail/IconNote.vue.js +0 -29
  149. package/dist/test/assets/icons/customer-detail/IconPhone.vue.js +0 -21
  150. package/dist/test/assets/icons/customer-detail/IconPin.vue.js +0 -29
  151. package/dist/test/assets/icons/customer-detail/IconSearch.vue.js +0 -29
  152. package/dist/test/chat/App.vue.js +0 -502
  153. package/dist/test/chat/main.js +0 -6
  154. package/dist/test/chat/page/customer-appointment/CustomerAppointment.vue.js +0 -207
  155. package/dist/test/chat/page/customer-check-in/CollapseCheckIn.vue.js +0 -80
  156. package/dist/test/chat/page/customer-check-in/CustomerCheckIn.vue.js +0 -136
  157. package/dist/test/chat/page/customer-detail/CustomerDetail.vue.js +0 -235
  158. package/dist/test/chat/page/customer-detail/SubInformation.vue.js +0 -102
  159. package/dist/test/chat/page/error/Error.vue.js +0 -64
  160. package/dist/test/chat/page/home/ChatList.vue.js +0 -380
  161. package/dist/test/chat/page/home/ChatMessage.vue.js +0 -271
  162. package/dist/test/chat/page/home/Home.vue.js +0 -327
  163. package/dist/test/chat/page/home/HomeHeader.vue.js +0 -122
  164. package/dist/test/chat/page/home/InputChat.vue.js +0 -226
  165. package/dist/test/chat/page/home/NewCustomer.vue.js +0 -82
  166. package/dist/test/components/ListenEvent.vue.js +0 -45
  167. package/dist/test/components/chat/ScrollEvent/ScrollEvent.vue.js +0 -197
  168. package/dist/test/components/chat/call/Calling.vue.js +0 -291
  169. package/dist/test/components/chat/card/CardCustomerDetail.vue.js +0 -28
  170. package/dist/test/components/chat/common/collapse/CollapseBase.vue.js +0 -59
  171. package/dist/test/components/chat/common/input/InputSearch.vue.js +0 -71
  172. package/dist/test/components/chat/common/popover/PopoverBase.vue.js +0 -148
  173. package/dist/test/components/chat/common/spin/BaseSpin.vue.js +0 -12
  174. package/dist/test/components/chat/customer/Avatar.vue.js +0 -79
  175. package/dist/test/components/chat/layout/mobile/Footer.vue.js +0 -109
  176. package/dist/test/components/common/CustomLoading.vue.js +0 -19
  177. package/dist/test/components/common/Notification/NotificationDescription.vue.js +0 -38
  178. package/dist/test/components/common/button/ButtonBase.vue.js +0 -78
  179. package/dist/test/components/common/button/ButtonToggle.vue.js +0 -70
  180. package/dist/test/components/common/checkbox/CCheckboxNumber.vue.js +0 -48
  181. package/dist/test/components/common/collapse/BaseCollapse.vue.js +0 -36
  182. package/dist/test/components/common/collapse/BaseCollapseItem.vue.js +0 -22
  183. package/dist/test/components/common/drawer/DrawerBase.vue.js +0 -126
  184. package/dist/test/components/common/dropdown/DropdownBase.vue.js +0 -91
  185. package/dist/test/components/common/input/CInputSearch.vue.js +0 -62
  186. package/dist/test/components/common/modal/ModalBase.vue.js +0 -164
  187. package/dist/test/components/common/popover/PopoverBase.vue.js +0 -36
  188. package/dist/test/components/common/slider/BaseSlider.vue.js +0 -70
  189. package/dist/test/components/common/spin/CSpin.vue.js +0 -41
  190. package/dist/test/components/common/tooltip/TooltipBase.vue.js +0 -8
  191. package/dist/test/components/layout/Blank.vue.js +0 -19
  192. package/dist/test/components/layout/Default.vue.js +0 -21
  193. package/dist/test/components/modal/Confirm.vue.js +0 -164
  194. package/dist/test/components/ui/button/CButton.vue.js +0 -49
  195. package/dist/test/components/ui/button/c-button.js +0 -26
  196. package/dist/test/components/ui/checkbox/Checkbox.vue.js +0 -79
  197. package/dist/test/components/ui/checkbox/index.js +0 -1
  198. package/dist/test/components/ui/collapsible/Collapsible.vue.js +0 -47
  199. package/dist/test/components/ui/collapsible/CollapsibleContent.vue.js +0 -41
  200. package/dist/test/components/ui/collapsible/CollapsibleTrigger.vue.js +0 -35
  201. package/dist/test/components/ui/collapsible/index.js +0 -3
  202. package/dist/test/components/ui/dialog/Dialog.vue.js +0 -42
  203. package/dist/test/components/ui/dialog/DialogClose.vue.js +0 -35
  204. package/dist/test/components/ui/dialog/DialogContent.vue.js +0 -84
  205. package/dist/test/components/ui/dialog/DialogDescription.vue.js +0 -43
  206. package/dist/test/components/ui/dialog/DialogFooter.vue.js +0 -26
  207. package/dist/test/components/ui/dialog/DialogHeader.vue.js +0 -26
  208. package/dist/test/components/ui/dialog/DialogScrollContent.vue.js +0 -99
  209. package/dist/test/components/ui/dialog/DialogTitle.vue.js +0 -43
  210. package/dist/test/components/ui/dialog/DialogTrigger.vue.js +0 -35
  211. package/dist/test/components/ui/dialog/index.js +0 -9
  212. package/dist/test/components/ui/drawer/Drawer.vue.js +0 -48
  213. package/dist/test/components/ui/drawer/DrawerContent.vue.js +0 -81
  214. package/dist/test/components/ui/drawer/DrawerDescription.vue.js +0 -42
  215. package/dist/test/components/ui/drawer/DrawerFooter.vue.js +0 -26
  216. package/dist/test/components/ui/drawer/DrawerHeader.vue.js +0 -26
  217. package/dist/test/components/ui/drawer/DrawerOverlay.vue.js +0 -37
  218. package/dist/test/components/ui/drawer/DrawerTitle.vue.js +0 -42
  219. package/dist/test/components/ui/drawer/index.js +0 -8
  220. package/dist/test/components/ui/dropdown-menu/DropdownMenu.vue.js +0 -41
  221. package/dist/test/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.js +0 -79
  222. package/dist/test/components/ui/dropdown-menu/DropdownMenuContent.vue.js +0 -61
  223. package/dist/test/components/ui/dropdown-menu/DropdownMenuGroup.vue.js +0 -35
  224. package/dist/test/components/ui/dropdown-menu/DropdownMenuItem.vue.js +0 -43
  225. package/dist/test/components/ui/dropdown-menu/DropdownMenuLabel.vue.js +0 -43
  226. package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.js +0 -41
  227. package/dist/test/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.js +0 -80
  228. package/dist/test/components/ui/dropdown-menu/DropdownMenuSeparator.vue.js +0 -37
  229. package/dist/test/components/ui/dropdown-menu/DropdownMenuShortcut.vue.js +0 -26
  230. package/dist/test/components/ui/dropdown-menu/DropdownMenuSub.vue.js +0 -41
  231. package/dist/test/components/ui/dropdown-menu/DropdownMenuSubContent.vue.js +0 -46
  232. package/dist/test/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.js +0 -58
  233. package/dist/test/components/ui/dropdown-menu/DropdownMenuTrigger.vue.js +0 -41
  234. package/dist/test/components/ui/dropdown-menu/index.js +0 -15
  235. package/dist/test/components/ui/popover/Popover.vue.js +0 -41
  236. package/dist/test/components/ui/popover/PopoverContent.vue.js +0 -60
  237. package/dist/test/components/ui/popover/PopoverTrigger.vue.js +0 -35
  238. package/dist/test/components/ui/popover/index.js +0 -3
  239. package/dist/test/components/ui/radio-group/RadioGroup.vue.js +0 -46
  240. package/dist/test/components/ui/radio-group/RadioGroupItem.vue.js +0 -71
  241. package/dist/test/components/ui/radio-group/index.js +0 -2
  242. package/dist/test/components/ui/slider/Slider.vue.js +0 -155
  243. package/dist/test/components/ui/slider/index.js +0 -1
  244. package/dist/test/components/ui/switch/Switch.vue.js +0 -61
  245. package/dist/test/components/ui/switch/index.js +0 -1
  246. package/dist/test/composable/useCallHelper.js +0 -170
  247. package/dist/test/composable/useInitData.js +0 -84
  248. package/dist/test/composable/useModalConfirm.js +0 -39
  249. package/dist/test/constant/color.js +0 -43
  250. package/dist/test/constant/datetime.js +0 -5
  251. package/dist/test/constant/general.js +0 -9
  252. package/dist/test/constant/message.js +0 -8
  253. package/dist/test/constant/mqtt.js +0 -11
  254. package/dist/test/constant/user.js +0 -9
  255. package/dist/test/lib/utils.js +0 -5
  256. package/dist/test/plugins/axios-gci.js +0 -25
  257. package/dist/test/plugins/axios.js +0 -85
  258. package/dist/test/plugins/mqtt.js +0 -128
  259. package/dist/test/plugins/sdk.js +0 -83
  260. package/dist/test/plugins/websocket.js +0 -65
  261. package/dist/test/types/call.js +0 -1
  262. package/dist/test/types/chat/auth.js +0 -1
  263. package/dist/test/types/chat/global.js +0 -1
  264. package/dist/test/types/chat/promise.js +0 -1
  265. package/dist/test/types/chat/user.js +0 -1
  266. package/dist/test/types/conversation.js +0 -1
  267. package/dist/test/types/global.js +0 -15
  268. package/dist/test/types/message.js +0 -1
  269. package/dist/test/utils/chat/auth.js +0 -51
  270. package/dist/test/utils/chat/call.js +0 -61
  271. package/dist/test/utils/chat/chat-router.js +0 -9
  272. package/dist/test/utils/chat/conversation.js +0 -7
  273. package/dist/test/utils/chat/message.js +0 -42
  274. package/dist/test/utils/chat/user.js +0 -33
  275. package/dist/test/utils/debounce.js +0 -9
  276. package/dist/test/utils/json.js +0 -18
  277. package/dist/test/utils/logger.js +0 -5
  278. package/dist/test/utils/string-helper.js +0 -27
  279. package/dist/types/call.d.ts +0 -4
  280. package/dist/types/chat/auth.d.ts +0 -37
  281. package/dist/types/chat/global.d.ts +0 -7
  282. package/dist/types/chat/promise.d.ts +0 -17
  283. package/dist/types/chat/user.d.ts +0 -88
  284. package/dist/types/conversation.d.ts +0 -18
  285. package/dist/types/global.d.ts +0 -11
  286. package/dist/types/message.d.ts +0 -43
  287. package/dist/utils/chat/auth.d.ts +0 -45
  288. package/dist/utils/chat/call.d.ts +0 -5
  289. package/dist/utils/chat/chat-router.d.ts +0 -3
  290. package/dist/utils/chat/conversation.d.ts +0 -3
  291. package/dist/utils/chat/message.d.ts +0 -17
  292. package/dist/utils/chat/user.d.ts +0 -193
  293. package/dist/utils/debounce.d.ts +0 -1
  294. package/dist/utils/json.d.ts +0 -2
  295. package/dist/utils/logger.d.ts +0 -3
  296. package/dist/utils/string-helper.d.ts +0 -1
@@ -1,37 +0,0 @@
1
- interface IBodyLoginTenant {
2
- tenant_id: string;
3
- }
4
- interface IResLoginLink {
5
- token: string;
6
- refresh_token: string;
7
- conversation_id: number;
8
- receiver_id: number;
9
- }
10
- interface IBodyLoginCustomer {
11
- phone: string;
12
- }
13
- interface IBodyVerifyOTP {
14
- session_uuid: string;
15
- phone: string;
16
- otp: string;
17
- }
18
- interface IResProfile {
19
- id: number;
20
- username: string;
21
- tenant_id: string | null;
22
- phone: string;
23
- avatar: string | null;
24
- user_type: 'customer' | 'tenant';
25
- color: string;
26
- }
27
- interface IPramsLoginLink {
28
- tenant_id: string;
29
- phone: string;
30
- message: string;
31
- customer_name: string;
32
- business_name: string;
33
- }
34
- interface IRefreshToken {
35
- refresh_token: string;
36
- }
37
- export type { IBodyLoginTenant, IBodyLoginCustomer, IBodyVerifyOTP, IResProfile, IPramsLoginLink, IRefreshToken, IResLoginLink };
@@ -1,7 +0,0 @@
1
- export type GoChatProps = {
2
- token?: string;
3
- id?: string;
4
- domain?: string;
5
- response?: PAGE_RESPONSE;
6
- };
7
- export type PAGE_RESPONSE = 'mobile' | 'tablet';
@@ -1,17 +0,0 @@
1
- export type ConfirmPayload = {
2
- headerTitle?: string;
3
- bodyTitle?: string;
4
- bodyImage?: string;
5
- bodyMessage?: string;
6
- confirmButtonText?: string;
7
- cancelButtonText?: string;
8
- timeOut?: number;
9
- type?: 'confirm' | 'information';
10
- };
11
- export type ConfirmPayloadPromise = AddPromise<ConfirmPayload>;
12
- export type AddPromise<T = unknown> = T & {
13
- resolve: Resolve;
14
- reject?: Reject;
15
- };
16
- export type Resolve = any;
17
- export type Reject = any;
@@ -1,88 +0,0 @@
1
- export type GetCustomerHistoryResponse = {
2
- checkin: Checkin[];
3
- order: Order[];
4
- appointment: Appointment[];
5
- cashback: Cashback[];
6
- full_name: string;
7
- lifetime_point: number;
8
- total_appointment: number;
9
- total_money: number;
10
- visit_count: number;
11
- };
12
- export type Checkin = {
13
- id: number;
14
- created_at: string;
15
- status: string;
16
- point_bonus: number;
17
- };
18
- type Order = {
19
- id: number;
20
- created_at: string;
21
- tip: any;
22
- customer_id: number;
23
- customer_name: string;
24
- customer_phone: string;
25
- customer_email: any;
26
- customer_address: any;
27
- payment_method: any;
28
- currency: any;
29
- start_time: any;
30
- expected_end_time: any;
31
- end_time: any;
32
- picked_up_time: any;
33
- promotion_code: any;
34
- total_before_discount: number;
35
- total_after_discount: number;
36
- employee_id: any;
37
- employee_name: any;
38
- type: string;
39
- note: any;
40
- owner_note: any;
41
- order_status: number;
42
- status: number;
43
- updated_at: string;
44
- cancel_reason: any;
45
- delivered_time: any;
46
- completed_time: any;
47
- order_code: string;
48
- checkin_id: any;
49
- total_change: number;
50
- tax: number;
51
- is_waiting: number;
52
- is_recheck: number;
53
- gift_card_price: number;
54
- pax_standalone_active: any;
55
- ach_payment_active: any;
56
- ach_payment_data: any;
57
- total_cash_discount: number;
58
- is_tip_on_device: number;
59
- tip_by_credit_card: number;
60
- service_fee: number;
61
- external_credit_card: number;
62
- qr_code: string;
63
- in_service: number;
64
- attachment: any;
65
- };
66
- export type Appointment = {
67
- id: number;
68
- created_at: string;
69
- services: any;
70
- status: string;
71
- start_time: string;
72
- end_time_expected: string;
73
- note: string;
74
- extra_data: string;
75
- };
76
- type Cashback = {
77
- id: number;
78
- customer_id: number;
79
- type: string;
80
- old_cashback: number;
81
- change: number;
82
- new_cashback: number;
83
- description: string;
84
- data: any;
85
- created_at: string;
86
- updated_at: string;
87
- };
88
- export {};
@@ -1,18 +0,0 @@
1
- export type IConversation = {
2
- id: number;
3
- receiver_id: number;
4
- username: string | null;
5
- customer_phone: string;
6
- avatar: string | null;
7
- last_message: string;
8
- last_message_time: string;
9
- created_at: string;
10
- updated_at: string;
11
- unread_count: number;
12
- status: number;
13
- color: string;
14
- };
15
- export type IParamGetConversation = {
16
- page?: number;
17
- search?: string;
18
- };
@@ -1,11 +0,0 @@
1
- export {};
2
- export type DataWithMetaResponse<T> = {
3
- items: T;
4
- _meta: MetaResponse;
5
- };
6
- export type MetaResponse = {
7
- totalCount: number;
8
- pageCount: number;
9
- currentPage: number;
10
- perPage: number;
11
- };
@@ -1,43 +0,0 @@
1
- import { MessageState } from '../constant/message';
2
- export type IResUser = {
3
- id: string;
4
- username: string;
5
- phone: string;
6
- avatar: string | null;
7
- tenant_id: string | null;
8
- conversation_id: number;
9
- color: string;
10
- status: number;
11
- last_offline_at: string;
12
- };
13
- export type IResMessage = {
14
- id: number | string;
15
- conversation_id: number;
16
- sender_id: number;
17
- receiver_id: number;
18
- message: string | null;
19
- created_at: string;
20
- attachments: IAttachment[];
21
- state?: MessageStateType;
22
- error?: string;
23
- };
24
- export interface IAttachment {
25
- file_name: string;
26
- file_path: string;
27
- file_local?: Blob;
28
- mime?: string;
29
- size?: number;
30
- }
31
- export type IResUploadImage = {
32
- files: IUploadFile[];
33
- };
34
- export type IUploadFile = {
35
- name: string;
36
- type: string;
37
- size: number;
38
- base_url: string;
39
- path: string;
40
- url: string;
41
- delete_url: string;
42
- };
43
- export type MessageStateType = typeof MessageState[keyof typeof MessageState];
@@ -1,45 +0,0 @@
1
- import type { IResLoginLink, IResProfile } from '../../types/chat/auth';
2
- interface IBodyLoginTenant {
3
- tenant_id: string;
4
- }
5
- interface IPramsLoginLink {
6
- tenant_id: string;
7
- phone: string;
8
- message: string;
9
- customer_name: string;
10
- business_name: string;
11
- }
12
- export declare const dataProfile: import("vue").Ref<{
13
- id: number;
14
- username: string;
15
- tenant_id: string | null;
16
- phone: string;
17
- avatar: string | null;
18
- user_type: "customer" | "tenant";
19
- color: string;
20
- } | null, IResProfile | {
21
- id: number;
22
- username: string;
23
- tenant_id: string | null;
24
- phone: string;
25
- avatar: string | null;
26
- user_type: "customer" | "tenant";
27
- color: string;
28
- } | null>;
29
- export declare const dataLoginLink: import("vue").Ref<{
30
- token: string;
31
- refresh_token: string;
32
- conversation_id: number;
33
- receiver_id: number;
34
- } | null, IResLoginLink | {
35
- token: string;
36
- refresh_token: string;
37
- conversation_id: number;
38
- receiver_id: number;
39
- } | null>;
40
- export declare const setDataLogin: (id: string, token: string, domain: string) => void;
41
- export declare const loginTenant: (body: IBodyLoginTenant) => Promise<any>;
42
- export declare const loginLink: (params: IPramsLoginLink) => Promise<any>;
43
- export declare const getProfile: () => Promise<any>;
44
- export declare const logout: () => Promise<void>;
45
- export {};
@@ -1,5 +0,0 @@
1
- import type { IResUser } from '../../types/message';
2
- import type { IResCall } from '../../types/call';
3
- export declare const getIceService: () => Promise<import("axios").AxiosResponse<any, any>>;
4
- export declare const callClient: (body: IResCall) => Promise<void>;
5
- export declare const callOutBound: (user: IResUser) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { PAGE } from '../../constant/general';
2
- export declare const currentPage: import("vue").Ref<PAGE, PAGE>;
3
- export declare const routerPush: (page: PAGE) => void;
@@ -1,3 +0,0 @@
1
- import type { IConversation, IParamGetConversation } from '../../types/conversation';
2
- import type { DataWithMetaResponse } from '../../types/global';
3
- export declare const getConversation: (param: IParamGetConversation) => Promise<DataWithMetaResponse<IConversation[]>>;
@@ -1,17 +0,0 @@
1
- import type { DataWithMetaResponse } from '../../types/global';
2
- import type { IResMessage, IResUser, IUploadFile } from '../../types/message';
3
- interface IParamsMessage {
4
- page: number;
5
- receiver_id: string;
6
- }
7
- export declare const getMessage: (params: IParamsMessage) => Promise<DataWithMetaResponse<IResMessage[]>>;
8
- export declare const getDetailReceiver: (receiverId: string) => Promise<IResUser>;
9
- export declare const getDetailUser: (id: any) => Promise<IResUser | null>;
10
- export declare const readMessages: (conversationId: any) => Promise<import("axios").AxiosResponse<any, any> | undefined>;
11
- export declare const sendMessage: (body: FormData) => Promise<import("axios").AxiosResponse<any, any>>;
12
- export declare const getCountUnread: (params: {
13
- conversation_id: number;
14
- receiver_id: number;
15
- }) => Promise<import("axios").AxiosResponse<any, any>>;
16
- export declare const upLoadImage: (body: FormData) => Promise<IUploadFile[]>;
17
- export {};
@@ -1,193 +0,0 @@
1
- import type { IResUser } from '../../types/message';
2
- import type { GetCustomerHistoryResponse } from '../../types/chat/user';
3
- export declare const user: import("vue").Ref<{
4
- id: string;
5
- username: string;
6
- phone: string;
7
- avatar: string | null;
8
- tenant_id: string | null;
9
- conversation_id: number;
10
- color: string;
11
- status: number;
12
- last_offline_at: string;
13
- } | null, IResUser | {
14
- id: string;
15
- username: string;
16
- phone: string;
17
- avatar: string | null;
18
- tenant_id: string | null;
19
- conversation_id: number;
20
- color: string;
21
- status: number;
22
- last_offline_at: string;
23
- } | null>;
24
- export declare const userHistory: import("vue").Ref<{
25
- checkin: {
26
- id: number;
27
- created_at: string;
28
- status: string;
29
- point_bonus: number;
30
- }[];
31
- order: {
32
- id: number;
33
- created_at: string;
34
- tip: any;
35
- customer_id: number;
36
- customer_name: string;
37
- customer_phone: string;
38
- customer_email: any;
39
- customer_address: any;
40
- payment_method: any;
41
- currency: any;
42
- start_time: any;
43
- expected_end_time: any;
44
- end_time: any;
45
- picked_up_time: any;
46
- promotion_code: any;
47
- total_before_discount: number;
48
- total_after_discount: number;
49
- employee_id: any;
50
- employee_name: any;
51
- type: string;
52
- note: any;
53
- owner_note: any;
54
- order_status: number;
55
- status: number;
56
- updated_at: string;
57
- cancel_reason: any;
58
- delivered_time: any;
59
- completed_time: any;
60
- order_code: string;
61
- checkin_id: any;
62
- total_change: number;
63
- tax: number;
64
- is_waiting: number;
65
- is_recheck: number;
66
- gift_card_price: number;
67
- pax_standalone_active: any;
68
- ach_payment_active: any;
69
- ach_payment_data: any;
70
- total_cash_discount: number;
71
- is_tip_on_device: number;
72
- tip_by_credit_card: number;
73
- service_fee: number;
74
- external_credit_card: number;
75
- qr_code: string;
76
- in_service: number;
77
- attachment: any;
78
- }[];
79
- appointment: {
80
- id: number;
81
- created_at: string;
82
- services: any;
83
- status: string;
84
- start_time: string;
85
- end_time_expected: string;
86
- note: string;
87
- extra_data: string;
88
- }[];
89
- cashback: {
90
- id: number;
91
- customer_id: number;
92
- type: string;
93
- old_cashback: number;
94
- change: number;
95
- new_cashback: number;
96
- description: string;
97
- data: any;
98
- created_at: string;
99
- updated_at: string;
100
- }[];
101
- full_name: string;
102
- lifetime_point: number;
103
- total_appointment: number;
104
- total_money: number;
105
- visit_count: number;
106
- } | null, GetCustomerHistoryResponse | {
107
- checkin: {
108
- id: number;
109
- created_at: string;
110
- status: string;
111
- point_bonus: number;
112
- }[];
113
- order: {
114
- id: number;
115
- created_at: string;
116
- tip: any;
117
- customer_id: number;
118
- customer_name: string;
119
- customer_phone: string;
120
- customer_email: any;
121
- customer_address: any;
122
- payment_method: any;
123
- currency: any;
124
- start_time: any;
125
- expected_end_time: any;
126
- end_time: any;
127
- picked_up_time: any;
128
- promotion_code: any;
129
- total_before_discount: number;
130
- total_after_discount: number;
131
- employee_id: any;
132
- employee_name: any;
133
- type: string;
134
- note: any;
135
- owner_note: any;
136
- order_status: number;
137
- status: number;
138
- updated_at: string;
139
- cancel_reason: any;
140
- delivered_time: any;
141
- completed_time: any;
142
- order_code: string;
143
- checkin_id: any;
144
- total_change: number;
145
- tax: number;
146
- is_waiting: number;
147
- is_recheck: number;
148
- gift_card_price: number;
149
- pax_standalone_active: any;
150
- ach_payment_active: any;
151
- ach_payment_data: any;
152
- total_cash_discount: number;
153
- is_tip_on_device: number;
154
- tip_by_credit_card: number;
155
- service_fee: number;
156
- external_credit_card: number;
157
- qr_code: string;
158
- in_service: number;
159
- attachment: any;
160
- }[];
161
- appointment: {
162
- id: number;
163
- created_at: string;
164
- services: any;
165
- status: string;
166
- start_time: string;
167
- end_time_expected: string;
168
- note: string;
169
- extra_data: string;
170
- }[];
171
- cashback: {
172
- id: number;
173
- customer_id: number;
174
- type: string;
175
- old_cashback: number;
176
- change: number;
177
- new_cashback: number;
178
- description: string;
179
- data: any;
180
- created_at: string;
181
- updated_at: string;
182
- }[];
183
- full_name: string;
184
- lifetime_point: number;
185
- total_appointment: number;
186
- total_money: number;
187
- visit_count: number;
188
- } | null>;
189
- export declare const getUserHistory: (phone: string) => Promise<GetCustomerHistoryResponse>;
190
- export declare function getItemsByYear<T = any>(data: any, key?: string): {
191
- year: string;
192
- items: T[];
193
- }[];
@@ -1 +0,0 @@
1
- export declare const useDebounce: <T extends (...args: any[]) => void>(func: T, wait?: number) => ((...args: Parameters<T>) => void);
@@ -1,2 +0,0 @@
1
- export declare const isJsonString: (str: string) => boolean;
2
- export declare const tryParseJson: (data: any) => any;
@@ -1,3 +0,0 @@
1
- import * as logger from 'loglevel';
2
- declare let log: logger.RootLogger;
3
- export default log;
@@ -1 +0,0 @@
1
- export declare const phoneNumberFormat: (phone: string, halfShowType?: number) => string;