mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* [maps] move registerLayerWizard and registerSource to MapsSetupApi * eslint Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
24 lines
982 B
TypeScript
24 lines
982 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import type { LayerDescriptor } from '../../common/descriptor_types';
|
|
import type { CreateLayerDescriptorParams } from '../classes/sources/es_search_source';
|
|
import type { SampleValuesConfig, EMSTermJoinConfig } from '../ems_autosuggest';
|
|
|
|
export interface MapsStartApi {
|
|
createLayerDescriptors: {
|
|
createSecurityLayerDescriptors: (
|
|
indexPatternId: string,
|
|
indexPatternTitle: string
|
|
) => Promise<LayerDescriptor[]>;
|
|
createBasemapLayerDescriptor: () => Promise<LayerDescriptor | null>;
|
|
createESSearchSourceLayerDescriptor: (
|
|
params: CreateLayerDescriptorParams
|
|
) => Promise<LayerDescriptor>;
|
|
};
|
|
suggestEMSTermJoinConfig(config: SampleValuesConfig): Promise<EMSTermJoinConfig | null>;
|
|
}
|