UNPKG

mattermost-redux

Version:

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

21 lines (20 loc) 1.63 kB
import type { IncomingWebhook, OutgoingWebhook, Command } from '@mattermost/types/integrations'; import type { GlobalState } from '@mattermost/types/store'; import type { IDMappedObjects } from '@mattermost/types/utilities'; export declare function getIncomingHooks(state: GlobalState): IDMappedObjects<IncomingWebhook>; export declare function getIncomingHooksTotalCount(state: GlobalState): number; export declare function getOutgoingHooks(state: GlobalState): IDMappedObjects<OutgoingWebhook>; export declare function getCommands(state: GlobalState): IDMappedObjects<Command>; export declare function getOAuthApps(state: GlobalState): IDMappedObjects<import("@mattermost/types/integrations").OAuthApp>; export declare function getOutgoingOAuthConnections(state: GlobalState): IDMappedObjects<import("@mattermost/types/integrations").OutgoingOAuthConnection>; export declare function getDialogArguments(state: GlobalState): import("@mattermost/types/integrations").DialogArgs | undefined; export declare const getFilteredIncomingHooks: (state: GlobalState) => IncomingWebhook[]; export declare const getAppsOAuthAppIDs: (state: GlobalState) => string[]; export declare const getAppsBotIDs: (state: GlobalState) => string[]; export declare function getSystemCommands(state: GlobalState): IDMappedObjects<Command>; /** * get outgoing hooks in current team */ export declare const getOutgoingHooksInCurrentTeam: (state: GlobalState) => OutgoingWebhook[]; export declare const getAllCommands: (state: GlobalState) => IDMappedObjects<Command>; export declare const getAutocompleteCommandsList: (state: GlobalState) => Command[];