// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import Config from 'assets/config.json'; const state = { entities: { general: { appState: false, credentials: {}, config: {}, license: {} }, users: { currentId: '', mySessions: [], myAudits: [], profiles: {}, profilesInTeam: {}, profilesInChannel: {}, profilesNotInChannel: {}, statuses: {} }, teams: { currentId: '', teams: {}, myMembers: {}, membersInTeam: {}, stats: {}, openTeamIds: new Set() }, channels: { currentId: '', channels: {}, myMembers: {}, stats: {} }, posts: { posts: {}, postsByChannel: {}, selectedPostId: '', currentFocusedPostId: '' }, preferences: { myPreferences: {} } }, requests: { channels: { getChannel: { status: 'not_started', error: null }, getChannels: { status: 'not_started', error: null }, myMembers: { status: 'not_started', error: null }, createChannel: { status: 'not_started', error: null }, updateChannel: { status: 'not_started', error: null }, updateChannelNotifyProps: { status: 'not_started', error: null }, leaveChannel: { status: 'not_started', error: null }, joinChannel: { status: 'not_started', error: null }, deleteChannel: { status: 'not_started', error: null }, updateLastViewedAt: { status: 'not_started', error: null }, getMoreChannels: { status: 'not_started', error: null }, getChannelStats: { status: 'not_started', error: null }, addChannelMember: { status: 'not_started', error: null }, removeChannelMember: { status: 'not_started', error: null } }, general: { server: { status: 'not_started', error: null }, config: { status: 'not_started', error: null }, license: { status: 'not_started', error: null }, websocket: { status: 'not_started', error: null } }, posts: { createPost: { status: 'not_started', error: null }, editPost: { status: 'not_started', error: null }, deletePost: { status: 'not_started', error: null }, getPost: { status: 'not_started', error: null }, getPosts: { status: 'not_started', error: null }, getPostsSince: { status: 'not_started', error: null }, getPostsBefore: { status: 'not_started', error: null }, getPostsAfter: { status: 'not_started', error: null } }, teams: { allTeams: { status: 'not_started', error: null }, getAllTeamListings: { status: 'not_started', error: null }, createTeam: { status: 'not_started', error: null }, updateTeam: { status: 'not_started', error: null }, getMyTeamMembers: { status: 'not_started', error: null }, getTeamMembers: { status: 'not_started', error: null }, getTeamStats: { status: 'not_started', error: null }, addUserToTeam: { status: 'not_started', error: null }, removeUserFromTeam: { status: 'not_started', error: null } }, users: { login: { status: 'not_started', error: null }, logout: { status: 'not_started', error: null }, getProfiles: { status: 'not_started', error: null }, getProfilesInTeam: { status: 'not_started', error: null }, getProfilesInChannel: { status: 'not_started', error: null }, getProfilesNotInChannel: { status: 'not_started', error: null }, getStatusesByIds: { status: 'not_started', error: null }, getSessions: { status: 'not_started', error: null }, revokeSession: { status: 'not_started', error: null }, getAudits: { status: 'not_started', error: null } }, preferences: { getMyPreferences: { status: 'not_started', error: null }, savePreferences: { status: 'not_started', error: null }, deletePreferences: { status: 'not_started', error: null } } }, navigation: { index: 0, routes: [ { key: 'Root' } ] }, views: { i18n: { locale: '' }, login: { loginId: '', password: '' }, selectServer: { serverUrl: Config.DefaultServerUrl }, drawer: { channel: false } } }; export default state;