mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2024-11-21 20:36:05 +03:00
add waiting levels to chat events
This commit is contained in:
commit
506a6a1d61
20
v1/types.go
20
v1/types.go
@ -89,6 +89,10 @@ const (
|
|||||||
ColorOrange = "orange"
|
ColorOrange = "orange"
|
||||||
ColorGray = "gray"
|
ColorGray = "gray"
|
||||||
ColorGrayishBlue = "grayish-blue"
|
ColorGrayishBlue = "grayish-blue"
|
||||||
|
|
||||||
|
WaitingLevelNone = "none"
|
||||||
|
WaitingLevelWarning = "warning"
|
||||||
|
WaitingLevelDanger = "danger"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MgClient type
|
// MgClient type
|
||||||
@ -605,6 +609,12 @@ type (
|
|||||||
LastActivity string `json:"last_activity"`
|
LastActivity string `json:"last_activity"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WaitingChat struct {
|
||||||
|
Chat
|
||||||
|
|
||||||
|
WaitingLevel string `json:"waiting_level"`
|
||||||
|
}
|
||||||
|
|
||||||
Member struct {
|
Member struct {
|
||||||
IsAuthor bool `json:"is_author"`
|
IsAuthor bool `json:"is_author"`
|
||||||
State string `json:"state"`
|
State string `json:"state"`
|
||||||
@ -723,10 +733,12 @@ type (
|
|||||||
Message *Message `json:"message"`
|
Message *Message `json:"message"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use WsEventWaitingChatCreatedData instead.
|
||||||
WsEventChatCreatedData struct {
|
WsEventChatCreatedData struct {
|
||||||
Chat *Chat `json:"chat"`
|
Chat *Chat `json:"chat"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use WsEventWaitingChatUpdatedData instead.
|
||||||
WsEventChatUpdatedData struct {
|
WsEventChatUpdatedData struct {
|
||||||
Chat *Chat `json:"chat"`
|
Chat *Chat `json:"chat"`
|
||||||
}
|
}
|
||||||
@ -785,4 +797,12 @@ type (
|
|||||||
WsEventChannelUpdatedData struct {
|
WsEventChannelUpdatedData struct {
|
||||||
Channel *ChannelResponseItem `json:"channel"`
|
Channel *ChannelResponseItem `json:"channel"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WsEventWaitingChatCreatedData struct {
|
||||||
|
Chat *WaitingChat `json:"chat"`
|
||||||
|
}
|
||||||
|
|
||||||
|
WsEventWaitingChatUpdatedData struct {
|
||||||
|
Chat *WaitingChat `json:"chat"`
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user