Skip to content

Commit

Permalink
[Move @kbn/config-schema to server] maps_ems
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Aug 29, 2024
1 parent 2853279 commit 594ad4a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/plugins/maps_ems/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
import type { PluginInitializerContext } from '@kbn/core/public';
import type { EMSClient } from '@elastic/ems-client';
import { MapsEmsPlugin } from './plugin';
import type { MapConfig } from '../config';
import type { MapConfig } from '../server/config';
import type { EMSSettings } from '../common';

export function plugin(initializerContext: PluginInitializerContext) {
return new MapsEmsPlugin(initializerContext);
}

export type { MapConfig, TileMapConfig } from '../config';
export type { MapConfig, TileMapConfig } from '../server/config';
export type { EMSConfig } from '../common';

// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/maps_ems/public/kibana_services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import { LicensingPluginStart } from '@kbn/licensing-plugin/public';
import { ILicense } from '@kbn/licensing-plugin/common/types';
import type { MapConfig } from '../config';
import type { MapConfig } from '../server/config';
import { LICENSE_CHECK_ID } from '../common';

let kibanaVersion: string;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/maps_ems/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
getIsEnterprisePlus,
} from './kibana_services';
import type { MapsEmsPluginPublicSetup, MapsEmsPluginPublicStart } from '.';
import type { MapConfig } from '../config';
import type { MapConfig } from '../server/config';
import { createEMSSettings } from '../common/ems_settings';
import { createEMSClientLazy } from './lazy_load_bundle';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
DEFAULT_EMS_ROADMAP_ID,
DEFAULT_EMS_ROADMAP_DESATURATED_ID,
DEFAULT_EMS_DARKMAP_ID,
} from './common';
} from '../common';

const tileMapConfigOptionsSchema = schema.object({
attribution: schema.string({ defaultValue: '' }),
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/maps_ems/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import { PluginInitializerContext, PluginConfigDescriptor } from '@kbn/core/server';
import { MapConfig, mapConfigSchema } from '../config';
import { MapConfig, mapConfigSchema } from './config';
export type { EMSSettings } from '../common';
export type { MapsEmsPluginServerSetup } from './plugin';

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/maps_ems/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { ILicense, LicensingPluginSetup } from '@kbn/licensing-plugin/server';
import { Plugin, PluginInitializerContext } from '@kbn/core-plugins-server';
import { CoreSetup } from '@kbn/core-lifecycle-server';
import { MapConfig } from '../config';
import { MapConfig } from './config';
import { LICENSE_CHECK_ID, EMSSettings } from '../common';

export interface MapsEmsPluginServerSetup {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/maps_ems/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "target/types",
},
"include": ["common/**/*", "public/**/*", "server/**/*", "./config.ts"],
"include": ["common/**/*", "public/**/*", "server/**/*"],
"kbn_references": [
"@kbn/core",
"@kbn/licensing-plugin",
Expand Down

0 comments on commit 594ad4a

Please sign in to comment.