/
types.ts
111 lines (102 loc) · 3.4 KB
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*
* 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 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import { BfetchPublicSetup } from '@kbn/bfetch-plugin/public';
import { ExpressionsSetup } from '@kbn/expressions-plugin/public';
import { DataViewsPublicPluginStart } from '@kbn/data-views-plugin/public';
import { UiActionsSetup, UiActionsStart } from '@kbn/ui-actions-plugin/public';
import { FieldFormatsSetup, FieldFormatsStart } from '@kbn/field-formats-plugin/public';
import { UsageCollectionSetup } from '@kbn/usage-collection-plugin/public';
import {
Setup as InspectorSetup,
Start as InspectorStartContract,
} from '@kbn/inspector-plugin/public';
import { ScreenshotModePluginStart } from '@kbn/screenshot-mode-plugin/public';
import { SharePluginStart } from '@kbn/share-plugin/public';
import { ManagementSetup } from '@kbn/management-plugin/public';
import { DatatableUtilitiesService } from '../common';
import {
createFiltersFromMultiValueClickAction,
createFiltersFromRangeSelectAction,
createFiltersFromValueClickAction,
} from './actions';
import type { ISearchSetup, ISearchStart } from './search';
import { QuerySetup, QueryStart } from './query';
import { DataViewsContract } from './data_views';
import { NowProviderPublicContract } from './now_provider';
export interface DataSetupDependencies {
bfetch: BfetchPublicSetup;
expressions: ExpressionsSetup;
uiActions: UiActionsSetup;
inspector: InspectorSetup;
usageCollection?: UsageCollectionSetup;
fieldFormats: FieldFormatsSetup;
management: ManagementSetup;
}
export interface DataStartDependencies {
uiActions: UiActionsStart;
fieldFormats: FieldFormatsStart;
dataViews: DataViewsPublicPluginStart;
inspector: InspectorStartContract;
screenshotMode: ScreenshotModePluginStart;
share: SharePluginStart;
}
/**
* Data plugin public Setup contract
*/
export interface DataPublicPluginSetup {
search: ISearchSetup;
query: QuerySetup;
}
/**
* utilities to generate filters from action context
*/
export interface DataPublicPluginStartActions {
createFiltersFromValueClickAction: typeof createFiltersFromValueClickAction;
createFiltersFromRangeSelectAction: typeof createFiltersFromRangeSelectAction;
createFiltersFromMultiValueClickAction: typeof createFiltersFromMultiValueClickAction;
}
/**
* Data plugin public Start contract
*/
export interface DataPublicPluginStart {
/**
* filter creation utilities
* {@link DataPublicPluginStartActions}
*/
actions: DataPublicPluginStartActions;
/**
* data views service
* {@link DataViewsContract}
*/
dataViews: DataViewsContract;
/**
* Datatable type utility functions.
*/
datatableUtilities: DatatableUtilitiesService;
/**
* index patterns service
* {@link DataViewsContract}
* @deprecated Use dataViews service instead. All index pattern interfaces were renamed.
*/
indexPatterns: DataViewsContract;
/**
* search service
* {@link ISearchStart}
*/
search: ISearchStart;
/**
* @deprecated Use fieldFormats plugin instead
*/
fieldFormats: FieldFormatsStart;
/**
* query service
* {@link QueryStart}
*/
query: QueryStart;
nowProvider: NowProviderPublicContract;
}