import { SavedObjectsClientContract } from 'src/core/server' ; import { collectReferencesDeep } from './collect_references_deep' ; export async function exportDashboards ( ids , savedObjectsClient , kibanaVersion ) { const objectsToExport = ids . map ( ( id ) => ( { id , type : 'dashboard' } ) ) ; const objects = await collectReferencesDeep ( savedObjectsClient , objectsToExport ) ; return { version : kibanaVersion , objects , } ; }