// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

import {Posts} from 'mattermost-redux/constants';
import keyMirror from 'mattermost-redux/utils/key_mirror';

const ViewTypes = keyMirror({
    APPLICATION_INITIALIZED: null,

    SERVER_URL_CHANGED: null,

    LOGIN_ID_CHANGED: null,
    PASSWORD_CHANGED: null,

    POST_DRAFT_CHANGED: null,
    COMMENT_DRAFT_CHANGED: null,
    SEARCH_DRAFT_CHANGED: null,

    NOTIFICATION_CHANGED: null,
    NOTIFICATION_IN_APP: null,
    NOTIFICATION_TAPPED: null,

    CONNECTION_CHANGED: null,

    SET_POST_DRAFT: null,
    SET_COMMENT_DRAFT: null,

    SET_TEMP_UPLOAD_FILES_FOR_POST_DRAFT: null,
    RETRY_UPLOAD_FILE_FOR_POST: null,

    CLEAR_FILES_FOR_POST_DRAFT: null,

    REMOVE_FILE_FROM_POST_DRAFT: null,
    REMOVE_LAST_FILE_FROM_POST_DRAFT: null,

    ADD_FILE_TO_FETCH_CACHE: null,

    SET_CHANNEL_LOADER: null,
    SET_CHANNEL_REFRESHING: null,
    SET_CHANNEL_DISPLAY_NAME: null,

    POST_TOOLTIP_VISIBLE: null,

    SET_LAST_CHANNEL_FOR_TEAM: null,

    GITLAB: null,
    SAML: null,

    INCREASE_POST_VISIBILITY: null,
    RECEIVED_FOCUSED_POST: null,
    LOADING_POSTS: null,

    STATUSBAR_HEIGHT_CHANGED: null
});

export default {
    ...ViewTypes,
    POST_VISIBILITY_CHUNK_SIZE: Posts.POST_CHUNK_SIZE / 2
};
