mirror of
https://github.com/elastic/kibana.git
synced 2025-04-18 23:21:39 -04:00
## 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>
54 lines
1.4 KiB
TypeScript
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() {}
|
|
}
|