mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2024-11-21 20:36:05 +03:00
new websocket events
This commit is contained in:
parent
7eb096c538
commit
9b5d493820
11
v1/types.go
11
v1/types.go
@ -32,11 +32,15 @@ const (
|
||||
WsEventDialogAssign string = "dialog_assign"
|
||||
WsEventChatCreated string = "chat_created"
|
||||
WsEventChatUpdated string = "chat_updated"
|
||||
WsEventChatUnreadUpdated string = "chat_unread_updated"
|
||||
WsEventUserOnlineUpdated string = "user_online_updated"
|
||||
WsEventUserJoined string = "user_joined_chat"
|
||||
WsEventUserLeave string = "user_left_chat"
|
||||
WsEventUserUpdated string = "user_updated"
|
||||
WsCustomerUpdated string = "customer_updated"
|
||||
WsBotUpdated string = "bot_updated"
|
||||
WsEventChannelUpdated string = "channel_updated"
|
||||
WsEventSettingsUpdated string = "settings_updated"
|
||||
|
||||
ChannelFeatureNone string = "none"
|
||||
ChannelFeatureReceive string = "receive"
|
||||
@ -468,6 +472,8 @@ type (
|
||||
LastName string `json:"last_name,omitempty"`
|
||||
Phone string `json:"phone,omitempty"`
|
||||
Email string `json:"email,omitempty"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
Available bool `json:"available"`
|
||||
}
|
||||
|
||||
Channel struct {
|
||||
@ -619,4 +625,9 @@ type (
|
||||
Chat *Chat `json:"chat"`
|
||||
User *UserRef `json:"user"`
|
||||
}
|
||||
|
||||
WsEventUserOnlineUpdatedData struct {
|
||||
User *UserRef
|
||||
Online bool
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user