diff --git a/packages/osd-spec-to-console/README.md b/packages/osd-spec-to-console/README.md index 11c6570c96ce..a4039e09cc9b 100644 --- a/packages/osd-spec-to-console/README.md +++ b/packages/osd-spec-to-console/README.md @@ -22,7 +22,7 @@ At the root of the OpenSearch Dashboards repository, run the following commands: ```sh # OSS -yarn spec_to_console -g "/rest-api-spec/src/main/resources/rest-api-spec/api/*" -d "src/plugins/console/server/lib/spec_definitions/json/generated" +yarn spec_to_console -g "/rest-api-spec/src/main/resources/rest-api-spec/api/*" -d "src/plugins/console/server/lib/spec-definitions/json/generated" ``` diff --git a/src/plugins/bfetch/public/streaming/fetch_streaming.test.ts b/src/plugins/bfetch/public/streaming/fetch_streaming.test.ts index 685564566afe..76871876e9f8 100644 --- a/src/plugins/bfetch/public/streaming/fetch_streaming.test.ts +++ b/src/plugins/bfetch/public/streaming/fetch_streaming.test.ts @@ -31,7 +31,7 @@ */ import { fetchStreaming } from './fetch_streaming'; -import { mockXMLHttpRequest } from '../test_helpers/xhr'; +import { mockXMLHttpRequest } from '../test-helpers/xhr'; const tick = () => new Promise((resolve) => setTimeout(resolve, 1)); diff --git a/src/plugins/bfetch/public/test_helpers/xhr.ts b/src/plugins/bfetch/public/test-helpers/xhr.ts similarity index 100% rename from src/plugins/bfetch/public/test_helpers/xhr.ts rename to src/plugins/bfetch/public/test-helpers/xhr.ts diff --git a/src/plugins/charts/public/mocks.ts b/src/plugins/charts/public/mocks.ts index eaafdde21ba3..70b5ebda030a 100644 --- a/src/plugins/charts/public/mocks.ts +++ b/src/plugins/charts/public/mocks.ts @@ -47,7 +47,7 @@ const createStartContract = (): Start => ({ theme: themeServiceMock, }); -export { colorMapsMock } from './static/color_maps/mock'; +export { colorMapsMock } from './static/color-maps/mock'; export const chartPluginMock = { createSetupContract, diff --git a/src/plugins/charts/public/static/color_maps/color_maps.ts b/src/plugins/charts/public/static/color-maps/color_maps.ts similarity index 100% rename from src/plugins/charts/public/static/color_maps/color_maps.ts rename to src/plugins/charts/public/static/color-maps/color_maps.ts diff --git a/src/plugins/charts/public/static/color_maps/heatmap_color.test.ts b/src/plugins/charts/public/static/color-maps/heatmap_color.test.ts similarity index 100% rename from src/plugins/charts/public/static/color_maps/heatmap_color.test.ts rename to src/plugins/charts/public/static/color-maps/heatmap_color.test.ts diff --git a/src/plugins/charts/public/static/color_maps/heatmap_color.ts b/src/plugins/charts/public/static/color-maps/heatmap_color.ts similarity index 100% rename from src/plugins/charts/public/static/color_maps/heatmap_color.ts rename to src/plugins/charts/public/static/color-maps/heatmap_color.ts diff --git a/src/plugins/charts/public/static/color_maps/index.ts b/src/plugins/charts/public/static/color-maps/index.ts similarity index 100% rename from src/plugins/charts/public/static/color_maps/index.ts rename to src/plugins/charts/public/static/color-maps/index.ts diff --git a/src/plugins/charts/public/static/color_maps/mock.ts b/src/plugins/charts/public/static/color-maps/mock.ts similarity index 100% rename from src/plugins/charts/public/static/color_maps/mock.ts rename to src/plugins/charts/public/static/color-maps/mock.ts diff --git a/src/plugins/charts/public/static/color_maps/truncated_color_maps.ts b/src/plugins/charts/public/static/color-maps/truncated_color_maps.ts similarity index 100% rename from src/plugins/charts/public/static/color_maps/truncated_color_maps.ts rename to src/plugins/charts/public/static/color-maps/truncated_color_maps.ts diff --git a/src/plugins/charts/public/static/components/color_schema.tsx b/src/plugins/charts/public/static/components/color_schema.tsx index e2f7fc454e52..06bb94a78468 100644 --- a/src/plugins/charts/public/static/components/color_schema.tsx +++ b/src/plugins/charts/public/static/components/color_schema.tsx @@ -39,7 +39,7 @@ import { VisOptionsProps } from 'src/plugins/vis_default_editor/public'; import { SelectOption } from './select'; import { SwitchOption } from './switch'; import { ColorSchemaParams } from './types'; -import { ColorSchema } from '../color_maps'; +import { ColorSchema } from '../color-maps'; export type SetColorSchemaOptionsValue = ( paramName: T, diff --git a/src/plugins/charts/public/static/components/types.ts b/src/plugins/charts/public/static/components/types.ts index 18ec4802e306..ff9d1319cfcb 100644 --- a/src/plugins/charts/public/static/components/types.ts +++ b/src/plugins/charts/public/static/components/types.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ -import { ColorSchemas } from '../color_maps'; +import { ColorSchemas } from '../color-maps'; import { Rotates } from './collections'; export interface ColorSchemaParams { diff --git a/src/plugins/charts/public/static/index.ts b/src/plugins/charts/public/static/index.ts index b2a0aa7d167a..79bcb0025f87 100644 --- a/src/plugins/charts/public/static/index.ts +++ b/src/plugins/charts/public/static/index.ts @@ -30,5 +30,5 @@ * GitHub history for details. */ -export * from './color_maps'; +export * from './color-maps'; export * from './components'; diff --git a/src/plugins/console/public/application/components/editor_example.tsx b/src/plugins/console/public/application/components/editor_example.tsx index b287c5326812..1f4e3f2b3175 100644 --- a/src/plugins/console/public/application/components/editor_example.tsx +++ b/src/plugins/console/public/application/components/editor_example.tsx @@ -32,7 +32,7 @@ import { EuiScreenReaderOnly } from '@elastic/eui'; import { i18n } from '@osd/i18n'; import React, { useEffect } from 'react'; -import { createReadOnlyAceEditor } from '../models/legacy_core_editor'; +import { createReadOnlyAceEditor } from '../models/legacy-core-editor'; interface EditorExampleProps { panel: string; diff --git a/src/plugins/console/public/application/components/index.ts b/src/plugins/console/public/application/components/index.ts index 6a549772c810..f0a339ce2352 100644 --- a/src/plugins/console/public/application/components/index.ts +++ b/src/plugins/console/public/application/components/index.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ -export { NetworkRequestStatusBar } from './network_request_status_bar'; +export { NetworkRequestStatusBar } from './network-request-status-bar'; export { SomethingWentWrongCallout } from './something_went_wrong_callout'; export { TopNavMenuItem, TopNavMenu } from './top_nav_menu'; export { ConsoleMenu } from './console_menu'; diff --git a/src/plugins/console/public/application/components/network_request_status_bar/index.ts b/src/plugins/console/public/application/components/network-request-status-bar/index.ts similarity index 100% rename from src/plugins/console/public/application/components/network_request_status_bar/index.ts rename to src/plugins/console/public/application/components/network-request-status-bar/index.ts diff --git a/src/plugins/console/public/application/components/network_request_status_bar/network_request_status_bar.tsx b/src/plugins/console/public/application/components/network-request-status-bar/network_request_status_bar.tsx similarity index 100% rename from src/plugins/console/public/application/components/network_request_status_bar/network_request_status_bar.tsx rename to src/plugins/console/public/application/components/network-request-status-bar/network_request_status_bar.tsx diff --git a/src/plugins/console/public/application/containers/console_history/console_history.tsx b/src/plugins/console/public/application/containers/console-history/console_history.tsx similarity index 99% rename from src/plugins/console/public/application/containers/console_history/console_history.tsx rename to src/plugins/console/public/application/containers/console-history/console_history.tsx index fcde580439fd..e9dcb1efb531 100644 --- a/src/plugins/console/public/application/containers/console_history/console_history.tsx +++ b/src/plugins/console/public/application/containers/console-history/console_history.tsx @@ -47,7 +47,7 @@ import { import { useServicesContext } from '../../contexts'; import { HistoryViewer } from './history_viewer'; -import { useEditorReadContext } from '../../contexts/editor_context'; +import { useEditorReadContext } from '../../contexts/editor-context'; import { useRestoreRequestFromHistory } from '../../hooks'; interface Props { diff --git a/src/plugins/console/public/application/containers/console_history/history_viewer.tsx b/src/plugins/console/public/application/containers/console-history/history_viewer.tsx similarity index 93% rename from src/plugins/console/public/application/containers/console_history/history_viewer.tsx rename to src/plugins/console/public/application/containers/console-history/history_viewer.tsx index b36e046beb4b..74a51f67789d 100644 --- a/src/plugins/console/public/application/containers/console_history/history_viewer.tsx +++ b/src/plugins/console/public/application/containers/console-history/history_viewer.tsx @@ -37,10 +37,10 @@ import { DevToolsSettings } from '../../../services'; import { subscribeResizeChecker } from '../editor/legacy/subscribe_console_resize_checker'; // @ts-ignore -import * as InputMode from '../../models/legacy_core_editor/mode/input'; +import * as InputMode from '../../models/legacy-core-editor/mode/input'; const inputMode = new InputMode.Mode(); -import * as editor from '../../models/legacy_core_editor'; -import { applyCurrentSettings } from '../editor/legacy/console_editor/apply_editor_settings'; +import * as editor from '../../models/legacy-core-editor'; +import { applyCurrentSettings } from '../editor/legacy/console-editor/apply_editor_settings'; interface Props { settings: DevToolsSettings; diff --git a/src/plugins/console/public/application/containers/console_history/index.ts b/src/plugins/console/public/application/containers/console-history/index.ts similarity index 100% rename from src/plugins/console/public/application/containers/console_history/index.ts rename to src/plugins/console/public/application/containers/console-history/index.ts diff --git a/src/plugins/console/public/application/containers/editor/editor.tsx b/src/plugins/console/public/application/containers/editor/editor.tsx index 83919637c228..221bb889fcbf 100644 --- a/src/plugins/console/public/application/containers/editor/editor.tsx +++ b/src/plugins/console/public/application/containers/editor/editor.tsx @@ -36,7 +36,7 @@ import { EuiProgress } from '@elastic/eui'; import { EditorContentSpinner } from '../../components'; import { Panel, PanelsContainer } from '../../../../../opensearch_dashboards_react/public'; -import { Editor as EditorUI, EditorOutput } from './legacy/console_editor'; +import { Editor as EditorUI, EditorOutput } from './legacy/console-editor'; import { StorageKeys } from '../../../services'; import { useEditorReadContext, useServicesContext, useRequestReadContext } from '../../contexts'; diff --git a/src/plugins/console/public/application/containers/editor/legacy/console_editor/apply_editor_settings.ts b/src/plugins/console/public/application/containers/editor/legacy/console-editor/apply_editor_settings.ts similarity index 96% rename from src/plugins/console/public/application/containers/editor/legacy/console_editor/apply_editor_settings.ts rename to src/plugins/console/public/application/containers/editor/legacy/console-editor/apply_editor_settings.ts index 9860f248410e..2d360a3922cb 100644 --- a/src/plugins/console/public/application/containers/editor/legacy/console_editor/apply_editor_settings.ts +++ b/src/plugins/console/public/application/containers/editor/legacy/console-editor/apply_editor_settings.ts @@ -32,7 +32,7 @@ import { DevToolsSettings } from '../../../../../services'; import { CoreEditor } from '../../../../../types'; -import { CustomAceEditor } from '../../../../models/legacy_core_editor'; +import { CustomAceEditor } from '../../../../models/legacy-core-editor'; export function applyCurrentSettings( editor: CoreEditor | CustomAceEditor, diff --git a/src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.test.mock.tsx b/src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.test.mock.tsx similarity index 92% rename from src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.test.mock.tsx rename to src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.test.mock.tsx index 559e2c706a1c..c5983be724e1 100644 --- a/src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.test.mock.tsx +++ b/src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.test.mock.tsx @@ -30,7 +30,7 @@ * GitHub history for details. */ -jest.mock('../../../../contexts/editor_context/editor_registry.ts', () => ({ +jest.mock('../../../../contexts/editor-context/editor_registry.ts', () => ({ instance: { setInputEditor: () => {}, getInputEditor: () => ({ @@ -44,7 +44,7 @@ jest.mock('../../../../../lib/mappings/mappings', () => ({ retrieveAutoCompleteInfo: () => {}, clearSubscriptions: () => {}, })); -jest.mock('../../../../models/sense_editor', () => { +jest.mock('../../../../models/sense-editor', () => { return { create: () => ({ getCoreEditor: () => ({ @@ -64,7 +64,7 @@ jest.mock('../../../../models/sense_editor', () => { }); jest.mock( - '../../../../hooks/use_send_current_request_to_opensearch/send_request_to_opensearch', + '../../../../hooks/use-send-current-request-to-opensearch/send_request_to_opensearch', () => ({ sendRequestToOpenSearch: jest.fn(), }) diff --git a/src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.test.tsx b/src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.test.tsx similarity index 96% rename from src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.test.tsx rename to src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.test.tsx index 4562eef33b95..07e59a27fc6c 100644 --- a/src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.test.tsx +++ b/src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.test.tsx @@ -49,7 +49,7 @@ import { } from '../../../../contexts'; // Mocked functions -import { sendRequestToOpenSearch } from '../../../../hooks/use_send_current_request_to_opensearch/send_request_to_opensearch'; +import { sendRequestToOpenSearch } from '../../../../hooks/use-send-current-request-to-opensearch/send_request_to_opensearch'; import { getEndpointFromPosition } from '../../../../../lib/autocomplete/get_endpoint_from_position'; import * as consoleMenuActions from '../console_menu_actions'; diff --git a/src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.tsx b/src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.tsx similarity index 99% rename from src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.tsx rename to src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.tsx index 8bc85ce0c81d..71d9043a1182 100644 --- a/src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.tsx +++ b/src/plugins/console/public/application/containers/editor/legacy/console-editor/editor.tsx @@ -45,7 +45,7 @@ import { useSendCurrentRequestToOpenSearch, useSetInputEditor, } from '../../../../hooks'; -import * as senseEditor from '../../../../models/sense_editor'; +import * as senseEditor from '../../../../models/sense-editor'; import { autoIndent, getDocumentation } from '../console_menu_actions'; import { subscribeResizeChecker } from '../subscribe_console_resize_checker'; import { applyCurrentSettings } from './apply_editor_settings'; diff --git a/src/plugins/console/public/application/containers/editor/legacy/console_editor/editor_output.tsx b/src/plugins/console/public/application/containers/editor/legacy/console-editor/editor_output.tsx similarity index 99% rename from src/plugins/console/public/application/containers/editor/legacy/console_editor/editor_output.tsx rename to src/plugins/console/public/application/containers/editor/legacy/console-editor/editor_output.tsx index e2fb5c48a486..ddcc2a381710 100644 --- a/src/plugins/console/public/application/containers/editor/legacy/console_editor/editor_output.tsx +++ b/src/plugins/console/public/application/containers/editor/legacy/console-editor/editor_output.tsx @@ -39,7 +39,7 @@ import { useRequestReadContext, useServicesContext, } from '../../../../contexts'; -import { createReadOnlyAceEditor, CustomAceEditor } from '../../../../models/legacy_core_editor'; +import { createReadOnlyAceEditor, CustomAceEditor } from '../../../../models/legacy-core-editor'; import { subscribeResizeChecker } from '../subscribe_console_resize_checker'; import { applyCurrentSettings } from './apply_editor_settings'; diff --git a/src/plugins/console/public/application/containers/editor/legacy/console_editor/index.ts b/src/plugins/console/public/application/containers/editor/legacy/console-editor/index.ts similarity index 100% rename from src/plugins/console/public/application/containers/editor/legacy/console_editor/index.ts rename to src/plugins/console/public/application/containers/editor/legacy/console-editor/index.ts diff --git a/src/plugins/console/public/application/containers/editor/legacy/console_editor/keyboard_shortcuts.ts b/src/plugins/console/public/application/containers/editor/legacy/console-editor/keyboard_shortcuts.ts similarity index 97% rename from src/plugins/console/public/application/containers/editor/legacy/console_editor/keyboard_shortcuts.ts rename to src/plugins/console/public/application/containers/editor/legacy/console-editor/keyboard_shortcuts.ts index ab75707b619a..4585dbf430ec 100644 --- a/src/plugins/console/public/application/containers/editor/legacy/console_editor/keyboard_shortcuts.ts +++ b/src/plugins/console/public/application/containers/editor/legacy/console-editor/keyboard_shortcuts.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ import { throttle } from 'lodash'; -import { SenseEditor } from '../../../../models/sense_editor'; +import { SenseEditor } from '../../../../models/sense-editor'; interface Actions { senseEditor: SenseEditor; diff --git a/src/plugins/console/public/application/containers/editor/legacy/console_menu_actions.ts b/src/plugins/console/public/application/containers/editor/legacy/console_menu_actions.ts index aaab82ca1483..dd74f08d3fd0 100644 --- a/src/plugins/console/public/application/containers/editor/legacy/console_menu_actions.ts +++ b/src/plugins/console/public/application/containers/editor/legacy/console_menu_actions.ts @@ -31,7 +31,7 @@ */ import { getEndpointFromPosition } from '../../../../lib/autocomplete/get_endpoint_from_position'; -import { SenseEditor } from '../../../models/sense_editor'; +import { SenseEditor } from '../../../models/sense-editor'; export async function autoIndent(editor: SenseEditor, event: Event) { event.preventDefault(); diff --git a/src/plugins/console/public/application/containers/editor/legacy/index.ts b/src/plugins/console/public/application/containers/editor/legacy/index.ts index 2ce1990a01a2..58b40a178d3f 100644 --- a/src/plugins/console/public/application/containers/editor/legacy/index.ts +++ b/src/plugins/console/public/application/containers/editor/legacy/index.ts @@ -30,5 +30,5 @@ * GitHub history for details. */ -export { EditorOutput, Editor } from './console_editor'; +export { EditorOutput, Editor } from './console-editor'; export { getDocumentation, autoIndent } from './console_menu_actions'; diff --git a/src/plugins/console/public/application/containers/main/main.tsx b/src/plugins/console/public/application/containers/main/main.tsx index 1211c0e03f3c..4e695973a8e4 100644 --- a/src/plugins/console/public/application/containers/main/main.tsx +++ b/src/plugins/console/public/application/containers/main/main.tsx @@ -33,7 +33,7 @@ import React, { useState } from 'react'; import { i18n } from '@osd/i18n'; import { EuiFlexGroup, EuiFlexItem, EuiTitle, EuiPageContent } from '@elastic/eui'; -import { ConsoleHistory } from '../console_history'; +import { ConsoleHistory } from '../console-history'; import { Editor } from '../editor'; import { Settings } from '../settings'; diff --git a/src/plugins/console/public/application/contexts/editor_context/editor_context.tsx b/src/plugins/console/public/application/contexts/editor-context/editor_context.tsx similarity index 100% rename from src/plugins/console/public/application/contexts/editor_context/editor_context.tsx rename to src/plugins/console/public/application/contexts/editor-context/editor_context.tsx diff --git a/src/plugins/console/public/application/contexts/editor_context/editor_registry.ts b/src/plugins/console/public/application/contexts/editor-context/editor_registry.ts similarity index 96% rename from src/plugins/console/public/application/contexts/editor_context/editor_registry.ts rename to src/plugins/console/public/application/contexts/editor-context/editor_registry.ts index 6e2820dea014..9cecda29dd35 100644 --- a/src/plugins/console/public/application/contexts/editor_context/editor_registry.ts +++ b/src/plugins/console/public/application/contexts/editor-context/editor_registry.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ -import { SenseEditor } from '../../models/sense_editor'; +import { SenseEditor } from '../../models/sense-editor'; export class EditorRegistry { private inputEditor: SenseEditor | undefined; diff --git a/src/plugins/console/public/application/contexts/editor_context/index.ts b/src/plugins/console/public/application/contexts/editor-context/index.ts similarity index 100% rename from src/plugins/console/public/application/contexts/editor_context/index.ts rename to src/plugins/console/public/application/contexts/editor-context/index.ts diff --git a/src/plugins/console/public/application/contexts/index.ts b/src/plugins/console/public/application/contexts/index.ts index 0ee99a36760c..eaa1fe106e3d 100644 --- a/src/plugins/console/public/application/contexts/index.ts +++ b/src/plugins/console/public/application/contexts/index.ts @@ -42,4 +42,4 @@ export { useEditorActionContext, useEditorReadContext, EditorContextProvider, -} from './editor_context'; +} from './editor-context'; diff --git a/src/plugins/console/public/application/factories/token_iterator.ts b/src/plugins/console/public/application/factories/token_iterator.ts index b3df436cf3c6..7c0374b32355 100644 --- a/src/plugins/console/public/application/factories/token_iterator.ts +++ b/src/plugins/console/public/application/factories/token_iterator.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ import { CoreEditor, Position } from '../../types'; -import { TokenIterator } from '../../lib/token_iterator'; +import { TokenIterator } from '../../lib/token-iterator'; interface Dependencies { position: Position; diff --git a/src/plugins/console/public/application/hooks/index.ts b/src/plugins/console/public/application/hooks/index.ts index 631324fb8b5a..aaf76be42d7a 100644 --- a/src/plugins/console/public/application/hooks/index.ts +++ b/src/plugins/console/public/application/hooks/index.ts @@ -31,7 +31,7 @@ */ export { useSetInputEditor } from './use_set_input_editor'; -export { useRestoreRequestFromHistory } from './use_restore_request_from_history'; -export { useSendCurrentRequestToOpenSearch } from './use_send_current_request_to_opensearch'; +export { useRestoreRequestFromHistory } from './use-restore-request-from-history'; +export { useSendCurrentRequestToOpenSearch } from './use-send-current-request-to-opensearch'; export { useSaveCurrentTextObject } from './use_save_current_text_object'; -export { useDataInit } from './use_data_init'; +export { useDataInit } from './use-data-init'; diff --git a/src/plugins/console/public/application/hooks/use_data_init/data_migration.ts b/src/plugins/console/public/application/hooks/use-data-init/data_migration.ts similarity index 100% rename from src/plugins/console/public/application/hooks/use_data_init/data_migration.ts rename to src/plugins/console/public/application/hooks/use-data-init/data_migration.ts diff --git a/src/plugins/console/public/application/hooks/use_data_init/index.ts b/src/plugins/console/public/application/hooks/use-data-init/index.ts similarity index 100% rename from src/plugins/console/public/application/hooks/use_data_init/index.ts rename to src/plugins/console/public/application/hooks/use-data-init/index.ts diff --git a/src/plugins/console/public/application/hooks/use_data_init/use_data_init.ts b/src/plugins/console/public/application/hooks/use-data-init/use_data_init.ts similarity index 100% rename from src/plugins/console/public/application/hooks/use_data_init/use_data_init.ts rename to src/plugins/console/public/application/hooks/use-data-init/use_data_init.ts diff --git a/src/plugins/console/public/application/hooks/use_restore_request_from_history/index.ts b/src/plugins/console/public/application/hooks/use-restore-request-from-history/index.ts similarity index 100% rename from src/plugins/console/public/application/hooks/use_restore_request_from_history/index.ts rename to src/plugins/console/public/application/hooks/use-restore-request-from-history/index.ts diff --git a/src/plugins/console/public/application/hooks/use_restore_request_from_history/restore_request_from_history.ts b/src/plugins/console/public/application/hooks/use-restore-request-from-history/restore_request_from_history.ts similarity index 97% rename from src/plugins/console/public/application/hooks/use_restore_request_from_history/restore_request_from_history.ts rename to src/plugins/console/public/application/hooks/use-restore-request-from-history/restore_request_from_history.ts index 473f381d1635..d0a2301a6a4e 100644 --- a/src/plugins/console/public/application/hooks/use_restore_request_from_history/restore_request_from_history.ts +++ b/src/plugins/console/public/application/hooks/use-restore-request-from-history/restore_request_from_history.ts @@ -31,7 +31,7 @@ */ import RowParser from '../../../lib/row_parser'; -import { SenseEditor } from '../../models/sense_editor'; +import { SenseEditor } from '../../models/sense-editor'; /** * This function is considered legacy and should not be changed or updated before we have editor * interfaces in place (it's using a customized version of Ace directly). diff --git a/src/plugins/console/public/application/hooks/use_restore_request_from_history/use_restore_request_from_history.ts b/src/plugins/console/public/application/hooks/use-restore-request-from-history/use_restore_request_from_history.ts similarity index 95% rename from src/plugins/console/public/application/hooks/use_restore_request_from_history/use_restore_request_from_history.ts rename to src/plugins/console/public/application/hooks/use-restore-request-from-history/use_restore_request_from_history.ts index 44927fd724be..35d78df87dfc 100644 --- a/src/plugins/console/public/application/hooks/use_restore_request_from_history/use_restore_request_from_history.ts +++ b/src/plugins/console/public/application/hooks/use-restore-request-from-history/use_restore_request_from_history.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ import { useCallback } from 'react'; -import { instance as registry } from '../../contexts/editor_context/editor_registry'; +import { instance as registry } from '../../contexts/editor-context/editor_registry'; import { restoreRequestFromHistory } from './restore_request_from_history'; export const useRestoreRequestFromHistory = () => { diff --git a/src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/index.ts b/src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/index.ts similarity index 100% rename from src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/index.ts rename to src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/index.ts diff --git a/src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/send_request_to_opensearch.ts b/src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/send_request_to_opensearch.ts similarity index 100% rename from src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/send_request_to_opensearch.ts rename to src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/send_request_to_opensearch.ts diff --git a/src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/track.ts b/src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/track.ts similarity index 97% rename from src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/track.ts rename to src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/track.ts index aaceb2626636..5cbe23f128c8 100644 --- a/src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/track.ts +++ b/src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/track.ts @@ -30,7 +30,7 @@ * GitHub history for details. */ -import { SenseEditor } from '../../models/sense_editor'; +import { SenseEditor } from '../../models/sense-editor'; import { getEndpointFromPosition } from '../../../lib/autocomplete/get_endpoint_from_position'; import { MetricsTracker } from '../../../types'; diff --git a/src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/use_send_current_request_to_opensearch.test.tsx b/src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/use_send_current_request_to_opensearch.test.tsx similarity index 98% rename from src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/use_send_current_request_to_opensearch.test.tsx rename to src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/use_send_current_request_to_opensearch.test.tsx index 2a47ea0a17b7..21e9a904fe3b 100644 --- a/src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/use_send_current_request_to_opensearch.test.tsx +++ b/src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/use_send_current_request_to_opensearch.test.tsx @@ -31,7 +31,7 @@ */ jest.mock('./send_request_to_opensearch', () => ({ sendRequestToOpenSearch: jest.fn() })); -jest.mock('../../contexts/editor_context/editor_registry', () => ({ +jest.mock('../../contexts/editor-context/editor_registry', () => ({ instance: { getInputEditor: jest.fn() }, })); jest.mock('./track', () => ({ track: jest.fn() })); @@ -43,7 +43,7 @@ import { renderHook, act } from '@testing-library/react-hooks'; import { ContextValue, ServicesContextProvider } from '../../contexts'; import { serviceContextMock } from '../../contexts/services_context.mock'; import { useRequestActionContext } from '../../contexts/request_context'; -import { instance as editorRegistry } from '../../contexts/editor_context/editor_registry'; +import { instance as editorRegistry } from '../../contexts/editor-context/editor_registry'; import { sendRequestToOpenSearch } from './send_request_to_opensearch'; import { useSendCurrentRequestToOpenSearch } from './use_send_current_request_to_opensearch'; diff --git a/src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/use_send_current_request_to_opensearch.ts b/src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/use_send_current_request_to_opensearch.ts similarity index 98% rename from src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/use_send_current_request_to_opensearch.ts rename to src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/use_send_current_request_to_opensearch.ts index bd57095e08f9..3b5a106584a9 100644 --- a/src/plugins/console/public/application/hooks/use_send_current_request_to_opensearch/use_send_current_request_to_opensearch.ts +++ b/src/plugins/console/public/application/hooks/use-send-current-request-to-opensearch/use_send_current_request_to_opensearch.ts @@ -31,7 +31,7 @@ */ import { i18n } from '@osd/i18n'; import { useCallback } from 'react'; -import { instance as registry } from '../../contexts/editor_context/editor_registry'; +import { instance as registry } from '../../contexts/editor-context/editor_registry'; import { useRequestActionContext, useServicesContext } from '../../contexts'; import { sendRequestToOpenSearch } from './send_request_to_opensearch'; import { track } from './track'; diff --git a/src/plugins/console/public/application/hooks/use_set_input_editor.ts b/src/plugins/console/public/application/hooks/use_set_input_editor.ts index 9f2f889507cb..3d80b81e07b4 100644 --- a/src/plugins/console/public/application/hooks/use_set_input_editor.ts +++ b/src/plugins/console/public/application/hooks/use_set_input_editor.ts @@ -30,8 +30,8 @@ * GitHub history for details. */ import { useCallback } from 'react'; -import { useEditorActionContext } from '../contexts/editor_context'; -import { instance as registry } from '../contexts/editor_context/editor_registry'; +import { useEditorActionContext } from '../contexts/editor-context'; +import { instance as registry } from '../contexts/editor-context/editor_registry'; export const useSetInputEditor = () => { const dispatch = useEditorActionContext(); diff --git a/src/plugins/console/public/application/index.tsx b/src/plugins/console/public/application/index.tsx index 1b86c950e248..e6f937789490 100644 --- a/src/plugins/console/public/application/index.tsx +++ b/src/plugins/console/public/application/index.tsx @@ -36,7 +36,7 @@ import { HttpSetup, NotificationsSetup } from 'src/core/public'; import { ServicesContextProvider, EditorContextProvider, RequestContextProvider } from './contexts'; import { Main } from './containers'; import { createStorage, createHistory, createSettings } from '../services'; -import * as localStorageObjectClient from '../lib/local_storage_object_client'; +import * as localStorageObjectClient from '../lib/local-storage-object-client'; import { createUsageTracker } from '../services/tracker'; import { UsageCollectionSetup } from '../../../usage_collection/public'; import { createApi, createOpenSearchHostService } from './lib'; diff --git a/src/plugins/console/public/application/models/index.ts b/src/plugins/console/public/application/models/index.ts index fb30ae052721..c75e8bb77c7f 100644 --- a/src/plugins/console/public/application/models/index.ts +++ b/src/plugins/console/public/application/models/index.ts @@ -30,5 +30,5 @@ * GitHub history for details. */ -export * from './legacy_core_editor/legacy_core_editor'; -export * from './sense_editor'; +export * from './legacy-core-editor/legacy_core_editor'; +export * from './sense-editor'; diff --git a/src/plugins/console/public/application/models/legacy_core_editor/__tests__/input.test.js b/src/plugins/console/public/application/models/legacy-core-editor/__tests__/input.test.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/__tests__/input.test.js rename to src/plugins/console/public/application/models/legacy-core-editor/__tests__/input.test.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/__tests__/output_tokenization.test.js b/src/plugins/console/public/application/models/legacy-core-editor/__tests__/output_tokenization.test.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/__tests__/output_tokenization.test.js rename to src/plugins/console/public/application/models/legacy-core-editor/__tests__/output_tokenization.test.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/create.ts b/src/plugins/console/public/application/models/legacy-core-editor/create.ts similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/create.ts rename to src/plugins/console/public/application/models/legacy-core-editor/create.ts diff --git a/src/plugins/console/public/application/models/legacy_core_editor/create_readonly.ts b/src/plugins/console/public/application/models/legacy-core-editor/create_readonly.ts similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/create_readonly.ts rename to src/plugins/console/public/application/models/legacy-core-editor/create_readonly.ts diff --git a/src/plugins/console/public/application/models/legacy_core_editor/index.ts b/src/plugins/console/public/application/models/legacy-core-editor/index.ts similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/index.ts rename to src/plugins/console/public/application/models/legacy-core-editor/index.ts diff --git a/src/plugins/console/public/application/models/legacy_core_editor/legacy_core_editor.test.mocks.ts b/src/plugins/console/public/application/models/legacy-core-editor/legacy_core_editor.test.mocks.ts similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/legacy_core_editor.test.mocks.ts rename to src/plugins/console/public/application/models/legacy-core-editor/legacy_core_editor.test.mocks.ts diff --git a/src/plugins/console/public/application/models/legacy_core_editor/legacy_core_editor.ts b/src/plugins/console/public/application/models/legacy-core-editor/legacy_core_editor.ts similarity index 99% rename from src/plugins/console/public/application/models/legacy_core_editor/legacy_core_editor.ts rename to src/plugins/console/public/application/models/legacy-core-editor/legacy_core_editor.ts index 5b0b6ef7bb24..2e21d66f75b8 100644 --- a/src/plugins/console/public/application/models/legacy_core_editor/legacy_core_editor.ts +++ b/src/plugins/console/public/application/models/legacy-core-editor/legacy_core_editor.ts @@ -42,8 +42,8 @@ import { EditorEvent, AutoCompleterFunction, } from '../../../types'; -import { AceTokensProvider } from '../../../lib/ace_token_provider'; -import * as curl from '../sense_editor/curl'; +import { AceTokensProvider } from '../../../lib/ace-token-provider'; +import * as curl from '../sense-editor/curl'; import smartResize from './smart_resize'; // @ts-ignore diff --git a/src/plugins/console/public/application/models/legacy_core_editor/mode/input.js b/src/plugins/console/public/application/models/legacy-core-editor/mode/input.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/mode/input.js rename to src/plugins/console/public/application/models/legacy-core-editor/mode/input.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/mode/input_highlight_rules.js b/src/plugins/console/public/application/models/legacy-core-editor/mode/input_highlight_rules.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/mode/input_highlight_rules.js rename to src/plugins/console/public/application/models/legacy-core-editor/mode/input_highlight_rules.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/mode/output.js b/src/plugins/console/public/application/models/legacy-core-editor/mode/output.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/mode/output.js rename to src/plugins/console/public/application/models/legacy-core-editor/mode/output.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/mode/output_highlight_rules.js b/src/plugins/console/public/application/models/legacy-core-editor/mode/output_highlight_rules.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/mode/output_highlight_rules.js rename to src/plugins/console/public/application/models/legacy-core-editor/mode/output_highlight_rules.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/mode/script.js b/src/plugins/console/public/application/models/legacy-core-editor/mode/script.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/mode/script.js rename to src/plugins/console/public/application/models/legacy-core-editor/mode/script.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/mode/worker/index.d.ts b/src/plugins/console/public/application/models/legacy-core-editor/mode/worker/index.d.ts similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/mode/worker/index.d.ts rename to src/plugins/console/public/application/models/legacy-core-editor/mode/worker/index.d.ts diff --git a/src/plugins/console/public/application/models/legacy_core_editor/mode/worker/index.js b/src/plugins/console/public/application/models/legacy-core-editor/mode/worker/index.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/mode/worker/index.js rename to src/plugins/console/public/application/models/legacy-core-editor/mode/worker/index.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/mode/worker/worker.js b/src/plugins/console/public/application/models/legacy-core-editor/mode/worker/worker.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/mode/worker/worker.js rename to src/plugins/console/public/application/models/legacy-core-editor/mode/worker/worker.js diff --git a/src/plugins/console/public/application/models/legacy_core_editor/smart_resize.ts b/src/plugins/console/public/application/models/legacy-core-editor/smart_resize.ts similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/smart_resize.ts rename to src/plugins/console/public/application/models/legacy-core-editor/smart_resize.ts diff --git a/src/plugins/console/public/application/models/legacy_core_editor/theme_sense_dark.js b/src/plugins/console/public/application/models/legacy-core-editor/theme_sense_dark.js similarity index 100% rename from src/plugins/console/public/application/models/legacy_core_editor/theme_sense_dark.js rename to src/plugins/console/public/application/models/legacy-core-editor/theme_sense_dark.js diff --git a/src/plugins/console/public/application/models/sense_editor/__tests__/editor_input1.txt b/src/plugins/console/public/application/models/sense-editor/__tests__/editor_input1.txt similarity index 100% rename from src/plugins/console/public/application/models/sense_editor/__tests__/editor_input1.txt rename to src/plugins/console/public/application/models/sense-editor/__tests__/editor_input1.txt diff --git a/src/plugins/console/public/application/models/sense_editor/__tests__/integration.test.js b/src/plugins/console/public/application/models/sense-editor/__tests__/integration.test.js similarity index 100% rename from src/plugins/console/public/application/models/sense_editor/__tests__/integration.test.js rename to src/plugins/console/public/application/models/sense-editor/__tests__/integration.test.js diff --git a/src/plugins/console/public/application/models/sense_editor/__tests__/sense_editor.test.js b/src/plugins/console/public/application/models/sense-editor/__tests__/sense_editor.test.js similarity index 100% rename from src/plugins/console/public/application/models/sense_editor/__tests__/sense_editor.test.js rename to src/plugins/console/public/application/models/sense-editor/__tests__/sense_editor.test.js diff --git a/src/plugins/console/public/application/models/sense_editor/create.ts b/src/plugins/console/public/application/models/sense-editor/create.ts similarity index 96% rename from src/plugins/console/public/application/models/sense_editor/create.ts rename to src/plugins/console/public/application/models/sense-editor/create.ts index 56de4fcc8425..980d56431a38 100644 --- a/src/plugins/console/public/application/models/sense_editor/create.ts +++ b/src/plugins/console/public/application/models/sense-editor/create.ts @@ -31,7 +31,7 @@ */ import { SenseEditor } from './sense_editor'; -import * as core from '../legacy_core_editor'; +import * as core from '../legacy-core-editor'; export function create(element: HTMLElement) { const coreEditor = core.create(element); diff --git a/src/plugins/console/public/application/models/sense_editor/curl.ts b/src/plugins/console/public/application/models/sense-editor/curl.ts similarity index 100% rename from src/plugins/console/public/application/models/sense_editor/curl.ts rename to src/plugins/console/public/application/models/sense-editor/curl.ts diff --git a/src/plugins/console/public/application/models/sense_editor/index.ts b/src/plugins/console/public/application/models/sense-editor/index.ts similarity index 95% rename from src/plugins/console/public/application/models/sense_editor/index.ts rename to src/plugins/console/public/application/models/sense-editor/index.ts index 40c2a30674f7..fa70de3407dd 100644 --- a/src/plugins/console/public/application/models/sense_editor/index.ts +++ b/src/plugins/console/public/application/models/sense-editor/index.ts @@ -31,7 +31,7 @@ */ export * from './create'; -export * from '../legacy_core_editor/create_readonly'; +export * from '../legacy-core-editor/create_readonly'; export { MODE } from '../../../lib/row_parser'; export { SenseEditor } from './sense_editor'; export { getEndpointFromPosition } from '../../../lib/autocomplete/get_endpoint_from_position'; diff --git a/src/plugins/console/public/application/models/sense_editor/sense_editor.test.mocks.ts b/src/plugins/console/public/application/models/sense-editor/sense_editor.test.mocks.ts similarity index 95% rename from src/plugins/console/public/application/models/sense_editor/sense_editor.test.mocks.ts rename to src/plugins/console/public/application/models/sense-editor/sense_editor.test.mocks.ts index bb7b3eec8949..94c96de6036d 100644 --- a/src/plugins/console/public/application/models/sense_editor/sense_editor.test.mocks.ts +++ b/src/plugins/console/public/application/models/sense-editor/sense_editor.test.mocks.ts @@ -31,7 +31,7 @@ */ /* eslint no-undef: 0 */ -import '../legacy_core_editor/legacy_core_editor.test.mocks'; +import '../legacy-core-editor/legacy_core_editor.test.mocks'; import jQuery from 'jquery'; jest.spyOn(jQuery, 'ajax').mockImplementation( diff --git a/src/plugins/console/public/application/models/sense_editor/sense_editor.ts b/src/plugins/console/public/application/models/sense-editor/sense_editor.ts similarity index 100% rename from src/plugins/console/public/application/models/sense_editor/sense_editor.ts rename to src/plugins/console/public/application/models/sense-editor/sense_editor.ts diff --git a/src/plugins/console/public/application/stores/request.ts b/src/plugins/console/public/application/stores/request.ts index 1bd34f4106fa..88d8a6ec002e 100644 --- a/src/plugins/console/public/application/stores/request.ts +++ b/src/plugins/console/public/application/stores/request.ts @@ -34,7 +34,7 @@ import { Reducer } from 'react'; import { produce } from 'immer'; import { identity } from 'fp-ts/lib/function'; import { BaseResponseType } from '../../types/common'; -import { OpenSearchRequestResult } from '../hooks/use_send_current_request_to_opensearch/send_request_to_opensearch'; +import { OpenSearchRequestResult } from '../hooks/use-send-current-request-to-opensearch/send_request_to_opensearch'; export type Actions = | { type: 'sendRequest'; payload: undefined } diff --git a/src/plugins/console/public/lib/ace_token_provider/index.ts b/src/plugins/console/public/lib/ace-token-provider/index.ts similarity index 100% rename from src/plugins/console/public/lib/ace_token_provider/index.ts rename to src/plugins/console/public/lib/ace-token-provider/index.ts diff --git a/src/plugins/console/public/lib/ace_token_provider/token_provider.test.ts b/src/plugins/console/public/lib/ace-token-provider/token_provider.test.ts similarity index 98% rename from src/plugins/console/public/lib/ace_token_provider/token_provider.test.ts rename to src/plugins/console/public/lib/ace-token-provider/token_provider.test.ts index f3204ee86fa0..904bf90d0da9 100644 --- a/src/plugins/console/public/lib/ace_token_provider/token_provider.test.ts +++ b/src/plugins/console/public/lib/ace-token-provider/token_provider.test.ts @@ -29,7 +29,7 @@ * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ -import '../../application/models/sense_editor/sense_editor.test.mocks'; +import '../../application/models/sense-editor/sense_editor.test.mocks'; import $ from 'jquery'; @@ -38,7 +38,7 @@ import $ from 'jquery'; // this lib. We also need to import application specific mocks which is not ideal. // In this situation, the token provider lib knows about app models in tests, which it really shouldn't. Should create // a better sandbox in future. -import { create, SenseEditor } from '../../application/models/sense_editor'; +import { create, SenseEditor } from '../../application/models/sense-editor'; import { Position, Token, TokensProvider } from '../../types'; diff --git a/src/plugins/console/public/lib/ace_token_provider/token_provider.ts b/src/plugins/console/public/lib/ace-token-provider/token_provider.ts similarity index 100% rename from src/plugins/console/public/lib/ace_token_provider/token_provider.ts rename to src/plugins/console/public/lib/ace-token-provider/token_provider.ts diff --git a/src/plugins/console/public/lib/curl_parsing/__tests__/curl_parsing.test.js b/src/plugins/console/public/lib/curl-parsing/__tests__/curl_parsing.test.js similarity index 100% rename from src/plugins/console/public/lib/curl_parsing/__tests__/curl_parsing.test.js rename to src/plugins/console/public/lib/curl-parsing/__tests__/curl_parsing.test.js diff --git a/src/plugins/console/public/lib/curl_parsing/__tests__/curl_parsing.txt b/src/plugins/console/public/lib/curl-parsing/__tests__/curl_parsing.txt similarity index 100% rename from src/plugins/console/public/lib/curl_parsing/__tests__/curl_parsing.txt rename to src/plugins/console/public/lib/curl-parsing/__tests__/curl_parsing.txt diff --git a/src/plugins/console/public/lib/curl_parsing/curl.js b/src/plugins/console/public/lib/curl-parsing/curl.js similarity index 100% rename from src/plugins/console/public/lib/curl_parsing/curl.js rename to src/plugins/console/public/lib/curl-parsing/curl.js diff --git a/src/plugins/console/public/lib/local_storage_object_client/create.ts b/src/plugins/console/public/lib/local-storage-object-client/create.ts similarity index 100% rename from src/plugins/console/public/lib/local_storage_object_client/create.ts rename to src/plugins/console/public/lib/local-storage-object-client/create.ts diff --git a/src/plugins/console/public/lib/local_storage_object_client/index.ts b/src/plugins/console/public/lib/local-storage-object-client/index.ts similarity index 100% rename from src/plugins/console/public/lib/local_storage_object_client/index.ts rename to src/plugins/console/public/lib/local-storage-object-client/index.ts diff --git a/src/plugins/console/public/lib/local_storage_object_client/local_storage_object_client.ts b/src/plugins/console/public/lib/local-storage-object-client/local_storage_object_client.ts similarity index 100% rename from src/plugins/console/public/lib/local_storage_object_client/local_storage_object_client.ts rename to src/plugins/console/public/lib/local-storage-object-client/local_storage_object_client.ts diff --git a/src/plugins/console/public/lib/mappings/__tests__/mapping.test.js b/src/plugins/console/public/lib/mappings/__tests__/mapping.test.js index 208bbdbf32af..9ee70c77304d 100644 --- a/src/plugins/console/public/lib/mappings/__tests__/mapping.test.js +++ b/src/plugins/console/public/lib/mappings/__tests__/mapping.test.js @@ -29,7 +29,7 @@ * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ -import '../../../application/models/sense_editor/sense_editor.test.mocks'; +import '../../../application/models/sense-editor/sense_editor.test.mocks'; import * as mappings from '../mappings'; describe('Mappings', () => { diff --git a/src/plugins/console/public/lib/osd/__tests__/kb.test.js b/src/plugins/console/public/lib/osd/__tests__/kb.test.js index 2a9a150601dd..517a3053712d 100644 --- a/src/plugins/console/public/lib/osd/__tests__/kb.test.js +++ b/src/plugins/console/public/lib/osd/__tests__/kb.test.js @@ -33,7 +33,7 @@ import _ from 'lodash'; import { populateContext } from '../../autocomplete/engine'; -import '../../../application/models/sense_editor/sense_editor.test.mocks'; +import '../../../application/models/sense-editor/sense_editor.test.mocks'; import * as osd from '../../osd'; import * as mappings from '../../mappings/mappings'; diff --git a/src/plugins/console/public/lib/row_parser.ts b/src/plugins/console/public/lib/row_parser.ts index eb0c6e4c0125..72e5b5f7eca4 100644 --- a/src/plugins/console/public/lib/row_parser.ts +++ b/src/plugins/console/public/lib/row_parser.ts @@ -31,7 +31,7 @@ */ import { CoreEditor, Token } from '../types'; -import { TokenIterator } from './token_iterator'; +import { TokenIterator } from './token-iterator'; export const MODE = { REQUEST_START: 2, diff --git a/src/plugins/console/public/lib/token_iterator/index.ts b/src/plugins/console/public/lib/token-iterator/index.ts similarity index 100% rename from src/plugins/console/public/lib/token_iterator/index.ts rename to src/plugins/console/public/lib/token-iterator/index.ts diff --git a/src/plugins/console/public/lib/token_iterator/token_iterator.test.ts b/src/plugins/console/public/lib/token-iterator/token_iterator.test.ts similarity index 100% rename from src/plugins/console/public/lib/token_iterator/token_iterator.test.ts rename to src/plugins/console/public/lib/token-iterator/token_iterator.test.ts diff --git a/src/plugins/console/public/lib/token_iterator/token_iterator.ts b/src/plugins/console/public/lib/token-iterator/token_iterator.ts similarity index 100% rename from src/plugins/console/public/lib/token_iterator/token_iterator.ts rename to src/plugins/console/public/lib/token-iterator/token_iterator.ts diff --git a/src/plugins/console/server/lib/index.ts b/src/plugins/console/server/lib/index.ts index 95099d2fabc7..c255a0733792 100644 --- a/src/plugins/console/server/lib/index.ts +++ b/src/plugins/console/server/lib/index.ts @@ -35,4 +35,4 @@ export { ProxyConfigCollection } from './proxy_config_collection'; export { proxyRequest } from './proxy_request'; export { getOpenSearchProxyConfig } from './opensearch_proxy_config'; export { setHeaders } from './set_headers'; -export { jsSpecLoaders } from './spec_definitions'; +export { jsSpecLoaders } from './spec-definitions'; diff --git a/src/plugins/console/server/lib/spec_definitions/index.ts b/src/plugins/console/server/lib/spec-definitions/index.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/index.ts rename to src/plugins/console/server/lib/spec-definitions/index.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/aggregations.ts b/src/plugins/console/server/lib/spec-definitions/js/aggregations.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/aggregations.ts rename to src/plugins/console/server/lib/spec-definitions/js/aggregations.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/aliases.ts b/src/plugins/console/server/lib/spec-definitions/js/aliases.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/aliases.ts rename to src/plugins/console/server/lib/spec-definitions/js/aliases.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/document.ts b/src/plugins/console/server/lib/spec-definitions/js/document.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/document.ts rename to src/plugins/console/server/lib/spec-definitions/js/document.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/filter.ts b/src/plugins/console/server/lib/spec-definitions/js/filter.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/filter.ts rename to src/plugins/console/server/lib/spec-definitions/js/filter.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/globals.ts b/src/plugins/console/server/lib/spec-definitions/js/globals.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/globals.ts rename to src/plugins/console/server/lib/spec-definitions/js/globals.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/index.ts b/src/plugins/console/server/lib/spec-definitions/js/index.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/index.ts rename to src/plugins/console/server/lib/spec-definitions/js/index.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/ingest.ts b/src/plugins/console/server/lib/spec-definitions/js/ingest.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/ingest.ts rename to src/plugins/console/server/lib/spec-definitions/js/ingest.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/mappings.ts b/src/plugins/console/server/lib/spec-definitions/js/mappings.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/mappings.ts rename to src/plugins/console/server/lib/spec-definitions/js/mappings.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/query/dsl.ts b/src/plugins/console/server/lib/spec-definitions/js/query/dsl.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/query/dsl.ts rename to src/plugins/console/server/lib/spec-definitions/js/query/dsl.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/query/index.ts b/src/plugins/console/server/lib/spec-definitions/js/query/index.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/query/index.ts rename to src/plugins/console/server/lib/spec-definitions/js/query/index.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/query/templates.ts b/src/plugins/console/server/lib/spec-definitions/js/query/templates.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/query/templates.ts rename to src/plugins/console/server/lib/spec-definitions/js/query/templates.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/reindex.ts b/src/plugins/console/server/lib/spec-definitions/js/reindex.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/reindex.ts rename to src/plugins/console/server/lib/spec-definitions/js/reindex.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/search.ts b/src/plugins/console/server/lib/spec-definitions/js/search.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/search.ts rename to src/plugins/console/server/lib/spec-definitions/js/search.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/settings.ts b/src/plugins/console/server/lib/spec-definitions/js/settings.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/settings.ts rename to src/plugins/console/server/lib/spec-definitions/js/settings.ts diff --git a/src/plugins/console/server/lib/spec_definitions/js/shared.ts b/src/plugins/console/server/lib/spec-definitions/js/shared.ts similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/js/shared.ts rename to src/plugins/console/server/lib/spec-definitions/js/shared.ts diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/_common.json b/src/plugins/console/server/lib/spec-definitions/json/generated/_common.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/_common.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/_common.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/bulk.json b/src/plugins/console/server/lib/spec-definitions/json/generated/bulk.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/bulk.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/bulk.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.aliases.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.aliases.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.aliases.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.aliases.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.allocation.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.allocation.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.allocation.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.allocation.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.count.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.count.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.count.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.count.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.fielddata.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.fielddata.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.fielddata.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.fielddata.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.health.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.health.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.health.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.health.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.help.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.help.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.help.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.help.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.indices.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.indices.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.indices.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.indices.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.master.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.master.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.master.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.master.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.nodeattrs.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.nodeattrs.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.nodeattrs.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.nodeattrs.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.nodes.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.nodes.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.nodes.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.nodes.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.pending_tasks.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.pending_tasks.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.pending_tasks.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.pending_tasks.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.plugins.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.plugins.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.plugins.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.plugins.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.recovery.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.recovery.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.recovery.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.recovery.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.repositories.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.repositories.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.repositories.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.repositories.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.segments.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.segments.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.segments.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.segments.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.shards.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.shards.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.shards.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.shards.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.snapshots.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.snapshots.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.snapshots.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.snapshots.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.tasks.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.tasks.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.tasks.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.tasks.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.templates.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.templates.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.templates.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.templates.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cat.thread_pool.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cat.thread_pool.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cat.thread_pool.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cat.thread_pool.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/clear_scroll.json b/src/plugins/console/server/lib/spec-definitions/json/generated/clear_scroll.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/clear_scroll.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/clear_scroll.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.allocation_explain.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.allocation_explain.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.allocation_explain.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.allocation_explain.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.delete_component_template.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.delete_component_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.delete_component_template.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.delete_component_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.get_settings.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.get_settings.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.get_settings.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.get_settings.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.health.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.health.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.health.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.health.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.pending_tasks.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.pending_tasks.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.pending_tasks.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.pending_tasks.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.put_settings.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.put_settings.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.put_settings.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.put_settings.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.remote_info.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.remote_info.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.remote_info.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.remote_info.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.reroute.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.reroute.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.reroute.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.reroute.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.state.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.state.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.state.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.state.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/cluster.stats.json b/src/plugins/console/server/lib/spec-definitions/json/generated/cluster.stats.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/cluster.stats.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/cluster.stats.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/count.json b/src/plugins/console/server/lib/spec-definitions/json/generated/count.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/count.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/count.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/create.json b/src/plugins/console/server/lib/spec-definitions/json/generated/create.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/create.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/create.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/delete.json b/src/plugins/console/server/lib/spec-definitions/json/generated/delete.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/delete.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/delete.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/delete_by_query.json b/src/plugins/console/server/lib/spec-definitions/json/generated/delete_by_query.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/delete_by_query.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/delete_by_query.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/delete_by_query_rethrottle.json b/src/plugins/console/server/lib/spec-definitions/json/generated/delete_by_query_rethrottle.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/delete_by_query_rethrottle.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/delete_by_query_rethrottle.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/delete_script.json b/src/plugins/console/server/lib/spec-definitions/json/generated/delete_script.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/delete_script.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/delete_script.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/exists.json b/src/plugins/console/server/lib/spec-definitions/json/generated/exists.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/exists.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/exists.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/exists_source.json b/src/plugins/console/server/lib/spec-definitions/json/generated/exists_source.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/exists_source.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/exists_source.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/explain.json b/src/plugins/console/server/lib/spec-definitions/json/generated/explain.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/explain.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/explain.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/field_caps.json b/src/plugins/console/server/lib/spec-definitions/json/generated/field_caps.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/field_caps.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/field_caps.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/get.json b/src/plugins/console/server/lib/spec-definitions/json/generated/get.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/get.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/get.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/get_script.json b/src/plugins/console/server/lib/spec-definitions/json/generated/get_script.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/get_script.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/get_script.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/get_script_context.json b/src/plugins/console/server/lib/spec-definitions/json/generated/get_script_context.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/get_script_context.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/get_script_context.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/get_script_languages.json b/src/plugins/console/server/lib/spec-definitions/json/generated/get_script_languages.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/get_script_languages.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/get_script_languages.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/get_source.json b/src/plugins/console/server/lib/spec-definitions/json/generated/get_source.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/get_source.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/get_source.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/index.json b/src/plugins/console/server/lib/spec-definitions/json/generated/index.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/index.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/index.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.analyze.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.analyze.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.analyze.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.analyze.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.clear_cache.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.clear_cache.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.clear_cache.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.clear_cache.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.clone.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.clone.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.clone.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.clone.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.close.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.close.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.close.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.close.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.create.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.create.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.create.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.create.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.delete.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.delete.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.delete.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.delete.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.delete_alias.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.delete_alias.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.delete_alias.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.delete_alias.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.delete_template.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.delete_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.delete_template.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.delete_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.exists.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.exists.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.exists.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.exists.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.exists_alias.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.exists_alias.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.exists_alias.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.exists_alias.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.exists_template.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.exists_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.exists_template.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.exists_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.exists_type.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.exists_type.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.exists_type.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.exists_type.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.flush.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.flush.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.flush.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.flush.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.flush_synced.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.flush_synced.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.flush_synced.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.flush_synced.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.forcemerge.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.forcemerge.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.forcemerge.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.forcemerge.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.get.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.get.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.get.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.get.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_alias.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_alias.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_alias.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_alias.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_field_mapping.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_field_mapping.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_field_mapping.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_field_mapping.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_mapping.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_mapping.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_mapping.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_mapping.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_settings.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_settings.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_settings.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_settings.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_template.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_template.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_upgrade.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_upgrade.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.get_upgrade.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.get_upgrade.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.open.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.open.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.open.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.open.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.put_alias.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.put_alias.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.put_alias.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.put_alias.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.put_mapping.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.put_mapping.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.put_mapping.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.put_mapping.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.put_settings.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.put_settings.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.put_settings.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.put_settings.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.put_template.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.put_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.put_template.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.put_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.recovery.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.recovery.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.recovery.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.recovery.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.refresh.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.refresh.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.refresh.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.refresh.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.rollover.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.rollover.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.rollover.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.rollover.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.segments.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.segments.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.segments.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.segments.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.shard_stores.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.shard_stores.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.shard_stores.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.shard_stores.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.shrink.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.shrink.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.shrink.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.shrink.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.split.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.split.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.split.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.split.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.stats.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.stats.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.stats.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.stats.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.update_aliases.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.update_aliases.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.update_aliases.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.update_aliases.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.upgrade.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.upgrade.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.upgrade.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.upgrade.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/indices.validate_query.json b/src/plugins/console/server/lib/spec-definitions/json/generated/indices.validate_query.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/indices.validate_query.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/indices.validate_query.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/info.json b/src/plugins/console/server/lib/spec-definitions/json/generated/info.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/info.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/info.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/ingest.delete_pipeline.json b/src/plugins/console/server/lib/spec-definitions/json/generated/ingest.delete_pipeline.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/ingest.delete_pipeline.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/ingest.delete_pipeline.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/ingest.get_pipeline.json b/src/plugins/console/server/lib/spec-definitions/json/generated/ingest.get_pipeline.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/ingest.get_pipeline.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/ingest.get_pipeline.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/ingest.processor_grok.json b/src/plugins/console/server/lib/spec-definitions/json/generated/ingest.processor_grok.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/ingest.processor_grok.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/ingest.processor_grok.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/ingest.put_pipeline.json b/src/plugins/console/server/lib/spec-definitions/json/generated/ingest.put_pipeline.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/ingest.put_pipeline.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/ingest.put_pipeline.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/ingest.simulate.json b/src/plugins/console/server/lib/spec-definitions/json/generated/ingest.simulate.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/ingest.simulate.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/ingest.simulate.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/mget.json b/src/plugins/console/server/lib/spec-definitions/json/generated/mget.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/mget.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/mget.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/msearch.json b/src/plugins/console/server/lib/spec-definitions/json/generated/msearch.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/msearch.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/msearch.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/msearch_template.json b/src/plugins/console/server/lib/spec-definitions/json/generated/msearch_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/msearch_template.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/msearch_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/mtermvectors.json b/src/plugins/console/server/lib/spec-definitions/json/generated/mtermvectors.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/mtermvectors.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/mtermvectors.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/nodes.hot_threads.json b/src/plugins/console/server/lib/spec-definitions/json/generated/nodes.hot_threads.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/nodes.hot_threads.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/nodes.hot_threads.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/nodes.info.json b/src/plugins/console/server/lib/spec-definitions/json/generated/nodes.info.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/nodes.info.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/nodes.info.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/nodes.reload_secure_settings.json b/src/plugins/console/server/lib/spec-definitions/json/generated/nodes.reload_secure_settings.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/nodes.reload_secure_settings.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/nodes.reload_secure_settings.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/nodes.stats.json b/src/plugins/console/server/lib/spec-definitions/json/generated/nodes.stats.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/nodes.stats.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/nodes.stats.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/nodes.usage.json b/src/plugins/console/server/lib/spec-definitions/json/generated/nodes.usage.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/nodes.usage.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/nodes.usage.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/ping.json b/src/plugins/console/server/lib/spec-definitions/json/generated/ping.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/ping.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/ping.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/put_script.json b/src/plugins/console/server/lib/spec-definitions/json/generated/put_script.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/put_script.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/put_script.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/rank_eval.json b/src/plugins/console/server/lib/spec-definitions/json/generated/rank_eval.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/rank_eval.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/rank_eval.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/reindex.json b/src/plugins/console/server/lib/spec-definitions/json/generated/reindex.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/reindex.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/reindex.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/reindex_rethrottle.json b/src/plugins/console/server/lib/spec-definitions/json/generated/reindex_rethrottle.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/reindex_rethrottle.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/reindex_rethrottle.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/render_search_template.json b/src/plugins/console/server/lib/spec-definitions/json/generated/render_search_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/render_search_template.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/render_search_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/scripts_painless_execute.json b/src/plugins/console/server/lib/spec-definitions/json/generated/scripts_painless_execute.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/scripts_painless_execute.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/scripts_painless_execute.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/scroll.json b/src/plugins/console/server/lib/spec-definitions/json/generated/scroll.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/scroll.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/scroll.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/search.json b/src/plugins/console/server/lib/spec-definitions/json/generated/search.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/search.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/search.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/search_shards.json b/src/plugins/console/server/lib/spec-definitions/json/generated/search_shards.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/search_shards.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/search_shards.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/search_template.json b/src/plugins/console/server/lib/spec-definitions/json/generated/search_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/search_template.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/search_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.cleanup_repository.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.cleanup_repository.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.cleanup_repository.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.cleanup_repository.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.create.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.create.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.create.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.create.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.create_repository.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.create_repository.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.create_repository.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.create_repository.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.delete.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.delete.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.delete.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.delete.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.delete_repository.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.delete_repository.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.delete_repository.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.delete_repository.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.get.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.get.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.get.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.get.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.get_repository.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.get_repository.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.get_repository.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.get_repository.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.restore.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.restore.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.restore.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.restore.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.status.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.status.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.status.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.status.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.verify_repository.json b/src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.verify_repository.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/snapshot.verify_repository.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/snapshot.verify_repository.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/tasks.cancel.json b/src/plugins/console/server/lib/spec-definitions/json/generated/tasks.cancel.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/tasks.cancel.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/tasks.cancel.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/tasks.get.json b/src/plugins/console/server/lib/spec-definitions/json/generated/tasks.get.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/tasks.get.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/tasks.get.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/tasks.list.json b/src/plugins/console/server/lib/spec-definitions/json/generated/tasks.list.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/tasks.list.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/tasks.list.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/termvectors.json b/src/plugins/console/server/lib/spec-definitions/json/generated/termvectors.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/termvectors.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/termvectors.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/update.json b/src/plugins/console/server/lib/spec-definitions/json/generated/update.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/update.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/update.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/update_by_query.json b/src/plugins/console/server/lib/spec-definitions/json/generated/update_by_query.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/update_by_query.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/update_by_query.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/generated/update_by_query_rethrottle.json b/src/plugins/console/server/lib/spec-definitions/json/generated/update_by_query_rethrottle.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/generated/update_by_query_rethrottle.json rename to src/plugins/console/server/lib/spec-definitions/json/generated/update_by_query_rethrottle.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/clear_scroll.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/clear_scroll.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/clear_scroll.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/clear_scroll.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/cluster.health.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/cluster.health.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/cluster.health.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/cluster.health.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/cluster.put_settings.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/cluster.put_settings.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/cluster.put_settings.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/cluster.put_settings.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/cluster.reroute.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/cluster.reroute.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/cluster.reroute.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/cluster.reroute.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/count.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/count.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/count.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/count.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.analyze.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.analyze.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.analyze.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.analyze.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.clone.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.clone.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.clone.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.clone.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.create.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.create.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.create.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.create.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.delete_template.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.delete_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.delete_template.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.delete_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.exists_template.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.exists_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.exists_template.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.exists_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.get_field_mapping.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.get_field_mapping.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.get_field_mapping.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.get_field_mapping.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.get_mapping.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.get_mapping.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.get_mapping.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.get_mapping.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.get_template.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.get_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.get_template.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.get_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.put_alias.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.put_alias.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.put_alias.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.put_alias.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.put_settings.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.put_settings.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.put_settings.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.put_settings.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.put_template.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.put_template.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.put_template.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.put_template.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.rollover.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.rollover.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.rollover.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.rollover.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.update_aliases.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.update_aliases.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.update_aliases.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.update_aliases.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/indices.validate_query.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/indices.validate_query.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/indices.validate_query.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/indices.validate_query.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/snapshot.create.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/snapshot.create.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/snapshot.create.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/snapshot.create.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/snapshot.create_repository.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/snapshot.create_repository.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/snapshot.create_repository.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/snapshot.create_repository.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/snapshot.restore.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/snapshot.restore.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/snapshot.restore.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/snapshot.restore.json diff --git a/src/plugins/console/server/lib/spec_definitions/json/overrides/update_by_query.json b/src/plugins/console/server/lib/spec-definitions/json/overrides/update_by_query.json similarity index 100% rename from src/plugins/console/server/lib/spec_definitions/json/overrides/update_by_query.json rename to src/plugins/console/server/lib/spec-definitions/json/overrides/update_by_query.json diff --git a/src/plugins/console/server/routes/api/console/opensearch_config/index.ts b/src/plugins/console/server/routes/api/console/opensearch-config/index.ts similarity index 100% rename from src/plugins/console/server/routes/api/console/opensearch_config/index.ts rename to src/plugins/console/server/routes/api/console/opensearch-config/index.ts diff --git a/src/plugins/console/server/routes/api/console/spec_definitions/index.ts b/src/plugins/console/server/routes/api/console/spec-definitions/index.ts similarity index 100% rename from src/plugins/console/server/routes/api/console/spec_definitions/index.ts rename to src/plugins/console/server/routes/api/console/spec-definitions/index.ts diff --git a/src/plugins/console/server/routes/index.ts b/src/plugins/console/server/routes/index.ts index 55165f9bed4f..57a820504396 100644 --- a/src/plugins/console/server/routes/index.ts +++ b/src/plugins/console/server/routes/index.ts @@ -36,9 +36,9 @@ import { OpenSearchLegacyConfigService, SpecDefinitionsService } from '../servic import { OpenSearchConfigForProxy } from '../types'; import { ProxyConfigCollection } from '../lib'; -import { registerOpenSearchConfigRoute } from './api/console/opensearch_config'; +import { registerOpenSearchConfigRoute } from './api/console/opensearch-config'; import { registerProxyRoute } from './api/console/proxy'; -import { registerSpecDefinitionsRoute } from './api/console/spec_definitions'; +import { registerSpecDefinitionsRoute } from './api/console/spec-definitions'; export interface ProxyDependencies { readLegacyOpenSearchConfig: () => Promise; diff --git a/src/plugins/console/server/services/spec_definitions_service.ts b/src/plugins/console/server/services/spec_definitions_service.ts index 00c9417b90e4..14d7ee20e3e1 100644 --- a/src/plugins/console/server/services/spec_definitions_service.ts +++ b/src/plugins/console/server/services/spec_definitions_service.ts @@ -37,7 +37,7 @@ import { readFileSync } from 'fs'; import { jsSpecLoaders } from '../lib'; -const PATH_TO_OSS_JSON_SPEC = resolve(__dirname, '../lib/spec_definitions/json'); +const PATH_TO_OSS_JSON_SPEC = resolve(__dirname, '../lib/spec-definitions/json'); export class SpecDefinitionsService { private readonly name = 'opensearch';