mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
25 lines (24 loc) • 1.95 kB
TypeScript
import type { ChannelCategory } from '@mattermost/types/channel_categories';
import { CategorySorting } from '@mattermost/types/channel_categories';
import type { Channel } from '@mattermost/types/channels';
import type { ActionFuncAsync, ThunkActionFunc } from 'mattermost-redux/types/actions';
export declare function setCategoryCollapsed(categoryId: string, collapsed: boolean): ActionFuncAsync;
export declare function setCategorySorting(categoryId: string, sorting: CategorySorting): ActionFuncAsync;
export declare function patchCategory(categoryId: string, patch: Partial<ChannelCategory>): ActionFuncAsync;
export declare function setCategoryMuted(categoryId: string, muted: boolean): ActionFuncAsync;
export declare function fetchMyCategories(teamId: string, isWebSocket?: boolean): ThunkActionFunc<unknown>;
export declare function addChannelToInitialCategory(channel: Channel, setOnServer?: boolean): ActionFuncAsync;
export declare function addChannelToCategory(categoryId: string, channelId: string): ActionFuncAsync;
export declare function moveChannelToCategory(categoryId: string, channelId: string, newIndex: number, setManualSorting?: boolean): ActionFuncAsync;
export declare function moveChannelsToCategory(categoryId: string, channelIds: string[], newIndex: number, setManualSorting?: boolean): ActionFuncAsync;
export declare function moveCategory(teamId: string, categoryId: string, newIndex: number): ActionFuncAsync;
export declare function receivedCategoryOrder(teamId: string, order: string[]): {
type: "RECEIVED_CATEGORY_ORDER";
data: {
teamId: string;
order: string[];
};
};
export declare function createCategory(teamId: string, displayName: string, channelIds?: Array<Channel['id']>): ActionFuncAsync<ChannelCategory>;
export declare function renameCategory(categoryId: string, displayName: string): ActionFuncAsync;
export declare function deleteCategory(categoryId: string): ActionFuncAsync;