import { i18n } from '@kbn/i18n' ; import { schema } from '@kbn/config-schema' ; import { UiSettingsParams } from 'kibana/server' ; import { UI_SETTINGS } from '../common/constants' ; export const getUiSettings = ( ) => ( { [ UI_SETTINGS . MAX_BUCKETS_SETTING ] : { name : i18n . translate ( 'visTypeTimeseries.advancedSettings.maxBucketsTitle' , { defaultMessage : 'TSVB buckets limit' , } ) , value : 2000 , description : i18n . translate ( 'visTypeTimeseries.advancedSettings.maxBucketsText' , { defaultMessage : 'Affects the TSVB histogram density. Must be set higher than "histogram:maxBars".' , } ) , schema : schema . number ( ) , } , [ UI_SETTINGS . ALLOW_STRING_INDICES ] : { name : i18n . translate ( 'visTypeTimeseries.advancedSettings.allowStringIndicesTitle' , { defaultMessage : 'Allow string indices in TSVB' , } ) , value : false , requiresPageReload : true , description : i18n . translate ( 'visTypeTimeseries.advancedSettings.allowStringIndicesText' , { defaultMessage : 'Enables you to use index patterns and Elasticsearch indices in <strong>TSVB</strong> visualizations.' , } ) , schema : schema . boolean ( ) , } , } ) ;