2020-01-22 18:08:54 +01:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import { PluginInitializerContext } from '../../../../src/core/server';
|
|
|
|
import { ActionsPlugin } from './plugin';
|
|
|
|
import { configSchema } from './config';
|
2020-02-12 19:49:16 +01:00
|
|
|
import { ActionsClient as ActionsClientClass } from './actions_client';
|
2020-07-22 15:45:57 +02:00
|
|
|
import { ActionsAuthorization as ActionsAuthorizationClass } from './authorization/actions_authorization';
|
2020-02-12 19:49:16 +01:00
|
|
|
|
|
|
|
export type ActionsClient = PublicMethodsOf<ActionsClientClass>;
|
2020-07-22 15:45:57 +02:00
|
|
|
export type ActionsAuthorization = PublicMethodsOf<ActionsAuthorizationClass>;
|
2020-01-22 18:08:54 +01:00
|
|
|
|
2020-04-08 18:54:42 +02:00
|
|
|
export {
|
|
|
|
ActionsPlugin,
|
|
|
|
ActionResult,
|
|
|
|
ActionTypeExecutorOptions,
|
|
|
|
ActionType,
|
|
|
|
PreConfiguredAction,
|
|
|
|
} from './types';
|
2020-01-22 18:08:54 +01:00
|
|
|
export { PluginSetupContract, PluginStartContract } from './plugin';
|
|
|
|
|
|
|
|
export const plugin = (initContext: PluginInitializerContext) => new ActionsPlugin(initContext);
|
|
|
|
|
|
|
|
export const config = {
|
|
|
|
schema: configSchema,
|
|
|
|
};
|