-
Notifications
You must be signed in to change notification settings - Fork 8.3k
/
index.ts
159 lines (133 loc) · 4.66 KB
/
index.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
* 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.
*/
// TODO: https://github.com/elastic/kibana/issues/110895
import type { PluginInitializerContext } from '@kbn/core/server';
import { Plugin } from './plugin';
export type {
Rule,
RuleAction,
RuleType,
RuleTypeIndex,
RuleTypeModel,
RuleStatusFilterProps,
RuleStatus,
RuleTableItem,
ActionType,
ActionTypeRegistryContract,
RuleTypeRegistryContract,
RuleTypeParamsExpressionProps,
ValidationResult,
ActionVariables,
ActionConnector,
IErrorObject,
RuleFlyoutCloseReason,
RuleTypeParams,
AsApiContract,
AlertsTableProps,
RuleSummary,
AlertStatus,
AlertsTableConfigurationRegistryContract,
AlertsTableFlyoutBaseProps,
RuleEventLogListProps,
AlertTableFlyoutComponent,
FieldBrowserOptions,
FieldBrowserProps,
RuleDefinitionProps,
RulesListVisibleColumns,
AlertSummaryTimeRange,
NotifyWhenSelectOptions,
RuleCreationValidConsumer,
} from './types';
export type {
ActionConnectorFieldsProps,
ActionParamsProps,
ActionTypeModel,
GenericValidationResult,
} from './types';
export {
AlertHistoryDefaultIndexName,
ALERT_HISTORY_PREFIX,
AlertHistoryDocumentTemplate,
AlertHistoryEsIndexConnectorId,
ActionConnectorMode,
} from './types';
export { useConnectorContext } from './application/context/use_connector_context';
export {
ActionForm,
CreateConnectorFlyout,
EditConnectorFlyout,
} from './application/sections/action_connector_form';
export type { ConnectorFormSchema } from './application/sections/action_connector_form';
export { getCategory } from './application/sections/field_browser/helpers';
export type { ConfigFieldSchema, SecretsFieldSchema } from './application/components';
export {
JsonEditorWithMessageVariables,
JsonFieldWrapper,
MustacheTextFieldWrapper,
SimpleConnectorForm,
TextAreaWithMessageVariables,
TextFieldWithMessageVariables,
SectionLoading,
} from './application/components';
export {
hasMustacheTokens,
templateActionVariable,
updateActionConnector,
executeAction,
} from './application/lib';
export { AlertProvidedActionVariables } from '@kbn/alerts-ui-shared';
export type { ActionGroupWithCondition } from './application/sections';
export { AlertConditions, AlertConditionsGroup } from './application/sections';
export function plugin(context: PluginInitializerContext) {
return new Plugin(context);
}
export { useKibana } from './common';
export type { AggregationType, ValidNormalizedTypes } from './common';
export {
WhenExpression,
OfExpression,
ForLastExpression,
ThresholdExpression,
ValueExpression,
builtInComparators,
builtInGroupByTypes,
builtInAggregationTypes,
getFields,
getIndexOptions,
firstFieldOption,
getTimeFieldOptions,
getTimeOptions,
GroupByExpression,
connectorDeprecatedMessage,
deprecatedMessage,
} from './common';
export { useLoadRuleTypesQuery, useSubAction } from './application/hooks';
export type {
TriggersAndActionsUIPublicPluginSetup,
TriggersAndActionsUIPublicPluginStart,
} from './plugin';
export { Plugin } from './plugin';
// TODO remove this import when we expose the Rules tables as a component
export { loadRuleSummary } from './application/lib/rule_api/rule_summary';
export { bulkDeleteRules } from './application/lib/rule_api/bulk_delete';
export { loadRuleAggregations } from './application/lib/rule_api/aggregate';
export { loadRule } from './application/lib/rule_api/get_rule';
export { loadRuleTypes } from './application/lib/rule_api/rule_types';
export { suspendedComponentWithProps } from './application/lib/suspended_component_with_props';
export { loadActionTypes } from './application/lib/action_connector_api/connector_types';
export { TIME_UNITS } from './application/constants';
export { getTimeUnitLabel } from './common/lib/get_time_unit_label';
export type { TriggersAndActionsUiServices } from './application/rules_app';
export type { BulkOperationAttributes, BulkOperationResponse } from './types';
export const getNotifyWhenOptions = async () => {
const { NOTIFY_WHEN_OPTIONS } = await import('./application/sections/rule_form/rule_notify_when');
return NOTIFY_WHEN_OPTIONS;
};
export { transformRule } from './application/lib/rule_api/common_transformations';
export { validateActionFilterQuery } from './application/lib/value_validators';
export { useBulkUntrackAlerts } from './application/sections/alerts_table/hooks/use_bulk_untrack_alerts';
export { AlertsTableContext } from './application/sections/alerts_table/contexts/alerts_table_context';