mattermost-redux
Version:
Common code (API client, Redux stores, logic, utility functions) for building a Mattermost client
36 lines (35 loc) • 2.26 kB
TypeScript
import type { ClientConfig, FeatureFlags, ClientLicense } from '@mattermost/types/config';
import type { UserPropertyField } from '@mattermost/types/properties';
import type { GlobalState } from '@mattermost/types/store';
import type { CWSAvailabilityState } from '../../reducers/entities/general';
export declare function getConfig(state: GlobalState): Partial<ClientConfig>;
/**
* Safely get value of a specific or known FeatureFlag
*/
export declare function getFeatureFlagValue(state: GlobalState, key: keyof FeatureFlags): string | undefined;
export type PasswordConfig = {
minimumLength: number;
requireLowercase: boolean;
requireUppercase: boolean;
requireNumber: boolean;
requireSymbol: boolean;
};
export declare const getPasswordConfig: (state: GlobalState) => PasswordConfig;
export declare function getLicense(state: GlobalState): ClientLicense;
export declare const isCloudLicense: (state: GlobalState) => boolean;
export declare function isCompatibleWithJoinViewTeamPermissions(state: GlobalState): boolean;
export declare const canUploadFilesOnMobile: (a: GlobalState) => boolean;
export declare const canDownloadFilesOnMobile: (a: GlobalState) => boolean;
export declare const getAutolinkedUrlSchemes: (a: GlobalState) => string[];
export declare const getManagedResourcePaths: (state: GlobalState) => string[];
export declare const getServerVersion: (state: GlobalState) => string;
export declare function getFirstAdminVisitMarketplaceStatus(state: GlobalState): boolean;
export declare function getFirstAdminSetupComplete(state: GlobalState): boolean;
export declare function isPerformanceDebuggingEnabled(state: GlobalState): boolean;
export declare const isMarketplaceEnabled: (state: GlobalState) => boolean;
export declare const getUsersStatusAndProfileFetchingPollInterval: (state: GlobalState) => number | null;
export declare function developerModeEnabled(state: GlobalState): boolean;
export declare function testingEnabled(state: GlobalState): boolean;
export declare const getCustomProfileAttributes: (state: GlobalState) => UserPropertyField[];
export declare function getIsCrossTeamSearchEnabled(state: GlobalState): boolean;
export declare function getCWSAvailability(state: GlobalState): CWSAvailabilityState;