Files
mattermost-mobile/app/constants/apps.ts
Daniel Espino García e047106bac Add AppsForm and Interactive Dialogs (#6142)
* Add AppsForm and Interactive Dialogs

* Add the missing plumbing for Interactive Dialogs and minor fixes

* Remove widgets subfolder

* Fix paths

* Address feedback

* Address feedback

* i18n extract

* Only set the dialog if we are in the same server
2022-04-28 18:26:21 +02:00

54 lines
1.3 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
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 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';
export default {
AppBindingLocations,
AppBindingPresentations,
AppCallResponseTypes,
AppExpandLevels,
AppFieldTypes,
COMMAND_SUGGESTION_ERROR,
COMMAND_SUGGESTION_CHANNEL,
COMMAND_SUGGESTION_USER,
};