Map additional pending statuses to "pending" UI in host details > OS Settings table (#37375)
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #36683 # Checklist for submitter - [x] Added/updated automated tests - [ ] QA'd all new/changed functionality manually --------- Co-authored-by: Victor Lyuboslavsky <2685025+getvictor@users.noreply.github.com>
This commit is contained in:
co-authored by
Victor Lyuboslavsky
parent
b8b50ed7e2
commit
9a6ef5ba52
@@ -97,7 +97,7 @@ export interface IMunkiData {
|
||||
|
||||
export type MacDiskEncryptionActionRequired = "log_out" | "rotate_key";
|
||||
|
||||
export type HostCertStatus =
|
||||
export type HostAndroidCertStatus =
|
||||
| "verified"
|
||||
| "failed"
|
||||
// all below display "pending" in UI
|
||||
@@ -105,9 +105,9 @@ export type HostCertStatus =
|
||||
| "delivering"
|
||||
| "delivered";
|
||||
|
||||
export interface IHostCert {
|
||||
export interface IHostAndroidCert {
|
||||
name: string;
|
||||
status: HostCertStatus;
|
||||
status: HostAndroidCertStatus;
|
||||
operation_type: "install" | "remove";
|
||||
detail: string;
|
||||
}
|
||||
@@ -117,7 +117,7 @@ export interface IOSSettings {
|
||||
status: DiskEncryptionStatus | null;
|
||||
detail: string;
|
||||
};
|
||||
certificates: IHostCert[];
|
||||
certificates: IHostAndroidCert[];
|
||||
}
|
||||
|
||||
interface IMdmMacOsSettings {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { IConfigServerSettings } from "./config";
|
||||
import { HostAndroidCertStatus } from "./host";
|
||||
|
||||
export interface IMdmApple {
|
||||
common_name: string;
|
||||
@@ -185,7 +186,11 @@ export interface IHostMdmProfile {
|
||||
name: string;
|
||||
operation_type: ProfileOperationType | null;
|
||||
platform: ProfilePlatform;
|
||||
status: MdmProfileStatus | MdmDDMProfileStatus | LinuxDiskEncryptionStatus;
|
||||
status:
|
||||
| MdmProfileStatus
|
||||
| MdmDDMProfileStatus
|
||||
| LinuxDiskEncryptionStatus
|
||||
| HostAndroidCertStatus;
|
||||
detail: string;
|
||||
scope: ProfileScope | null;
|
||||
managed_local_account: string | null;
|
||||
@@ -200,7 +205,7 @@ export type DiskEncryptionStatus =
|
||||
| "failed"
|
||||
| "removing_enforcement";
|
||||
|
||||
/** Currently windows disk enxryption status will only be one of these four
|
||||
/** Currently windows disk encryption status will only be one of these four
|
||||
values. In the future we may add more. */
|
||||
export type WindowsDiskEncryptionStatus = Extract<
|
||||
DiskEncryptionStatus,
|
||||
|
||||
Reference in New Issue
Block a user