kibana/x-pack/plugins/maps/public/api/start_api.ts
Nathan Reese a753f83140
[maps] move registerLayerWizard and registerSource to MapsSetupApi (#112465)
* [maps] move registerLayerWizard and registerSource to MapsSetupApi

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 10:07:49 -06:00

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>;
}