29 lines
967 B
TypeScript
29 lines
967 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;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { IRouter } from 'src/core/server';
|
|
import { LicensingPluginSetup } from '../../licensing/server';
|
|
import { IndexManagementPluginSetup } from '../../index_management/server';
|
|
import { RemoteClustersPluginSetup } from '../../remote_clusters/server';
|
|
import { License } from './services';
|
|
import { isEsError } from './shared_imports';
|
|
import { formatEsError } from './lib/format_es_error';
|
|
|
|
export interface Dependencies {
|
|
licensing: LicensingPluginSetup;
|
|
indexManagement: IndexManagementPluginSetup;
|
|
remoteClusters: RemoteClustersPluginSetup;
|
|
}
|
|
|
|
export interface RouteDependencies {
|
|
router: IRouter;
|
|
license: License;
|
|
lib: {
|
|
isEsError: typeof isEsError;
|
|
formatEsError: typeof formatEsError;
|
|
};
|
|
}
|