forked from Ivasoft/mattermost-mobile
* Database init * Naming fix * naming misc * Fix test * Added Thread Tab columns, Team Threads Count table and other changes * Test case fix * Test cases fix ...... AGAIN * TS fix * Removed loaded_in_all_threads_tab, loaded_in_unreads_tab * Removed TeamThreadsCount table, mention & message root counts & added loadedInGlobalThreads flag * Type changes, added delete thread with post * Removed unused type * Reverted relationshio of post with thread * Calling thread destroyPermanently from post * Removed unused table name variables * added THREAD constant table in post model and fixed a few comments * Misc typo fix and code clean up * Added test case and related to participant in user model * test cases fix Co-authored-by: Mattermod <mattermod@users.noreply.github.com> Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
76 lines
2.1 KiB
TypeScript
76 lines
2.1 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import keyMirror from '@utils/key_mirror';
|
|
|
|
export const MM_TABLES = {
|
|
APP: {
|
|
INFO: 'Info',
|
|
GLOBAL: 'Global',
|
|
SERVERS: 'Servers',
|
|
},
|
|
SERVER: {
|
|
CATEGORY: 'Category',
|
|
CATEGORY_CHANNEL: 'CategoryChannel',
|
|
CHANNEL: 'Channel',
|
|
CHANNEL_INFO: 'ChannelInfo',
|
|
CHANNEL_MEMBERSHIP: 'ChannelMembership',
|
|
CUSTOM_EMOJI: 'CustomEmoji',
|
|
DRAFT: 'Draft',
|
|
FILE: 'File',
|
|
MY_CHANNEL: 'MyChannel',
|
|
MY_CHANNEL_SETTINGS: 'MyChannelSettings',
|
|
MY_TEAM: 'MyTeam',
|
|
POST: 'Post',
|
|
POSTS_IN_CHANNEL: 'PostsInChannel',
|
|
POSTS_IN_THREAD: 'PostsInThread',
|
|
PREFERENCE: 'Preference',
|
|
REACTION: 'Reaction',
|
|
ROLE: 'Role',
|
|
SLASH_COMMAND: 'SlashCommand',
|
|
SYSTEM: 'System',
|
|
TEAM: 'Team',
|
|
TEAM_CHANNEL_HISTORY: 'TeamChannelHistory',
|
|
TEAM_MEMBERSHIP: 'TeamMembership',
|
|
TEAM_SEARCH_HISTORY: 'TeamSearchHistory',
|
|
TERMS_OF_SERVICE: 'TermsOfService',
|
|
THREAD: 'Thread',
|
|
THREAD_PARTICIPANT: 'ThreadParticipant',
|
|
USER: 'User',
|
|
},
|
|
};
|
|
|
|
export const MIGRATION_EVENTS = keyMirror({
|
|
MIGRATION_ERROR: null,
|
|
MIGRATION_STARTED: null,
|
|
MIGRATION_SUCCESS: null,
|
|
});
|
|
|
|
export const SYSTEM_IDENTIFIERS = {
|
|
CONFIG: 'config',
|
|
CURRENT_CHANNEL_ID: 'currentChannelId',
|
|
CURRENT_TEAM_ID: 'currentTeamId',
|
|
CURRENT_USER_ID: 'currentUserId',
|
|
DATA_RETENTION_POLICIES: 'dataRetentionPolicies',
|
|
EXPANDED_LINKS: 'expandedLinks',
|
|
INTEGRATION_TRIGGER_ID: 'IntegreationTriggerId',
|
|
LICENSE: 'license',
|
|
RECENT_CUSTOM_STATUS: 'recentCustomStatus',
|
|
RECENT_MENTIONS: 'recentMentions',
|
|
RECENT_REACTIONS: 'recentReactions',
|
|
TEAM_HISTORY: 'teamHistory',
|
|
WEBSOCKET: 'WebSocket',
|
|
};
|
|
|
|
export const GLOBAL_IDENTIFIERS = {
|
|
DEVICE_TOKEN: 'deviceToken',
|
|
MULTI_SERVER_TUTORIAL: 'multiServerTutorial',
|
|
};
|
|
|
|
export default {
|
|
GLOBAL_IDENTIFIERS,
|
|
MM_TABLES,
|
|
MIGRATION_EVENTS,
|
|
SYSTEM_IDENTIFIERS,
|
|
};
|