* Add the channel options to get into playbooks (#8750) * Add the channel options to get into playbooks * Use playbook run id instead of playbook id * i18n * Fix issues and move playbooks to the products folder * Address some tests * Fix test * Address design issues * Add requested comment --------- Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Playbooks database (#8802) * Add lastPlaybookFetchAt to channel table (#8916) * Add lastPlaybookFetchAt to channel table * Add missing commit * Use my_channel table instead * Fix test * Address feedback * First implementation of playbooks API (#8897) * First implementation of playbooks API * Add version check * Address feedback * Fix test * Add last fetch at usage and other improvements * Simplify test * Add sort_order, update_at and previousReminder columns (#8927) * Add sort_order, update_at and previousReminder columns * Remove order from the schema * Fix tests * Add tests * Add websockets for playbooks (#8947) * Add websocket events for playbooks * Fix typo * Add playbook run list (#8761) * Add the channel options to get into playbooks * Use playbook run id instead of playbook id * i18n * Fix issues and move playbooks to the products folder * Address some tests * Fix test * Add playbook run list * Add missing texts * Add back button support and item size to flash list * Address design issues * Add requested comment * Standardize tag and use it in the card * Fix merge * Add API related functionality --------- Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Add playbooks run details (#8872) * Add the channel options to get into playbooks * Use playbook run id instead of playbook id * i18n * Fix issues and move playbooks to the products folder * Address some tests * Fix test * Add playbook run list * Add missing texts * Add back button support and item size to flash list * Address design issues * Add requested comment * Standardize tag and use it in the card * Add playbooks run details * Fix merge * Add API related functionality * Add API related changes * Order fixes * Several fixes * Add error state on playbook run * i18n-extract * Fix tests * Fix test * Several fixes * Fixes and add missing UI elements * i18n-extract * Fix tests * Remove files from bad merge --------- Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Add missing tests for playbooks (#8976) * Add the channel options to get into playbooks * Use playbook run id instead of playbook id * i18n * Fix issues and move playbooks to the products folder * Address some tests * Fix test * Add playbook run list * Add missing texts * Add back button support and item size to flash list * Address design issues * Add requested comment * Standardize tag and use it in the card * Add playbooks run details * Fix merge * Add API related functionality * Add API related changes * Order fixes * Several fixes * Add error state on playbook run * i18n-extract * Fix tests * Fix test * Several fixes * Fixes and add missing UI elements * i18n-extract * Fix tests * Remove files from bad merge * Add tests * Fix typo * Add missing strings * Fix tests and skip some * Fix test * Fix typo --------- Co-authored-by: Elias Nahum <nahumhbl@gmail.com> * Address feedback * Address feedback and fix tests * Address comments and fix tests * Address feedback * Address plugin changes and fix bugs --------- Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
86 lines
3 KiB
TypeScript
86 lines
3 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import ClientCalls, {type ClientCallsMix} from '@calls/client/rest';
|
|
import ClientPlugins, {type ClientPluginsMix} from '@client/rest/plugins';
|
|
import ClientPlaybooks, {type ClientPlaybooksMix} from '@playbooks/client/rest';
|
|
import mix from '@utils/mix';
|
|
|
|
import ClientApps, {type ClientAppsMix} from './apps';
|
|
import ClientBase from './base';
|
|
import ClientCategories, {type ClientCategoriesMix} from './categories';
|
|
import ClientChannelBookmarks, {type ClientChannelBookmarksMix} from './channel_bookmark';
|
|
import ClientChannels, {type ClientChannelsMix} from './channels';
|
|
import {DEFAULT_LIMIT_AFTER, DEFAULT_LIMIT_BEFORE, HEADER_X_VERSION_ID} from './constants';
|
|
import ClientCustomAttributes, {type ClientCustomAttributesMix} from './custom_profile_attributes';
|
|
import ClientEmojis, {type ClientEmojisMix} from './emojis';
|
|
import ClientFiles, {type ClientFilesMix} from './files';
|
|
import ClientGeneral, {type ClientGeneralMix} from './general';
|
|
import ClientGroups, {type ClientGroupsMix} from './groups';
|
|
import ClientIntegrations, {type ClientIntegrationsMix} from './integrations';
|
|
import ClientNPS, {type ClientNPSMix} from './nps';
|
|
import ClientPosts, {type ClientPostsMix} from './posts';
|
|
import ClientPreferences, {type ClientPreferencesMix} from './preferences';
|
|
import ClientScheduledPost, {type ClientScheduledPostMix} from './scheduled_post';
|
|
import ClientTeams, {type ClientTeamsMix} from './teams';
|
|
import ClientThreads, {type ClientThreadsMix} from './threads';
|
|
import ClientTos, {type ClientTosMix} from './tos';
|
|
import ClientUsers, {type ClientUsersMix} from './users';
|
|
|
|
import type {APIClientInterface} from '@mattermost/react-native-network-client';
|
|
|
|
interface Client extends ClientBase,
|
|
ClientAppsMix,
|
|
ClientCategoriesMix,
|
|
ClientChannelsMix,
|
|
ClientChannelBookmarksMix,
|
|
ClientEmojisMix,
|
|
ClientFilesMix,
|
|
ClientGeneralMix,
|
|
ClientGroupsMix,
|
|
ClientIntegrationsMix,
|
|
ClientPostsMix,
|
|
ClientPreferencesMix,
|
|
ClientScheduledPostMix,
|
|
ClientTeamsMix,
|
|
ClientThreadsMix,
|
|
ClientTosMix,
|
|
ClientUsersMix,
|
|
ClientCallsMix,
|
|
ClientPluginsMix,
|
|
ClientNPSMix,
|
|
ClientCustomAttributesMix,
|
|
ClientPlaybooksMix
|
|
{}
|
|
|
|
class Client extends mix(ClientBase).with(
|
|
ClientApps,
|
|
ClientCategories,
|
|
ClientChannels,
|
|
ClientChannelBookmarks,
|
|
ClientEmojis,
|
|
ClientFiles,
|
|
ClientGeneral,
|
|
ClientGroups,
|
|
ClientIntegrations,
|
|
ClientPosts,
|
|
ClientPreferences,
|
|
ClientScheduledPost,
|
|
ClientTeams,
|
|
ClientThreads,
|
|
ClientTos,
|
|
ClientUsers,
|
|
ClientCalls,
|
|
ClientPlugins,
|
|
ClientNPS,
|
|
ClientCustomAttributes,
|
|
ClientScheduledPost,
|
|
ClientPlaybooks,
|
|
) {
|
|
// 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};
|