mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Move @kbn/config-schema
to server] transform
(#191685)
This commit is contained in:
parent
09a365850e
commit
b36b198293
96 changed files with 143 additions and 156 deletions
|
@ -7,7 +7,10 @@
|
|||
|
||||
import type { EuiComboBoxOptionOption } from '@elastic/eui/src/components/combo_box/types';
|
||||
import { isPopulatedObject } from '@kbn/ml-is-populated-object';
|
||||
import type { LatestFunctionConfig, PutTransformsRequestSchema } from '../api_schemas/transforms';
|
||||
import type {
|
||||
LatestFunctionConfig,
|
||||
PutTransformsRequestSchema,
|
||||
} from '../../server/routes/api_schemas/transforms';
|
||||
import type { PivotGroupByDict } from './pivot_group_by';
|
||||
import type { PivotAggDict } from './pivot_aggs';
|
||||
import type { TransformHealthAlertRule } from './alerting';
|
||||
|
|
|
@ -14,7 +14,7 @@ import type { ScopedHistory } from '@kbn/core/public';
|
|||
import { KibanaContextProvider } from '@kbn/kibana-react-plugin/public';
|
||||
import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render';
|
||||
|
||||
import type { ExperimentalFeatures } from '../../common/config';
|
||||
import type { ExperimentalFeatures } from '../../server/config';
|
||||
import { SECTION_SLUG } from './common/constants';
|
||||
import type { AppDependencies } from './app_dependencies';
|
||||
import { CloneTransformSection } from './sections/clone_transform';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../common/api_schemas/transforms';
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../server/routes/api_schemas/transforms';
|
||||
|
||||
import type { TransformConfigQuery } from './request';
|
||||
|
||||
|
|
|
@ -14,19 +14,19 @@ import {
|
|||
type SavedSearchQuery,
|
||||
} from '@kbn/ml-query-utils';
|
||||
|
||||
import {
|
||||
DEFAULT_CONTINUOUS_MODE_DELAY,
|
||||
DEFAULT_TRANSFORM_FREQUENCY,
|
||||
DEFAULT_TRANSFORM_SETTINGS_DOCS_PER_SECOND,
|
||||
DEFAULT_TRANSFORM_SETTINGS_MAX_PAGE_SEARCH_SIZE,
|
||||
} from '../../../common/constants';
|
||||
import type {
|
||||
PivotTransformPreviewRequestSchema,
|
||||
PostTransformsPreviewRequestSchema,
|
||||
PutTransformsLatestRequestSchema,
|
||||
PutTransformsPivotRequestSchema,
|
||||
PutTransformsRequestSchema,
|
||||
} from '../../../common/api_schemas/transforms';
|
||||
} from '../../../server/routes/api_schemas/transforms';
|
||||
import {
|
||||
DEFAULT_CONTINUOUS_MODE_DELAY,
|
||||
DEFAULT_TRANSFORM_FREQUENCY,
|
||||
DEFAULT_TRANSFORM_SETTINGS_DOCS_PER_SECOND,
|
||||
DEFAULT_TRANSFORM_SETTINGS_MAX_PAGE_SEARCH_SIZE,
|
||||
} from '../../../common/constants';
|
||||
import type {
|
||||
DateHistogramAgg,
|
||||
HistogramAgg,
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { TRANSFORM_STATE } from '../../../common/constants';
|
||||
|
||||
import type { TransformListRow } from './transform_list';
|
||||
import type {
|
||||
PutTransformsLatestRequestSchema,
|
||||
PutTransformsPivotRequestSchema,
|
||||
} from '../../../common/api_schemas/transforms';
|
||||
} from '../../../server/routes/api_schemas/transforms';
|
||||
import { TRANSFORM_STATE } from '../../../common/constants';
|
||||
|
||||
import type { TransformListRow } from './transform_list';
|
||||
|
||||
type TransformItem = Omit<TransformListRow, 'config'> & {
|
||||
config:
|
||||
|
|
|
@ -14,7 +14,7 @@ import { toMountPoint } from '@kbn/react-kibana-mount';
|
|||
import type {
|
||||
PutTransformsRequestSchema,
|
||||
PutTransformsResponseSchema,
|
||||
} from '../../../common/api_schemas/transforms';
|
||||
} from '../../../server/routes/api_schemas/transforms';
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import type { TransformId } from '../../../common/types/transform';
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
|
|
|
@ -12,11 +12,11 @@ import { i18n } from '@kbn/i18n';
|
|||
import { toMountPoint } from '@kbn/react-kibana-mount';
|
||||
import { extractErrorMessage } from '@kbn/ml-error-utils';
|
||||
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import type {
|
||||
DeleteTransformsRequestSchema,
|
||||
DeleteTransformsResponseSchema,
|
||||
} from '../../../common/api_schemas/delete_transforms';
|
||||
} from '../../../server/routes/api_schemas/delete_transforms';
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
|
||||
import { useAppDependencies, useToastNotifications } from '../app_dependencies';
|
||||
|
|
|
@ -12,11 +12,11 @@ import type { KBN_FIELD_TYPES } from '@kbn/field-types';
|
|||
import { DEFAULT_SAMPLER_SHARD_SIZE } from '@kbn/ml-agg-utils';
|
||||
import type { SavedSearchQuery } from '@kbn/ml-query-utils';
|
||||
|
||||
import { addInternalBasePath, TRANSFORM_REACT_QUERY_KEYS } from '../../../common/constants';
|
||||
import type {
|
||||
FieldHistogramsRequestSchema,
|
||||
FieldHistogramsResponseSchema,
|
||||
} from '../../../common/api_schemas/field_histograms';
|
||||
} from '../../../server/routes/api_schemas/field_histograms';
|
||||
import { addInternalBasePath, TRANSFORM_REACT_QUERY_KEYS } from '../../../common/constants';
|
||||
|
||||
import { useAppDependencies } from '../app_dependencies';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { useQuery } from '@tanstack/react-query';
|
|||
|
||||
import type { IHttpFetchError } from '@kbn/core-http-browser';
|
||||
|
||||
import type { GetTransformsResponseSchema } from '../../../common/api_schemas/transforms';
|
||||
import type { GetTransformsResponseSchema } from '../../../server/routes/api_schemas/transforms';
|
||||
import { addInternalBasePath, TRANSFORM_REACT_QUERY_KEYS } from '../../../common/constants';
|
||||
import type { TransformId } from '../../../common/types/transform';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { useQuery } from '@tanstack/react-query';
|
|||
|
||||
import type { IHttpFetchError } from '@kbn/core-http-browser';
|
||||
|
||||
import type { GetTransformsAuditMessagesResponseSchema } from '../../../common/api_schemas/audit_messages';
|
||||
import type { GetTransformsAuditMessagesResponseSchema } from '../../../server/routes/api_schemas/audit_messages';
|
||||
import { addInternalBasePath, TRANSFORM_REACT_QUERY_KEYS } from '../../../common/constants';
|
||||
import type { TransformMessage } from '../../../common/types/messages';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { useQuery } from '@tanstack/react-query';
|
|||
|
||||
import type { IHttpFetchError } from '@kbn/core-http-browser';
|
||||
|
||||
import type { GetTransformNodesResponseSchema } from '../../../common/api_schemas/transforms';
|
||||
import type { GetTransformNodesResponseSchema } from '../../../server/routes/api_schemas/transforms';
|
||||
import {
|
||||
addInternalBasePath,
|
||||
DEFAULT_REFRESH_INTERVAL_MS,
|
||||
|
|
|
@ -9,7 +9,7 @@ import { useQuery } from '@tanstack/react-query';
|
|||
|
||||
import type { IHttpFetchError } from '@kbn/core-http-browser';
|
||||
|
||||
import type { GetTransformsStatsResponseSchema } from '../../../common/api_schemas/transforms_stats';
|
||||
import type { GetTransformsStatsResponseSchema } from '../../../server/routes/api_schemas/transforms_stats';
|
||||
import { addInternalBasePath, TRANSFORM_REACT_QUERY_KEYS } from '../../../common/constants';
|
||||
import type { TransformId } from '../../../common/types/transform';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { useQuery } from '@tanstack/react-query';
|
|||
import type { IHttpFetchError } from '@kbn/core-http-browser';
|
||||
import { isDefined } from '@kbn/ml-is-defined';
|
||||
|
||||
import type { GetTransformsResponseSchema } from '../../../common/api_schemas/transforms';
|
||||
import type { GetTransformsResponseSchema } from '../../../server/routes/api_schemas/transforms';
|
||||
import {
|
||||
addInternalBasePath,
|
||||
DEFAULT_REFRESH_INTERVAL_MS,
|
||||
|
|
|
@ -12,7 +12,7 @@ import type { IHttpFetchError } from '@kbn/core-http-browser';
|
|||
import type {
|
||||
PostTransformsPreviewRequestSchema,
|
||||
PostTransformsPreviewResponseSchema,
|
||||
} from '../../../common/api_schemas/transforms';
|
||||
} from '../../../server/routes/api_schemas/transforms';
|
||||
import { addInternalBasePath, TRANSFORM_REACT_QUERY_KEYS } from '../../../common/constants';
|
||||
|
||||
import { useAppDependencies } from '../app_dependencies';
|
||||
|
|
|
@ -12,12 +12,12 @@ import { i18n } from '@kbn/i18n';
|
|||
|
||||
import { toMountPoint } from '@kbn/react-kibana-mount';
|
||||
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
import type {
|
||||
ReauthorizeTransformsRequestSchema,
|
||||
ReauthorizeTransformsResponseSchema,
|
||||
} from '../../../common/api_schemas/reauthorize_transforms';
|
||||
} from '../../../server/routes/api_schemas/reauthorize_transforms';
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
|
||||
import { useAppDependencies, useToastNotifications } from '../app_dependencies';
|
||||
import { ToastNotificationText } from '../components';
|
||||
|
|
|
@ -14,7 +14,7 @@ import { toMountPoint } from '@kbn/react-kibana-mount';
|
|||
import type {
|
||||
ResetTransformsRequestSchema,
|
||||
ResetTransformsResponseSchema,
|
||||
} from '../../../common/api_schemas/reset_transforms';
|
||||
} from '../../../server/routes/api_schemas/reset_transforms';
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
|
||||
|
|
|
@ -11,11 +11,11 @@ import { useMutation } from '@tanstack/react-query';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { toMountPoint } from '@kbn/react-kibana-mount';
|
||||
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import type {
|
||||
ScheduleNowTransformsRequestSchema,
|
||||
ScheduleNowTransformsResponseSchema,
|
||||
} from '../../../common/api_schemas/schedule_now_transforms';
|
||||
} from '../../../server/routes/api_schemas/schedule_now_transforms';
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
|
||||
import { useAppDependencies, useToastNotifications } from '../app_dependencies';
|
||||
|
|
|
@ -11,11 +11,11 @@ import { useMutation } from '@tanstack/react-query';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { toMountPoint } from '@kbn/react-kibana-mount';
|
||||
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import type {
|
||||
StartTransformsRequestSchema,
|
||||
StartTransformsResponseSchema,
|
||||
} from '../../../common/api_schemas/start_transforms';
|
||||
} from '../../../server/routes/api_schemas/start_transforms';
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
|
||||
import { useAppDependencies, useToastNotifications } from '../app_dependencies';
|
||||
|
|
|
@ -12,11 +12,11 @@ import { i18n } from '@kbn/i18n';
|
|||
|
||||
import { toMountPoint } from '@kbn/react-kibana-mount';
|
||||
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import type {
|
||||
StopTransformsRequestSchema,
|
||||
StopTransformsResponseSchema,
|
||||
} from '../../../common/api_schemas/stop_transforms';
|
||||
} from '../../../server/routes/api_schemas/stop_transforms';
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
|
||||
import { useAppDependencies, useToastNotifications } from '../app_dependencies';
|
||||
|
|
|
@ -28,7 +28,7 @@ import {
|
|||
INDEX_STATUS,
|
||||
} from '@kbn/ml-data-grid';
|
||||
|
||||
import type { PreviewMappingsProperties } from '../../../common/api_schemas/transforms';
|
||||
import type { PreviewMappingsProperties } from '../../../server/routes/api_schemas/transforms';
|
||||
|
||||
import { getErrorMessage } from '../../../common/utils/errors';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { useMutation } from '@tanstack/react-query';
|
|||
import type {
|
||||
PostTransformsUpdateRequestSchema,
|
||||
PostTransformsUpdateResponseSchema,
|
||||
} from '../../../common/api_schemas/update_transforms';
|
||||
} from '../../../server/routes/api_schemas/update_transforms';
|
||||
import { addInternalBasePath } from '../../../common/constants';
|
||||
import type { TransformId } from '../../../common/types/transform';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import { type TransformEnabledFeatures } from './serverless_context';
|
|||
import type { PluginsDependencies } from '../plugin';
|
||||
import { getMlSharedImports } from '../shared_imports';
|
||||
|
||||
import type { ExperimentalFeatures } from '../../common/config';
|
||||
import type { ExperimentalFeatures } from '../../server/config';
|
||||
import type { AppDependencies } from './app_dependencies';
|
||||
import { breadcrumbService } from './services/navigation';
|
||||
import { docTitleService } from './services/navigation';
|
||||
|
|
|
@ -28,6 +28,10 @@ import { toMountPoint } from '@kbn/react-kibana-mount';
|
|||
|
||||
import { DISCOVER_APP_LOCATOR } from '@kbn/discover-plugin/common';
|
||||
|
||||
import type {
|
||||
PutTransformsLatestRequestSchema,
|
||||
PutTransformsPivotRequestSchema,
|
||||
} from '../../../../../../server/routes/api_schemas/transforms';
|
||||
import { PROGRESS_REFRESH_INTERVAL_MS } from '../../../../../../common/constants';
|
||||
|
||||
import { getErrorMessage } from '../../../../../../common/utils/errors';
|
||||
|
@ -37,10 +41,6 @@ import { useCreateTransform, useGetTransformStats, useStartTransforms } from '..
|
|||
import { useAppDependencies, useToastNotifications } from '../../../../app_dependencies';
|
||||
import { RedirectToTransformManagement } from '../../../../common/navigation';
|
||||
import { ToastNotificationText } from '../../../../components';
|
||||
import type {
|
||||
PutTransformsLatestRequestSchema,
|
||||
PutTransformsPivotRequestSchema,
|
||||
} from '../../../../../../common/api_schemas/transforms';
|
||||
import { isContinuousTransform } from '../../../../../../common/types/transform';
|
||||
import { TransformAlertFlyout } from '../../../../../alerting/transform_alerting_flyout';
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ import type { TimeRange as TimeRangeMs } from '@kbn/ml-date-picker';
|
|||
import type { RuntimeMappings } from '@kbn/ml-runtime-field-utils';
|
||||
import type { SavedSearchQuery } from '@kbn/ml-query-utils';
|
||||
|
||||
import type { LatestFunctionConfig } from '../../../../../../../server/routes/api_schemas/transforms';
|
||||
import type { EsFieldName } from '../../../../../../../common/types/fields';
|
||||
|
||||
import type {
|
||||
|
@ -26,7 +27,6 @@ import type {
|
|||
LatestFunctionConfigUI,
|
||||
PivotConfigDefinition,
|
||||
} from '../../../../../../../common/types/transform';
|
||||
import type { LatestFunctionConfig } from '../../../../../../../common/api_schemas/transforms';
|
||||
|
||||
import type { QUERY_LANGUAGE } from './constants';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { XJsonMode } from '@kbn/ace';
|
|||
|
||||
import { XJson } from '@kbn/es-ui-shared-plugin/public';
|
||||
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../../../../../common/api_schemas/transforms';
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../../../../../server/routes/api_schemas/transforms';
|
||||
|
||||
import type { StepDefineExposedState } from '../common';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { useState } from 'react';
|
||||
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../../../../../common/api_schemas/transforms';
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../../../../../server/routes/api_schemas/transforms';
|
||||
|
||||
import type { StepDefineExposedState } from '../common';
|
||||
|
||||
|
|
|
@ -10,10 +10,10 @@ import { i18n } from '@kbn/i18n';
|
|||
import type { EuiComboBoxOptionOption } from '@elastic/eui';
|
||||
import type { AggConfigs, FieldParamType } from '@kbn/data-plugin/common';
|
||||
import { isCounterTimeSeriesMetric } from '@kbn/ml-agg-utils';
|
||||
import type { LatestFunctionConfig } from '../../../../../../../server/routes/api_schemas/transforms';
|
||||
import type { LatestFunctionConfigUI } from '../../../../../../../common/types/transform';
|
||||
import type { StepDefineFormProps } from '../step_define_form';
|
||||
import type { StepDefineExposedState } from '../common';
|
||||
import type { LatestFunctionConfig } from '../../../../../../../common/api_schemas/transforms';
|
||||
import { useAppDependencies } from '../../../../../app_dependencies';
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,7 +12,7 @@ import { EuiFormRow, EuiSelect, EuiSpacer, EuiSwitch } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { toMountPoint } from '@kbn/react-kibana-mount';
|
||||
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../../../common/api_schemas/transforms';
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../../../server/routes/api_schemas/transforms';
|
||||
import { isLatestTransform, isPivotTransform } from '../../../../../common/types/transform';
|
||||
import { getErrorMessage } from '../../../../../common/utils/errors';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { merge } from 'lodash';
|
||||
|
||||
import type { PostTransformsUpdateRequestSchema } from '../../../../../common/api_schemas/update_transforms';
|
||||
import type { PostTransformsUpdateRequestSchema } from '../../../../../server/routes/api_schemas/update_transforms';
|
||||
import type { TransformConfigUnion } from '../../../../../common/types/transform';
|
||||
|
||||
import { getUpdateValue } from './get_update_value';
|
||||
|
|
|
@ -9,7 +9,7 @@ import { merge } from 'lodash';
|
|||
|
||||
import { getNestedProperty, setNestedProperty } from '@kbn/ml-nested-property';
|
||||
|
||||
import type { PostTransformsUpdateRequestSchema } from '../../../../../common/api_schemas/update_transforms';
|
||||
import type { PostTransformsUpdateRequestSchema } from '../../../../../server/routes/api_schemas/update_transforms';
|
||||
import type { TransformConfigUnion } from '../../../../../common/types/transform';
|
||||
|
||||
import type { FormFields, FormFieldsState } from './form_field';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { FC, PropsWithChildren } from 'react';
|
||||
import React, { createContext, useContext, useMemo } from 'react';
|
||||
import type { ExperimentalFeatures } from '../../common/config';
|
||||
import type { ExperimentalFeatures } from '../../server/config';
|
||||
|
||||
export interface TransformEnabledFeatures {
|
||||
showNodeInfo: boolean;
|
||||
|
|
|
@ -25,7 +25,7 @@ import type { ContentManagementPublicStart } from '@kbn/content-management-plugi
|
|||
import type { SavedSearchPublicPluginStart } from '@kbn/saved-search-plugin/public';
|
||||
import type { PluginInitializerContext } from '@kbn/core/public';
|
||||
import type { DataViewEditorStart } from '@kbn/data-view-editor-plugin/public';
|
||||
import type { ConfigSchema } from '../common/config';
|
||||
import type { ConfigSchema } from '../server/config';
|
||||
import { registerFeature } from './register_feature';
|
||||
import { getTransformHealthRuleType } from './alerting';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import type { PluginInitializerContext, PluginConfigDescriptor } from '@kbn/core/server';
|
||||
import { configSchema, type ConfigSchema } from '../common/config';
|
||||
import { configSchema, type ConfigSchema } from './config';
|
||||
|
||||
export const plugin = async (ctx: PluginInitializerContext) => {
|
||||
const { TransformServerPlugin } = await import('./plugin');
|
||||
|
|
|
@ -5,13 +5,13 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
import type { TransformIdParamSchema } from '../../../../common/api_schemas/common';
|
||||
import { transformIdParamSchema } from '../../../../common/api_schemas/common';
|
||||
import type { TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import { transformIdParamSchema } from '../../api_schemas/common';
|
||||
import {
|
||||
getTransformAuditMessagesQuerySchema,
|
||||
type GetTransformAuditMessagesQuerySchema,
|
||||
} from '../../../../common/api_schemas/audit_messages';
|
||||
} from '../../api_schemas/audit_messages';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import {
|
||||
DEFAULT_MAX_AUDIT_MESSAGE_SIZE,
|
||||
TRANSFORM_NOTIFICATIONS_INDEX,
|
||||
} from '../../../../common/constants';
|
||||
import type { TransformIdParamSchema } from '../../../../common/api_schemas/common';
|
||||
import type { AuditMessage } from '../../../../common/types/messages';
|
||||
|
||||
import { wrapError, wrapEsError } from '../../utils/error_utils';
|
||||
|
|
|
@ -10,13 +10,13 @@ import type { DataViewsService } from '@kbn/data-views-plugin/common';
|
|||
import { deleteDataViewFn } from '@kbn/ml-data-view-utils/actions/delete';
|
||||
import type { DeleteDataViewApiResponseSchema } from '@kbn/ml-data-view-utils/types/api_delete_response_schema';
|
||||
|
||||
import type { ResponseStatus } from '../../api_schemas/common';
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
import { TRANSFORM_STATE } from '../../../../common/constants';
|
||||
import type { ResponseStatus } from '../../../../common/api_schemas/common';
|
||||
import type {
|
||||
DeleteTransformsRequestSchema,
|
||||
DeleteTransformsResponseSchema,
|
||||
} from '../../../../common/api_schemas/delete_transforms';
|
||||
} from '../../api_schemas/delete_transforms';
|
||||
|
||||
import { isRequestTimeout, fillResultsWithTimeouts } from '../../utils/error_utils';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import {
|
||||
deleteTransformsRequestSchema,
|
||||
type DeleteTransformsRequestSchema,
|
||||
} from '../../../../common/api_schemas/delete_transforms';
|
||||
} from '../../api_schemas/delete_transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import { type DeleteTransformsRequestSchema } from '../../../../common/api_schemas/delete_transforms';
|
||||
import { type DeleteTransformsRequestSchema } from '../../api_schemas/delete_transforms';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -5,12 +5,11 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { DataViewTitleSchema } from '../../api_schemas/common';
|
||||
import { dataViewTitleSchema } from '../../api_schemas/common';
|
||||
import type { FieldHistogramsRequestSchema } from '../../api_schemas/field_histograms';
|
||||
import { fieldHistogramsRequestSchema } from '../../api_schemas/field_histograms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { DataViewTitleSchema } from '../../../../common/api_schemas/common';
|
||||
import { dataViewTitleSchema } from '../../../../common/api_schemas/common';
|
||||
import type { FieldHistogramsRequestSchema } from '../../../../common/api_schemas/field_histograms';
|
||||
import { fieldHistogramsRequestSchema } from '../../../../common/api_schemas/field_histograms';
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
||||
import { routeHandler } from './route_handler';
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
import type { RequestHandler } from '@kbn/core/server';
|
||||
import { fetchHistogramsForFields } from '@kbn/ml-agg-utils';
|
||||
|
||||
import type { DataViewTitleSchema } from '../../../../common/api_schemas/common';
|
||||
import type { FieldHistogramsRequestSchema } from '../../../../common/api_schemas/field_histograms';
|
||||
import type { DataViewTitleSchema } from '../../api_schemas/common';
|
||||
import type { FieldHistogramsRequestSchema } from '../../api_schemas/field_histograms';
|
||||
|
||||
import { wrapError, wrapEsError } from '../../utils/error_utils';
|
||||
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
import type { ElasticsearchClient } from '@kbn/core/server';
|
||||
import type { TransportRequestOptions } from '@elastic/elasticsearch';
|
||||
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
import type {
|
||||
ReauthorizeTransformsRequestSchema,
|
||||
ReauthorizeTransformsResponseSchema,
|
||||
} from '../../../../common/api_schemas/reauthorize_transforms';
|
||||
} from '../../api_schemas/reauthorize_transforms';
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
|
||||
import { isRequestTimeout, fillResultsWithTimeouts } from '../../utils/error_utils';
|
||||
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { StartTransformsRequestSchema } from '../../../../common/api_schemas/start_transforms';
|
||||
import { reauthorizeTransformsRequestSchema } from '../../../../common/api_schemas/reauthorize_transforms';
|
||||
import type { StartTransformsRequestSchema } from '../../api_schemas/start_transforms';
|
||||
import { reauthorizeTransformsRequestSchema } from '../../api_schemas/reauthorize_transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { StartTransformsRequestSchema } from '../../api_schemas/start_transforms';
|
||||
import { generateTransformSecondaryAuthHeaders } from '../../../../common/utils/transform_api_key';
|
||||
import type { StartTransformsRequestSchema } from '../../../../common/api_schemas/start_transforms';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import {
|
||||
resetTransformsRequestSchema,
|
||||
type ResetTransformsRequestSchema,
|
||||
} from '../../../../common/api_schemas/reset_transforms';
|
||||
} from '../../api_schemas/reset_transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
import type { KibanaResponseFactory, RequestHandlerContext } from '@kbn/core/server';
|
||||
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
import type { ResponseStatus } from '../../../../common/api_schemas/common';
|
||||
import type { ResponseStatus } from '../../api_schemas/common';
|
||||
import type {
|
||||
ResetTransformsRequestSchema,
|
||||
ResetTransformsResponseSchema,
|
||||
} from '../../../../common/api_schemas/reset_transforms';
|
||||
} from '../../api_schemas/reset_transforms';
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
|
||||
import { isRequestTimeout, fillResultsWithTimeouts } from '../../utils/error_utils';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { ResetTransformsRequestSchema } from '../../../../common/api_schemas/reset_transforms';
|
||||
import type { ResetTransformsRequestSchema } from '../../api_schemas/reset_transforms';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import {
|
||||
scheduleNowTransformsRequestSchema,
|
||||
type ScheduleNowTransformsRequestSchema,
|
||||
} from '../../../../common/api_schemas/schedule_now_transforms';
|
||||
} from '../../api_schemas/schedule_now_transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { ScheduleNowTransformsRequestSchema } from '../../../../common/api_schemas/schedule_now_transforms';
|
||||
import type { ScheduleNowTransformsRequestSchema } from '../../api_schemas/schedule_now_transforms';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
import type { ElasticsearchClient } from '@kbn/core/server';
|
||||
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
import type {
|
||||
ScheduleNowTransformsRequestSchema,
|
||||
ScheduleNowTransformsResponseSchema,
|
||||
} from '../../../../common/api_schemas/schedule_now_transforms';
|
||||
} from '../../api_schemas/schedule_now_transforms';
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
|
||||
import { isRequestTimeout, fillResultsWithTimeouts } from '../../utils/error_utils';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import {
|
||||
startTransformsRequestSchema,
|
||||
type StartTransformsRequestSchema,
|
||||
} from '../../../../common/api_schemas/start_transforms';
|
||||
} from '../../api_schemas/start_transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { StartTransformsRequestSchema } from '../../../../common/api_schemas/start_transforms';
|
||||
import type { StartTransformsRequestSchema } from '../../api_schemas/start_transforms';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
import type { ElasticsearchClient } from '@kbn/core/server';
|
||||
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
import type {
|
||||
StartTransformsRequestSchema,
|
||||
StartTransformsResponseSchema,
|
||||
} from '../../../../common/api_schemas/start_transforms';
|
||||
} from '../../api_schemas/start_transforms';
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
|
||||
import { isRequestTimeout, fillResultsWithTimeouts } from '../../utils/error_utils';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import {
|
||||
stopTransformsRequestSchema,
|
||||
type StopTransformsRequestSchema,
|
||||
} from '../../../../common/api_schemas/stop_transforms';
|
||||
} from '../../api_schemas/stop_transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { StopTransformsRequestSchema } from '../../../../common/api_schemas/stop_transforms';
|
||||
import type { StopTransformsRequestSchema } from '../../api_schemas/stop_transforms';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
import type { ElasticsearchClient } from '@kbn/core/server';
|
||||
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
import { TRANSFORM_STATE } from '../../../../common/constants';
|
||||
import type {
|
||||
StopTransformsRequestSchema,
|
||||
StopTransformsResponseSchema,
|
||||
} from '../../../../common/api_schemas/stop_transforms';
|
||||
} from '../../api_schemas/stop_transforms';
|
||||
import { TRANSFORM_ACTIONS } from '../../../../common/types/transform';
|
||||
import { TRANSFORM_STATE } from '../../../../common/constants';
|
||||
|
||||
import { isRequestTimeout, fillResultsWithTimeouts } from '../../utils/error_utils';
|
||||
|
||||
|
|
|
@ -10,14 +10,11 @@ import {
|
|||
type DataViewCreateQuerySchema,
|
||||
} from '@kbn/ml-data-view-utils/schemas/api_create_query_schema';
|
||||
|
||||
import {
|
||||
transformIdParamSchema,
|
||||
type TransformIdParamSchema,
|
||||
} from '../../../../common/api_schemas/common';
|
||||
import { transformIdParamSchema, type TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import {
|
||||
putTransformsRequestSchema,
|
||||
type PutTransformsRequestSchema,
|
||||
} from '../../../../common/api_schemas/transforms';
|
||||
} from '../../api_schemas/transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -11,11 +11,11 @@ import type { DataViewCreateQuerySchema } from '@kbn/ml-data-view-utils/schemas/
|
|||
import { createDataViewFn } from '@kbn/ml-data-view-utils/actions/create';
|
||||
import { isPopulatedObject } from '@kbn/ml-is-populated-object';
|
||||
|
||||
import type { TransformIdParamSchema } from '../../../../common/api_schemas/common';
|
||||
import type { TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import type {
|
||||
PutTransformsRequestSchema,
|
||||
PutTransformsResponseSchema,
|
||||
} from '../../../../common/api_schemas/transforms';
|
||||
} from '../../api_schemas/transforms';
|
||||
import { isLatestTransform } from '../../../../common/types/transform';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../../common/api_schemas/transforms';
|
||||
import { postTransformsPreviewRequestSchema } from '../../../../common/api_schemas/transforms';
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../api_schemas/transforms';
|
||||
import { postTransformsPreviewRequestSchema } from '../../api_schemas/transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -9,7 +9,7 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../../../common/api_schemas/transforms';
|
||||
import type { PostTransformsPreviewRequestSchema } from '../../api_schemas/transforms';
|
||||
import { isLatestTransform } from '../../../../common/types/transform';
|
||||
import { isKeywordDuplicate } from '../../../../common/utils/field_utils';
|
||||
|
||||
|
|
|
@ -5,11 +5,8 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { transformIdParamSchema, type TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
import {
|
||||
transformIdParamSchema,
|
||||
type TransformIdParamSchema,
|
||||
} from '../../../../common/api_schemas/common';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { TransformIdParamSchema } from '../../../../common/api_schemas/common';
|
||||
import type { TransformIdParamSchema } from '../../api_schemas/common';
|
||||
|
||||
import { wrapError, wrapEsError } from '../../utils/error_utils';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
|
|||
import {
|
||||
getTransformStatsQuerySchema,
|
||||
type GetTransformStatsQuerySchema,
|
||||
} from '../../../../common/api_schemas/transforms_stats';
|
||||
} from '../../api_schemas/transforms_stats';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -9,7 +9,7 @@ import type * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import { type GetTransformStatsQuerySchema } from '../../../../common/api_schemas/transforms_stats';
|
||||
import { type GetTransformStatsQuerySchema } from '../../api_schemas/transforms_stats';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
|
||||
|
|
|
@ -5,14 +5,11 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
transformIdParamSchema,
|
||||
type TransformIdParamSchema,
|
||||
} from '../../../../common/api_schemas/common';
|
||||
import { transformIdParamSchema, type TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import {
|
||||
getTransformStatsQuerySchema,
|
||||
type GetTransformStatsQuerySchema,
|
||||
} from '../../../../common/api_schemas/transforms_stats';
|
||||
} from '../../api_schemas/transforms_stats';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { TransformIdParamSchema } from '../../../../common/api_schemas/common';
|
||||
import type { GetTransformStatsQuerySchema } from '../../../../common/api_schemas/transforms_stats';
|
||||
import type { TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import type { GetTransformStatsQuerySchema } from '../../api_schemas/transforms_stats';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
|
||||
|
|
|
@ -5,14 +5,11 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import {
|
||||
transformIdParamSchema,
|
||||
type TransformIdParamSchema,
|
||||
} from '../../../../common/api_schemas/common';
|
||||
import { transformIdParamSchema, type TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import {
|
||||
postTransformsUpdateRequestSchema,
|
||||
type PostTransformsUpdateRequestSchema,
|
||||
} from '../../../../common/api_schemas/update_transforms';
|
||||
} from '../../api_schemas/update_transforms';
|
||||
import { addInternalBasePath } from '../../../../common/constants';
|
||||
|
||||
import type { RouteDependencies } from '../../../types';
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import type { RequestHandler } from '@kbn/core/server';
|
||||
|
||||
import type { TransformIdParamSchema } from '../../../../common/api_schemas/common';
|
||||
import type { PostTransformsUpdateRequestSchema } from '../../../../common/api_schemas/update_transforms';
|
||||
import type { TransformIdParamSchema } from '../../api_schemas/common';
|
||||
import type { PostTransformsUpdateRequestSchema } from '../../api_schemas/update_transforms';
|
||||
|
||||
import type { TransformRequestHandlerContext } from '../../../services/license';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import type { TypeOf } from '@kbn/config-schema';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
|
||||
import type { TransformMessage } from '../types/messages';
|
||||
import type { TransformMessage } from '../../../common/types/messages';
|
||||
|
||||
export interface GetTransformsAuditMessagesResponseSchema {
|
||||
messages: TransformMessage[];
|
|
@ -9,7 +9,7 @@ import type { TypeOf } from '@kbn/config-schema';
|
|||
import { schema } from '@kbn/config-schema';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { isRuntimeField } from '@kbn/ml-runtime-field-utils';
|
||||
import { TRANSFORM_STATE } from '../constants';
|
||||
import { TRANSFORM_STATE } from '../../../common/constants';
|
||||
|
||||
export const transformIdsSchema = schema.arrayOf(
|
||||
schema.object({
|
|
@ -9,10 +9,10 @@ import { schema, type TypeOf } from '@kbn/config-schema';
|
|||
import type { ES_FIELD_TYPES } from '@kbn/field-types';
|
||||
import type { CreateDataViewApiResponseSchema } from '@kbn/ml-data-view-utils/types/api_create_response_schema';
|
||||
|
||||
import type { Dictionary } from '../types/common';
|
||||
import type { PivotAggDict } from '../types/pivot_aggs';
|
||||
import type { PivotGroupByDict } from '../types/pivot_group_by';
|
||||
import type { TransformId, TransformConfigUnion } from '../types/transform';
|
||||
import type { Dictionary } from '../../../common/types/common';
|
||||
import type { PivotAggDict } from '../../../common/types/pivot_aggs';
|
||||
import type { PivotGroupByDict } from '../../../common/types/pivot_group_by';
|
||||
import type { TransformId, TransformConfigUnion } from '../../../common/types/transform';
|
||||
|
||||
import { transformStateSchema, runtimeMappingsSchema } from './common';
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
import type { TypeOf } from '@kbn/config-schema';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
|
||||
import type { TransformStats } from '../types/transform_stats';
|
||||
import type { TransformStats } from '../../../common/types/transform_stats';
|
||||
|
||||
import { getTransformsRequestSchema } from './transforms';
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
import type { TypeOf } from '@kbn/config-schema';
|
||||
import { schema } from '@kbn/config-schema';
|
||||
|
||||
import type { TransformPivotConfig } from '../types/transform';
|
||||
import type { TransformPivotConfig } from '../../../common/types/transform';
|
||||
|
||||
import { retentionPolicySchema, settingsSchema, sourceSchema, syncSchema } from './transforms';
|
||||
|
|
@ -11,12 +11,9 @@ import { i18n } from '@kbn/i18n';
|
|||
|
||||
import type { ResponseError, CustomHttpResponseOptions } from '@kbn/core/server';
|
||||
|
||||
import type {
|
||||
CommonResponseStatusSchema,
|
||||
TransformIdsSchema,
|
||||
} from '../../../common/api_schemas/common';
|
||||
import type { DeleteTransformsResponseSchema } from '../../../common/api_schemas/delete_transforms';
|
||||
import type { ResetTransformsResponseSchema } from '../../../common/api_schemas/reset_transforms';
|
||||
import type { CommonResponseStatusSchema, TransformIdsSchema } from '../api_schemas/common';
|
||||
import type { DeleteTransformsResponseSchema } from '../api_schemas/delete_transforms';
|
||||
import type { ResetTransformsResponseSchema } from '../api_schemas/reset_transforms';
|
||||
|
||||
const REQUEST_TIMEOUT = 'RequestTimeout';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { PutTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import { PutTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import { ESTestIndexTool, ES_TEST_INDEX_NAME } from '@kbn/alerting-api-integration-helpers';
|
||||
import {
|
||||
ALERT_ACTION_GROUP,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import type { PutTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { PutTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
|
||||
export async function asyncForEach(array: any[], callback: Function) {
|
||||
for (let index = 0; index < array.length; index++) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { DeleteTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/delete_transforms';
|
||||
import { DeleteTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/delete_transforms';
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { getCommonRequestHeader } from '../../../functional/services/ml/common_api';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { ReauthorizeTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/reauthorize_transforms';
|
||||
import { ReauthorizeTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/reauthorize_transforms';
|
||||
import expect from '@kbn/expect';
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
import type { SecurityCreateApiKeyResponse } from '@elastic/elasticsearch/lib/api/types';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { ResetTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/reset_transforms';
|
||||
import { ResetTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/reset_transforms';
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { getCommonRequestHeader } from '../../../functional/services/ml/common_api';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { ScheduleNowTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/schedule_now_transforms';
|
||||
import { ScheduleNowTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/schedule_now_transforms';
|
||||
|
||||
import { getCommonRequestHeader } from '../../../functional/services/ml/common_api';
|
||||
import { USER } from '../../../functional/services/transform/security_common';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import { StartTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/start_transforms';
|
||||
import { StartTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/start_transforms';
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { getCommonRequestHeader } from '../../../functional/services/ml/common_api';
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import type { PutTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { StopTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/stop_transforms';
|
||||
import type { PutTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import type { StopTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/stop_transforms';
|
||||
|
||||
import { TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import type { GetTransformsResponseSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { GetTransformsResponseSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import { getCommonRequestHeader } from '../../../functional/services/ml/common_api';
|
||||
import { USER } from '../../../functional/services/transform/security_common';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import type { GetTransformNodesResponseSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { GetTransformNodesResponseSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import { getCommonRequestHeader } from '../../../functional/services/ml/common_api';
|
||||
import { USER } from '../../../functional/services/transform/security_common';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import type { PostTransformsPreviewRequestSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { PostTransformsPreviewRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
import { getCommonRequestHeader } from '../../../functional/services/ml/common_api';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import type { GetTransformsStatsResponseSchema } from '@kbn/transform-plugin/common/api_schemas/transforms_stats';
|
||||
import type { GetTransformsStatsResponseSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms_stats';
|
||||
import { TRANSFORM_STATE, type TransformState } from '@kbn/transform-plugin/common/constants';
|
||||
|
||||
import { getCommonRequestHeader } from '../../../functional/services/ml/common_api';
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
import expect from '@kbn/expect';
|
||||
|
||||
import type { PutTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { PutTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import { TransformState, TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
import type { TransformStats } from '@kbn/transform-plugin/common/types/transform_stats';
|
||||
|
||||
import type { GetTransformsResponseSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { PostTransformsUpdateRequestSchema } from '@kbn/transform-plugin/common/api_schemas/update_transforms';
|
||||
import type { GetTransformsResponseSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import type { PostTransformsUpdateRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/update_transforms';
|
||||
import type { TransformPivotConfig } from '@kbn/transform-plugin/common/types/transform';
|
||||
import type { IndicesCreateRequest } from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
|
||||
import type { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
|
|
@ -9,10 +9,10 @@ import expect from '@kbn/expect';
|
|||
|
||||
import { TransformState, TRANSFORM_STATE } from '@kbn/transform-plugin/common/constants';
|
||||
import type { TransformStats } from '@kbn/transform-plugin/common/types/transform_stats';
|
||||
import type { GetTransformsResponseSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { PostTransformsUpdateRequestSchema } from '@kbn/transform-plugin/common/api_schemas/update_transforms';
|
||||
import type { GetTransformsResponseSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import type { PostTransformsUpdateRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/update_transforms';
|
||||
import type { TransformPivotConfig } from '@kbn/transform-plugin/common/types/transform';
|
||||
import type { PutTransformsRequestSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { PutTransformsRequestSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export async function asyncForEach(array: any[], callback: Function) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { cleanup, generate } from '@kbn/infra-forge';
|
||||
import expect from '@kbn/expect';
|
||||
import type { GetTransformsResponseSchema } from '@kbn/transform-plugin/common/api_schemas/transforms';
|
||||
import type { GetTransformsResponseSchema } from '@kbn/transform-plugin/server/routes/api_schemas/transforms';
|
||||
import { SO_SLO_TYPE } from '@kbn/slo-plugin/server/saved_objects';
|
||||
import { ALL_VALUE } from '@kbn/slo-schema';
|
||||
import {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue