MM-32421: Extend channel sidebar category APIs for Plugins (#17821)

* extend plugin api with sidebar functionalities

* include generated mocks for tests

* bump up version requirements for plugin api

* update tag to 'ChannelSidebar'

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Madhav Hugar
2021-06-25 18:52:09 +02:00
коммит произвёл GitHub
родитель a9b3e423e6
Коммит b4f6cb8cb7
5 изменённых файлов: 218 добавлений и 0 удалений

Просмотреть файл

@@ -450,6 +450,24 @@ type API interface {
// Minimum server version: 5.6
SearchChannels(teamID string, term string) ([]*model.Channel, *model.AppError)
// CreateChannelSidebarCategory creates a new sidebar category for a set of channels.
//
// @tag ChannelSidebar
// Minimum server version: 5.37
CreateChannelSidebarCategory(userID, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, *model.AppError)
// GetChannelSidebarCategories returns sidebar categories.
//
// @tag ChannelSidebar
// Minimum server version: 5.37
GetChannelSidebarCategories(userID, teamID string) (*model.OrderedSidebarCategories, *model.AppError)
// UpdateChannelSidebarCategories updates the channel sidebar categories.
//
// @tag ChannelSidebar
// Minimum server version: 5.37
UpdateChannelSidebarCategories(userID, teamID string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError)
// SearchUsers returns a list of users based on some search criteria.
//
// @tag User