gkarr 23242 fe (#47754)

This commit is contained in:
George Karr
2026-06-29 11:55:24 -05:00
committed by GitHub
parent 08d725889b
commit 065a52cb9b
19 changed files with 333 additions and 60 deletions
+9
View File
@@ -179,6 +179,15 @@ export interface IHostMdmData {
device_status: HostMdmDeviceStatus;
pending_action: HostMdmPendingAction;
connected_to_fleet?: boolean;
/**
* wipe/lock/clear_passcode_allowed indicate whether the corresponding MDM
* commands are permitted for this host based on the AccessRights delivered
* in the host's manual (SCEP/ACME) enrollment profile. They are only
* populated for the host-details endpoint; absent on list-hosts payloads.
*/
wipe_allowed?: boolean;
lock_allowed?: boolean;
clear_passcode_allowed?: boolean;
}
export interface IHostMaintenanceWindow {
+9 -7
View File
@@ -61,7 +61,7 @@ export const getMdmServerUrl = ({ server_url }: IConfigServerSettings) => {
export type MdmEnrollmentStatus =
| "On (manual)"
| "On (automatic)"
| "On (personal)"
| "On (manual - personal)"
| "On (company-owned)"
| "Off"
| "Pending";
@@ -96,8 +96,8 @@ export const MDM_ENROLLMENT_STATUS_UI_MAP: Record<
displayName: "On (company-owned)",
filterValue: "automatic",
},
"On (personal)": {
displayName: "On (BYOD)",
"On (manual - personal)": {
displayName: "On (manual - personal)",
filterValue: "personal",
},
Off: {
@@ -302,7 +302,7 @@ export const isEnrolledInMdm = (
return [
"On (automatic)",
"On (manual)",
"On (personal)",
"On (manual - personal)",
"On (company-owned)",
].includes(hostMdmEnrollmentStatus);
};
@@ -314,11 +314,13 @@ export const isBYODManualEnrollment = (
};
/** This checks if the device is enrolled via an Apple ID user enrollment.
* We refer to that as "account driven user enrollment" */
* We refer to that as "account driven user enrollment". Note that this same
* status now also covers manual BYOD enrollments (Apple) and Android BYO
* (work profile); see issue #23242. */
export const isBYODAccountDrivenUserEnrollment = (
enrollmentStatus: MdmEnrollmentStatus | null
) => {
return enrollmentStatus === "On (personal)";
return enrollmentStatus === "On (manual - personal)";
};
/** This check is the device is enrolled via Automated Device Enrollment (ADE, also known as DEP)
@@ -335,7 +337,7 @@ export const isAutomaticDeviceEnrollment = (
/** Android BYO (work profile, personally-owned) enrollment. */
export const isAndroidBYO = (enrollmentStatus: MdmEnrollmentStatus | null) => {
return enrollmentStatus === "On (personal)";
return enrollmentStatus === "On (manual - personal)";
};
/** Android COBO (company-owned, fully managed) enrollment. */