From 6a0ff8c0178c918d34f887304e75f4fa5f6a2dce Mon Sep 17 00:00:00 2001 From: adcoelho Date: Thu, 11 May 2023 14:21:20 +0200 Subject: [PATCH] Remove unnecessarily public exports. --- x-pack/plugins/cases/common/index.ts | 25 ++++++++++--------------- x-pack/plugins/cases/public/index.tsx | 17 ++--------------- 2 files changed, 12 insertions(+), 30 deletions(-) diff --git a/x-pack/plugins/cases/common/index.ts b/x-pack/plugins/cases/common/index.ts index f63a015ceb17d..b1643c950b9d1 100644 --- a/x-pack/plugins/cases/common/index.ts +++ b/x-pack/plugins/cases/common/index.ts @@ -15,6 +15,16 @@ // For example, constants below could eventually be in a "kbn-cases-constants" instead. // See: https://docs.elastic.dev/kibana-dev-docs/key-concepts/platform-intro#public-plugin-api +export type { Case, Cases, CasesBulkGetResponse } from './api'; +export type { + CaseUI, + CasesUI, + CasesFindResponseUI, + Ecs, + CaseViewRefreshPropInterface, + CasesPermissions, +} from './ui/types'; + export { APP_ID, CASES_URL, @@ -36,21 +46,6 @@ export { throwErrors, ExternalReferenceStorageType, } from './api'; - -export type { Case, Cases, CasesBulkGetRequest, CasesBulkGetResponse } from './api'; - -export type { - CaseUI, - CasesUI, - CasesFindResponseUI, - Ecs, - CasesFeatures, - CaseViewRefreshPropInterface, - CasesPermissions, -} from './ui/types'; - export { StatusAll } from './ui/types'; - -export { getCreateConnectorUrl, getAllConnectorsUrl } from './utils/connectors_api'; export { createUICapabilities } from './utils/capabilities'; export { getApiTags } from './utils/api_tags'; diff --git a/x-pack/plugins/cases/public/index.tsx b/x-pack/plugins/cases/public/index.tsx index 7130d412bebf1..365c850909116 100644 --- a/x-pack/plugins/cases/public/index.tsx +++ b/x-pack/plugins/cases/public/index.tsx @@ -14,25 +14,12 @@ export function plugin(initializerContext: PluginInitializerContext) { export { DRAFT_COMMENT_STORAGE_ID } from './components/markdown_editor/plugins/lens/constants'; -export type { CasesUiPlugin }; export type { CasesUiStart, CasesUiSetup } from './types'; -export type { GetCasesProps } from './client/ui/get_cases'; export type { GetCreateCaseFlyoutProps } from './client/ui/get_create_case_flyout'; export type { GetAllCasesSelectorModalProps } from './client/ui/get_all_cases_selector_modal'; export type { GetRecentCasesProps } from './client/ui/get_recent_cases'; -export type { - CaseAttachments, - SupportedCaseAttachment, - CaseAttachmentsWithoutOwner, -} from './types'; +export type { CaseAttachments, CaseAttachmentsWithoutOwner } from './types'; export type { ICasesDeepLinkId } from './common/navigation'; -export { - getCasesDeepLinks, - CasesDeepLinkId, - generateCaseViewPath, - getCreateCasePath, - getCaseViewPath, - getCasesConfigurePath, -} from './common/navigation'; +export { getCasesDeepLinks, CasesDeepLinkId, generateCaseViewPath } from './common/navigation';