Clean up unused status (#131558)

This commit is contained in:
Jen Huang 2022-05-04 13:50:05 -07:00 committed by GitHub
parent 6f0e4fab80
commit 42ec15bd0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions

View file

@ -59,5 +59,4 @@ export const installationStatuses = {
Installing: 'installing',
InstallFailed: 'install_failed',
NotInstalled: 'not_installed',
InstalledBundled: 'installed_bundled',
} as const;

View file

@ -45,11 +45,7 @@ export interface DefaultPackagesInstallationError {
export type InstallType = 'reinstall' | 'reupdate' | 'rollback' | 'update' | 'install' | 'unknown';
export type InstallSource = 'registry' | 'upload' | 'bundled';
export type EpmPackageInstallStatus =
| 'installed'
| 'installing'
| 'install_failed'
| 'installed_bundled';
export type EpmPackageInstallStatus = 'installed' | 'installing' | 'install_failed';
export type DetailViewPanelName = 'overview' | 'policies' | 'assets' | 'settings' | 'custom';
export type ServiceName = 'kibana' | 'elasticsearch';
@ -431,8 +427,7 @@ export type Installable<T> =
| InstalledRegistry<T>
| Installing<T>
| NotInstalled<T>
| InstallFailed<T>
| InstalledBundled<T>;
| InstallFailed<T>;
export type InstallStatusExcluded<T = {}> = T & {
status: undefined;
@ -443,10 +438,6 @@ export type InstalledRegistry<T = {}> = T & {
savedObject: SavedObject<Installation>;
};
export type InstalledBundled<T = {}> = T & {
status: InstallationStatus['InstalledBundled'];
};
export type Installing<T = {}> = T & {
status: InstallationStatus['Installing'];
savedObject: SavedObject<Installation>;