mattermost-mobile/app/constants/general.ts
Daniel Espino García 85e01a7fb6
Add model mocks to TestHelper (#8715)
* Add model mocks to TestHelper

* Address feedback
2025-03-28 09:40:08 +01:00

47 lines
1.6 KiB
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {toMilliseconds} from '@utils/datetime';
export default {
PAGE_SIZE_DEFAULT: 60,
POST_CHUNK_SIZE: 60,
POST_AROUND_CHUNK_SIZE: 10,
CHANNELS_CHUNK_SIZE: 50,
CHANNEL_MEMBERS_CHUNK_SIZE: 200,
CRT_CHUNK_SIZE: 60,
STATUS_INTERVAL: 60000,
AUTOCOMPLETE_LIMIT_DEFAULT: 25,
MENTION: 'mention' as const,
OUT_OF_OFFICE: 'ooo' as const,
OFFLINE: 'offline' as const,
AWAY: 'away' as const,
ONLINE: 'online' as const,
DND: 'dnd' as const,
STATUS_COMMANDS: ['offline', 'away', 'online', 'dnd'],
DEFAULT_CHANNEL: 'town-square',
DM_CHANNEL: 'D' as const,
OPEN_CHANNEL: 'O' as const,
PRIVATE_CHANNEL: 'P' as const,
GM_CHANNEL: 'G' as const,
TEAMMATE_NAME_DISPLAY: {
SHOW_USERNAME: 'username',
SHOW_NICKNAME_FULLNAME: 'nickname_full_name',
SHOW_FULLNAME: 'full_name',
},
SPECIAL_MENTIONS: new Set(['all', 'channel', 'here']),
MAX_USERS_IN_GM: 7,
MIN_USERS_IN_GM: 3,
MAX_GROUP_CHANNELS_FOR_PROFILES: 50,
MAX_GET_ROLES_BY_NAMES: 100,
DEFAULT_AUTOLINKED_URL_SCHEMES: ['http', 'https', 'ftp', 'mailto', 'tel', 'mattermost'],
PROFILE_CHUNK_SIZE: 100,
SEARCH_TIMEOUT_MILLISECONDS: 500,
AUTOCOMPLETE_SPLIT_CHARACTERS: ['.', '-', '_'],
CHANNEL_USER_ROLE: 'channel_user',
RESTRICT_DIRECT_MESSAGE_ANY: 'any',
TIME_TO_FIRST_REVIEW: toMilliseconds({days: 14}),
TIME_TO_NEXT_REVIEW: toMilliseconds({days: 90}),
NPS_PLUGIN_ID: 'com.mattermost.nps',
NPS_PLUGIN_BOT_USERNAME: 'feedbackbot',
};