Files
mattermost-mobile/app/initial_state.js
2018-07-31 08:43:54 -04:00

291 lines
7.2 KiB
JavaScript

// Copyright (c) 2015-present 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: {},
dataRetentionPolicy: {},
deviceToken: '',
license: {},
serverVersion: '',
},
users: {
currentUserId: '',
mySessions: [],
myAudits: [],
profiles: {},
profilesInTeam: {},
profilesInChannel: {},
profilesNotInChannel: {},
statuses: {},
},
teams: {
currentTeamId: '',
teams: {},
myMembers: {},
membersInTeam: {},
stats: {},
},
channels: {
currentChannelId: '',
channels: {},
myMembers: {},
stats: {},
},
posts: {
posts: {},
postsInChannel: {},
postsInThread: {},
selectedPostId: '',
currentFocusedPostId: '',
},
preferences: {
myPreferences: {},
},
search: {
recent: [],
},
typing: {},
},
errors: [],
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,
},
joinChannel: {
status: 'not_started',
error: null,
},
deleteChannel: {
status: 'not_started',
error: null,
},
updateLastViewedAt: {
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,
},
dataRetentionPolicy: {
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,
},
getPostThread: {
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: {
getMyTeams: {
status: 'not_started',
error: null,
},
getTeams: {
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,
},
},
},
device: {
connection: true,
},
navigation: '',
views: {
channel: {
drafts: {},
},
i18n: {
locale: '',
},
login: {
loginId: '',
password: '',
},
root: {
deepLinkURL: '',
hydrationComplete: false,
purge: false,
},
selectServer: {
serverUrl: Config.DefaultServerUrl,
},
team: {
lastTeamId: '',
},
thread: {
drafts: {},
},
},
};
export default state;