forked from Ivasoft/mattermost-mobile
* WS Events, Actions, Queries, Thread Follow, Post Query * i18n changes * Misc * Only unread threads are marked as read * Mark threads from WS even as visible in Global threads * Merge fixes * Update thread_post_list.tsx * Merge fix * Feedback fix * Make teamId in handleThreads optional for unfollowed threads * Removed unwated type and return * Review changes * Removing unused model * Merge fix * Misc fixes * Following button query change
65 lines
2.1 KiB
TypeScript
65 lines
2.1 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import mix from '@utils/mix';
|
|
|
|
import ClientApps, {ClientAppsMix} from './apps';
|
|
import ClientBase from './base';
|
|
import ClientCategories, {ClientCategoriesMix} from './categories';
|
|
import ClientChannels, {ClientChannelsMix} from './channels';
|
|
import {DEFAULT_LIMIT_AFTER, DEFAULT_LIMIT_BEFORE, HEADER_X_VERSION_ID} from './constants';
|
|
import ClientEmojis, {ClientEmojisMix} from './emojis';
|
|
import ClientFiles, {ClientFilesMix} from './files';
|
|
import ClientGeneral, {ClientGeneralMix} from './general';
|
|
import ClientGroups, {ClientGroupsMix} from './groups';
|
|
import ClientIntegrations, {ClientIntegrationsMix} from './integrations';
|
|
import ClientPosts, {ClientPostsMix} from './posts';
|
|
import ClientPreferences, {ClientPreferencesMix} from './preferences';
|
|
import ClientTeams, {ClientTeamsMix} from './teams';
|
|
import ClientThreads, {ClientThreadsMix} from './threads';
|
|
import ClientTos, {ClientTosMix} from './tos';
|
|
import ClientUsers, {ClientUsersMix} from './users';
|
|
|
|
import type {APIClientInterface} from '@mattermost/react-native-network-client';
|
|
|
|
interface Client extends ClientBase,
|
|
ClientAppsMix,
|
|
ClientCategoriesMix,
|
|
ClientChannelsMix,
|
|
ClientEmojisMix,
|
|
ClientFilesMix,
|
|
ClientGeneralMix,
|
|
ClientGroupsMix,
|
|
ClientIntegrationsMix,
|
|
ClientPostsMix,
|
|
ClientPreferencesMix,
|
|
ClientTeamsMix,
|
|
ClientThreadsMix,
|
|
ClientTosMix,
|
|
ClientUsersMix
|
|
{}
|
|
|
|
class Client extends mix(ClientBase).with(
|
|
ClientApps,
|
|
ClientCategories,
|
|
ClientChannels,
|
|
ClientEmojis,
|
|
ClientFiles,
|
|
ClientGeneral,
|
|
ClientGroups,
|
|
ClientIntegrations,
|
|
ClientPosts,
|
|
ClientPreferences,
|
|
ClientTeams,
|
|
ClientThreads,
|
|
ClientTos,
|
|
ClientUsers,
|
|
) {
|
|
// eslint-disable-next-line no-useless-constructor
|
|
constructor(apiClient: APIClientInterface, serverUrl: string, bearerToken?: string, csrfToken?: string) {
|
|
super(apiClient, serverUrl, bearerToken, csrfToken);
|
|
}
|
|
}
|
|
|
|
export {Client, DEFAULT_LIMIT_AFTER, DEFAULT_LIMIT_BEFORE, HEADER_X_VERSION_ID};
|