import { SavedObjectsType } from 'opensearch-dashboards/server' ; import { indexPatternSavedObjectTypeMigrations } from './index_pattern_migrations' ; export const indexPatternSavedObjectType = { name : 'index-pattern' , hidden : false , namespaceType : 'single' , management : { icon : 'indexPatternApp' , defaultSearchField : 'title' , importableAndExportable : true , getTitle ( obj ) { return obj . attributes . title ; } , getEditUrl ( obj ) { return `/management/opensearch-dashboards/indexPatterns/patterns/${ encodeURIComponent ( obj . id ) }` ; } , getInAppUrl ( obj ) { return { path : `/app/management/opensearch-dashboards/indexPatterns/patterns/${ encodeURIComponent ( obj . id ) }` , uiCapabilitiesPath : 'management.opensearchDashboards.indexPatterns' , } ; } , } , mappings : { dynamic : false , properties : { title : { type : 'text' } , type : { type : 'keyword' } , } , } , migrations : indexPatternSavedObjectTypeMigrations as any , } ;