UNPKG

mattermost-redux

Version:

Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client

9 lines (8 loc) 1.36 kB
import type { Bot, BotPatch } from '@mattermost/types/bots'; export declare function createBot(bot: Partial<Bot>): import("../types/actions").ActionFuncAsync<Bot, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>; export declare function patchBot(botUserId: string, botPatch: Partial<BotPatch>): import("../types/actions").ActionFuncAsync<Bot, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>; export declare function loadBot(botUserId: string): import("../types/actions").ActionFuncAsync<Bot, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>; export declare function loadBots(page?: number, perPage?: number): import("../types/actions").ActionFuncAsync<Bot[], import("@mattermost/types/store").GlobalState, import("redux").AnyAction>; export declare function disableBot(botUserId: string): import("../types/actions").ActionFuncAsync<Bot, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>; export declare function enableBot(botUserId: string): import("../types/actions").ActionFuncAsync<Bot, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>; export declare function assignBot(botUserId: string, newOwnerId: string): import("../types/actions").ActionFuncAsync<Bot, import("@mattermost/types/store").GlobalState, import("redux").AnyAction>;