[Actions] Remove duplicated ActionResult type from common folder (#148001)

Resolves https://github.com/elastic/kibana/issues/132412.

In this PR, I'm removing `ActionResult` type from the `/common` folder
as it is an old copy of the `ActionResult` used and provided by the
`/server` folder.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Mike Côté 2023-01-03 10:45:37 -05:00 committed by GitHub
parent cf5280de5c
commit 0c8c4d7d0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

View file

@ -34,16 +34,6 @@ export interface ValidatedEmail {
reason?: InvalidEmailReason;
}
export interface ActionResult {
id: string;
actionTypeId: string;
name: string;
// This will have to remain `any` until we can extend Action Executors with generics
// eslint-disable-next-line @typescript-eslint/no-explicit-any
config: Record<string, any>;
isPreconfigured: boolean;
}
// the result returned from an action type executor function
const ActionTypeExecutorResultStatusValues = ['ok', 'error'] as const;
type ActionTypeExecutorResultStatus = typeof ActionTypeExecutorResultStatusValues[number];

View file

@ -5,7 +5,7 @@
* 2.0.
*/
import { ActionResult } from '@kbn/actions-plugin/common';
import { ActionResult } from '@kbn/actions-plugin/server';
import { RuleTypeParams, SanitizedRule } from '@kbn/alerting-plugin/common';
import { ALERT_ACTION_TYPE_LOG } from '../../../../../common/constants';
import { AlertsFactory } from '../../../../alerts';