forked from Ivasoft/mattermost-mobile
[Gekidou] Sidebar Categories (Database only) (#5909)
This commit is contained in:
32
types/api/category.d.ts
vendored
Normal file
32
types/api/category.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
type CategorySorting = 'alpha' | 'manual' | 'recent'
|
||||
type CategoryType = 'channels' | 'direct_messages' | 'favorites' | 'custom'
|
||||
|
||||
type CategoryChannel = {
|
||||
id?: string;
|
||||
category_id: string;
|
||||
channel_id: string;
|
||||
sort_order: number;
|
||||
}
|
||||
|
||||
type Category = {
|
||||
id: string;
|
||||
team_id: string;
|
||||
display_name: string;
|
||||
sort_order: number;
|
||||
sorting: CategorySorting;
|
||||
type: CategoryType;
|
||||
muted: boolean;
|
||||
collapsed: boolean;
|
||||
}
|
||||
|
||||
type CategoryWithChannels = Category & {
|
||||
channel_ids: string[];
|
||||
}
|
||||
|
||||
type CategoriesWithOrder = {
|
||||
categories: CategoryWithChannels[];
|
||||
order: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user