Skip to content

Commit

Permalink
[Actions] Expose getAllSystemActions from the actions client (#167783)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
cnasikas and kibanamachine authored Oct 3, 2023
1 parent dac21c2 commit d5f1791
Show file tree
Hide file tree
Showing 7 changed files with 561 additions and 306 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const createActionsClientMock = () => {
delete: jest.fn(),
update: jest.fn(),
getAll: jest.fn(),
getAllSystemConnectors: jest.fn(),
getBulk: jest.fn(),
getOAuthAccessToken: jest.fn(),
execute: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import {
} from '../lib/get_execution_log_aggregation';
import { connectorFromSavedObject, isConnectorDeprecated } from '../application/connector/lib';
import { ListTypesParams } from '../application/connector/methods/list_types/types';
import { getAllSystemConnectors } from '../application/connector/methods/get_all/get_all';

interface ActionUpdate {
name: string;
Expand Down Expand Up @@ -481,6 +482,13 @@ export class ActionsClient {
return getAll({ context: this.context, includeSystemActions });
}

/**
* Get all system connectors
*/
public async getAllSystemConnectors(): Promise<FindConnectorResult[]> {
return getAllSystemConnectors({ context: this.context });
}

/**
* Get bulk actions with in-memory list
*/
Expand Down
Loading

0 comments on commit d5f1791

Please sign in to comment.