mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
chore(NA): splits types from code on @kbn/rule-data-utils (#121535)
* chore(NA): splits types from code on @kbn/rule-data-utils * chore(NA): remove old style imports for this pkg * chore(NA): eslint fix Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
e8bf0392f0
commit
aa6fe695af
65 changed files with 93 additions and 161 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { get, isEmpty, isNumber, isObject, isString } from 'lodash/fp';
|
||||
|
||||
import { ALERT_RULE_PARAMETERS } from '@kbn/rule-data-utils/technical_field_names';
|
||||
import { ALERT_RULE_PARAMETERS } from '@kbn/rule-data-utils';
|
||||
import { EventHit, EventSource, TimelineEventsDetailsItem } from '../search_strategy';
|
||||
import { toObjectArrayOfStrings, toStringArray } from './to_array';
|
||||
export const baseCategoryFields = ['@timestamp', 'labels', 'message', 'tags'];
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
import { AddToCaseAction } from './add_to_case_action';
|
||||
import { SECURITY_SOLUTION_OWNER } from '../../../../../../cases/common';
|
||||
import { AddToCaseActionButton } from './add_to_case_action_button';
|
||||
import { ALERT_RULE_UUID } from '@kbn/rule-data-utils/technical_field_names';
|
||||
import { ALERT_RULE_UUID } from '@kbn/rule-data-utils';
|
||||
|
||||
jest.mock('react-router-dom', () => ({
|
||||
useLocation: () => ({
|
||||
|
|
|
@ -5,10 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
ALERT_RULE_CONSUMER,
|
||||
ALERT_RULE_PRODUCER,
|
||||
} from '@kbn/rule-data-utils/technical_field_names';
|
||||
import { ALERT_RULE_CONSUMER, ALERT_RULE_PRODUCER } from '@kbn/rule-data-utils';
|
||||
import { isEmpty } from 'lodash/fp';
|
||||
|
||||
import { EuiDataGridCellValueElementProps } from '@elastic/eui';
|
||||
|
|
|
@ -32,10 +32,7 @@ import React, {
|
|||
import { connect, ConnectedProps, useDispatch } from 'react-redux';
|
||||
|
||||
import styled, { ThemeContext } from 'styled-components';
|
||||
import {
|
||||
ALERT_RULE_CONSUMER,
|
||||
ALERT_RULE_PRODUCER,
|
||||
} from '@kbn/rule-data-utils/technical_field_names';
|
||||
import { ALERT_RULE_CONSUMER, ALERT_RULE_PRODUCER } from '@kbn/rule-data-utils';
|
||||
import { Filter } from '@kbn/es-query';
|
||||
import {
|
||||
TGridCellAction,
|
||||
|
|
|
@ -15,11 +15,7 @@ import {
|
|||
EuiHorizontalRule,
|
||||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import {
|
||||
ALERT_REASON,
|
||||
ALERT_RULE_NAME,
|
||||
ALERT_RULE_UUID,
|
||||
} from '@kbn/rule-data-utils/technical_field_names';
|
||||
import { ALERT_REASON, ALERT_RULE_NAME, ALERT_RULE_UUID } from '@kbn/rule-data-utils';
|
||||
import { get } from 'lodash';
|
||||
import moment from 'moment';
|
||||
import React, { ComponentType, useCallback, useMemo } from 'react';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { AlertConsumers } from '@kbn/rule-data-utils/alerts_as_data_rbac';
|
||||
import { AlertConsumers } from '@kbn/rule-data-utils';
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiPanel } from '@elastic/eui';
|
||||
import { isEmpty } from 'lodash/fp';
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { AlertConsumers } from '@kbn/rule-data-utils/alerts_as_data_rbac';
|
||||
import type { AlertConsumers } from '@kbn/rule-data-utils';
|
||||
import deepEqual from 'fast-deep-equal';
|
||||
import { isEmpty, isString, noop } from 'lodash/fp';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { normalizedEventFields } from './use_add_to_case';
|
||||
import { ALERT_RULE_NAME, ALERT_RULE_UUID } from '@kbn/rule-data-utils/technical_field_names';
|
||||
import { ALERT_RULE_NAME, ALERT_RULE_UUID } from '@kbn/rule-data-utils';
|
||||
import { merge } from 'lodash';
|
||||
|
||||
const defaultArgs = {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { get, isEmpty } from 'lodash/fp';
|
||||
import { useState, useCallback, useMemo, SyntheticEvent } from 'react';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { ALERT_RULE_NAME, ALERT_RULE_UUID } from '@kbn/rule-data-utils/technical_field_names';
|
||||
import { ALERT_RULE_NAME, ALERT_RULE_UUID } from '@kbn/rule-data-utils';
|
||||
import { useKibana } from '../../../../../src/plugins/kibana_react/public';
|
||||
import { Case, SubCase } from '../../../cases/common';
|
||||
import { TimelinesStartServices } from '../types';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { ALERT_START, ALERT_STATUS } from '@kbn/rule-data-utils/technical_field_names';
|
||||
import { ALERT_START, ALERT_STATUS } from '@kbn/rule-data-utils';
|
||||
import { TGridIntegratedProps } from '../components/t_grid/integrated';
|
||||
import { mockBrowserFields, mockDocValueFields, mockRuntimeMappings } from './browser_fields';
|
||||
import { mockDataProviders } from './mock_data_providers';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue