kibana/x-pack/solutions/chat/plugins/serverless_chat/server/plugin.ts
Gerard Soldevila adb4bdf8d8
SKA: Extract list of Kibana solutions into a dedicated package (#213353)
## Summary

The intent is to have a centralised place to store the list of Kibana
solutions and serverless project types.
To that end, this PR creates a `@kbn/projects-solutions-groups` package.
It also adds the new solution type `'chat'`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-03-20 10:20:07 +01:00

54 lines
1.4 KiB
TypeScript

/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
import type {
Logger,
PluginInitializerContext,
Plugin,
CoreSetup,
CoreStart,
} from '@kbn/core/server';
import { CHAT_PROJECT_SETTINGS } from '@kbn/serverless-chat-settings';
import type { ServerlessChatConfig } from './config';
import type {
ServerlessChatPluginSetup,
ServerlessChatPluginStart,
SetupDependencies,
StartDependencies,
} from './types';
export class ServerlessChatPlugin
implements
Plugin<
ServerlessChatPluginSetup,
ServerlessChatPluginStart,
SetupDependencies,
StartDependencies
>
{
// @ts-ignore config is not used for now
private readonly config: ServerlessChatConfig;
// @ts-ignore logger is not used for now
private readonly logger: Logger;
constructor(initializerContext: PluginInitializerContext) {
this.config = initializerContext.config.get<ServerlessChatConfig>();
this.logger = initializerContext.logger.get();
}
public setup(core: CoreSetup<StartDependencies>, { serverless }: SetupDependencies) {
serverless.setupProjectSettings(CHAT_PROJECT_SETTINGS);
return {};
}
public start(core: CoreStart) {
return {};
}
public stop() {}
}