mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Removes module core/server/types (#147223)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> fix https://github.com/elastic/kibana/issues/145065
This commit is contained in:
parent
be95686ef0
commit
f7706252fd
8 changed files with 13 additions and 70 deletions
|
@ -429,7 +429,11 @@ export type {
|
|||
DeprecationsClient,
|
||||
DeprecationsRequestHandlerContext,
|
||||
} from '@kbn/core-deprecations-server';
|
||||
export type { DeprecationsDetails } from '@kbn/core-deprecations-common';
|
||||
export type {
|
||||
DeprecationsDetails,
|
||||
DomainDeprecationDetails,
|
||||
DeprecationsGetResponse,
|
||||
} from '@kbn/core-deprecations-common';
|
||||
|
||||
export type { AppCategory } from '@kbn/core-application-common';
|
||||
export { DEFAULT_APP_CATEGORIES, APP_WRAPPER_CLASS } from '@kbn/core-application-common';
|
||||
|
|
|
@ -1,62 +0,0 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/** This module is intended for consumption by public to avoid import issues with server-side code */
|
||||
export type { EnvironmentMode, PackageInfo } from '@kbn/config';
|
||||
export type { PluginOpaqueId } from '@kbn/core-base-common';
|
||||
export type {
|
||||
SavedObjectsImportResponse,
|
||||
SavedObjectsImportSuccess,
|
||||
SavedObjectsImportConflictError,
|
||||
SavedObjectsImportAmbiguousConflictError,
|
||||
SavedObjectsImportUnsupportedTypeError,
|
||||
SavedObjectsImportMissingReferencesError,
|
||||
SavedObjectsImportUnknownError,
|
||||
SavedObjectsImportFailure,
|
||||
SavedObjectsImportRetry,
|
||||
SavedObjectsImportWarning,
|
||||
SavedObjectsImportActionRequiredWarning,
|
||||
SavedObjectsImportSimpleWarning,
|
||||
SavedObjectAttributes,
|
||||
SavedObjectAttribute,
|
||||
SavedObjectAttributeSingle,
|
||||
SavedObject,
|
||||
SavedObjectsNamespaceType,
|
||||
SavedObjectError,
|
||||
SavedObjectReference,
|
||||
SavedObjectsMigrationVersion,
|
||||
} from '@kbn/core-saved-objects-common';
|
||||
export type {
|
||||
SavedObjectsFindOptionsReference,
|
||||
SavedObjectsFindOptions,
|
||||
SavedObjectsPitParams,
|
||||
SavedObjectsBaseOptions,
|
||||
MutatingOperationRefreshSetting,
|
||||
SavedObjectsClientContract,
|
||||
SavedObjectReferenceWithContext,
|
||||
SavedObjectsCollectMultiNamespaceReferencesResponse,
|
||||
} from '@kbn/core-saved-objects-api-server';
|
||||
export type {
|
||||
DomainDeprecationDetails,
|
||||
DeprecationsGetResponse,
|
||||
} from '@kbn/core-deprecations-common';
|
||||
export type { ExternalUrlConfig } from '@kbn/core-http-server-internal';
|
||||
export type { SavedObjectStatusMeta } from '@kbn/core-saved-objects-server';
|
||||
export type {
|
||||
UiSettingsParams,
|
||||
PublicUiSettingsParams,
|
||||
UiSettingsType,
|
||||
UserProvidedValues,
|
||||
DeprecationSettings,
|
||||
} from '@kbn/core-ui-settings-common';
|
||||
export type {
|
||||
IUiSettingsClient,
|
||||
UiSettingsServiceSetup,
|
||||
UiSettingsServiceStart,
|
||||
UiSettingsRequestHandlerContext,
|
||||
} from '@kbn/core-ui-settings-server';
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import type { DeprecationsGetResponse } from '@kbn/core/server/types';
|
||||
import type { DeprecationsGetResponse } from '@kbn/core/server';
|
||||
import { FtrProviderContext } from '../../../ftr_provider_context';
|
||||
|
||||
export default function ({ getService }: FtrProviderContext) {
|
||||
|
|
|
@ -7,8 +7,9 @@
|
|||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import type { DomainDeprecationDetails, DeprecationsGetResponse } from '@kbn/core/server/types';
|
||||
|
||||
import type { ResolveDeprecationResponse } from '@kbn/core/public';
|
||||
import type { DeprecationsGetResponse, DomainDeprecationDetails } from '@kbn/core/server';
|
||||
import { PluginFunctionalProviderContext } from '../../services';
|
||||
|
||||
export default function ({ getService, getPageObjects }: PluginFunctionalProviderContext) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { SavedObjectAttribute, SavedObjectReference } from '@kbn/core/server/types';
|
||||
import { SavedObjectAttribute, SavedObjectReference } from '@kbn/core/server';
|
||||
import { RelatedSavedObjects } from './related_saved_objects';
|
||||
|
||||
export const ACTION_REF_NAME = `actionRef`;
|
||||
|
|
|
@ -12,9 +12,10 @@ import type {
|
|||
SavedObjectsBulkCreateObject,
|
||||
SavedObjectsClientContract,
|
||||
ISavedObjectsImporter,
|
||||
SavedObjectsImportSuccess,
|
||||
SavedObjectsImportFailure,
|
||||
Logger,
|
||||
} from '@kbn/core/server';
|
||||
import type { SavedObjectsImportSuccess, SavedObjectsImportFailure } from '@kbn/core/server/types';
|
||||
import { createListStream } from '@kbn/utils';
|
||||
import { partition } from 'lodash';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { deprecationsServiceMock } from '@kbn/core/server/mocks';
|
||||
import { DomainDeprecationDetails } from '@kbn/core/server/types';
|
||||
import type { DomainDeprecationDetails } from '@kbn/core/server';
|
||||
|
||||
import { getKibanaUpgradeStatus } from './kibana_status';
|
||||
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { DeprecationsClient } from '@kbn/core/server';
|
||||
import { DomainDeprecationDetails } from '@kbn/core/server/types';
|
||||
import { DeprecationsClient, DomainDeprecationDetails } from '@kbn/core/server';
|
||||
|
||||
export const getKibanaUpgradeStatus = async (deprecationsClient: DeprecationsClient) => {
|
||||
const kibanaDeprecations: DomainDeprecationDetails[] =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue