* Handle user and channel provider from the app parser * Do not process mapStateToProps on appsTakeOver * Fix tsc * Address feedback * Fix broken reference * Address feedback and fix tests * Fix i18n * Use instantiated teamID on parser context * Address feedback * Fix test * Address feedback Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {AppCallResponseType, AppCallType, AppExpandLevel, AppFieldType} from '@mm-redux/types/apps';
|
|
|
|
export const AppBindingLocations = {
|
|
POST_MENU_ITEM: '/post_menu',
|
|
CHANNEL_HEADER_ICON: '/channel_header',
|
|
COMMAND: '/command',
|
|
IN_POST: '/in_post',
|
|
};
|
|
|
|
export const AppBindingPresentations = {
|
|
MODAL: 'modal',
|
|
};
|
|
|
|
export const AppCallResponseTypes: { [name: string]: AppCallResponseType } = {
|
|
OK: 'ok',
|
|
ERROR: 'error',
|
|
FORM: 'form',
|
|
CALL: 'call',
|
|
NAVIGATE: 'navigate',
|
|
};
|
|
|
|
export const AppCallTypes: { [name: string]: AppCallType } = {
|
|
SUBMIT: 'submit',
|
|
LOOKUP: 'lookup',
|
|
FORM: 'form',
|
|
CANCEL: 'cancel',
|
|
};
|
|
|
|
export const AppExpandLevels: { [name: string]: AppExpandLevel } = {
|
|
EXPAND_DEFAULT: '',
|
|
EXPAND_NONE: 'none',
|
|
EXPAND_ALL: 'all',
|
|
EXPAND_SUMMARY: 'summary',
|
|
};
|
|
|
|
export const AppFieldTypes: { [name: string]: AppFieldType } = {
|
|
TEXT: 'text',
|
|
STATIC_SELECT: 'static_select',
|
|
DYNAMIC_SELECT: 'dynamic_select',
|
|
BOOL: 'bool',
|
|
USER: 'user',
|
|
CHANNEL: 'channel',
|
|
MARKDOWN: 'markdown',
|
|
};
|
|
|
|
export const COMMAND_SUGGESTION_ERROR = 'error';
|
|
export const COMMAND_SUGGESTION_CHANNEL = 'channel';
|
|
export const COMMAND_SUGGESTION_USER = 'user';
|