File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
x-pack/plugins/ingest_manager/common Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ export const requiredPackages = {
1414 Endpoint : 'endpoint' ,
1515} as const ;
1616
17+ export const agentAssetTypes = {
18+ Input : 'input' ,
19+ } as const ;
20+
1721export const dataTypes = {
1822 Logs : 'logs' ,
1923 Metrics : 'metrics' ,
Original file line number Diff line number Diff line change 77// Follow pattern from https://github.com/elastic/kibana/pull/52447
88// TODO: Update when https://github.com/elastic/kibana/issues/53021 is closed
99import { SavedObject , SavedObjectAttributes , SavedObjectReference } from 'src/core/public' ;
10- import { dataTypes , requiredPackages } from '../../constants' ;
10+ import { agentAssetTypes , dataTypes , requiredPackages } from '../../constants' ;
11+ import { ValueOf } from '../../types' ;
1112
1213export enum InstallationStatus {
1314 installed = 'installed' ,
@@ -27,7 +28,8 @@ export type EpmPackageInstallStatus = 'installed' | 'installing';
2728
2829export type DetailViewPanelName = 'overview' | 'usages' | 'settings' ;
2930export type ServiceName = 'kibana' | 'elasticsearch' ;
30- export type AssetType = KibanaAssetType | ElasticsearchAssetType | AgentAssetType ;
31+ export type AgentAssetType = typeof agentAssetTypes ;
32+ export type AssetType = KibanaAssetType | ElasticsearchAssetType | ValueOf < AgentAssetType > ;
3133
3234export enum KibanaAssetType {
3335 dashboard = 'dashboard' ,
@@ -47,10 +49,6 @@ export enum ElasticsearchAssetType {
4749
4850export type DataType = typeof dataTypes ;
4951
50- export enum AgentAssetType {
51- input = 'input' ,
52- }
53-
5452export type RegistryRelease = 'ga' | 'beta' | 'experimental' ;
5553
5654// Fields common to packages that come from direct upload and the registry
You can’t perform that action at this time.
0 commit comments