mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[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:
parent
cf5280de5c
commit
0c8c4d7d0a
2 changed files with 1 additions and 11 deletions
|
@ -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];
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue