2022-12-16 22:33:10 +00:00
|
|
|
export interface IMdmApple {
|
|
|
|
common_name: string;
|
|
|
|
serial_number: string;
|
|
|
|
issuer: string;
|
|
|
|
renew_date: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMdmAppleBm {
|
|
|
|
default_team?: string;
|
|
|
|
apple_id: string;
|
2023-02-03 16:36:27 +00:00
|
|
|
org_name: string;
|
2022-12-16 22:33:10 +00:00
|
|
|
mdm_server_url: string;
|
|
|
|
renew_date: string;
|
|
|
|
}
|
|
|
|
|
UI: 9274 unenroll mdm modal (#9539)
# Addresses #9274
https://www.loom.com/share/2edd946cbd424af2b960801cc505ac85
## Button and permissions:
- no permission, enrolled, online: <img width="1131" alt="no permission,
enrolled, online"
src="https://user-images.githubusercontent.com/61553566/215197330-abc1606d-bf0a-44ec-b2de-2ef687bd529b.png">
- permission, enrolled, online: <img width="1131" alt="permission,
enrolled, online"
src="https://user-images.githubusercontent.com/61553566/215197443-a1353b9b-10dd-408b-8295-56029f2df4c3.png">
- permission, enrolled, offline: <img width="1131" alt="permission,
enrolled, offline"
src="https://user-images.githubusercontent.com/61553566/215197544-b2a997a7-09e5-4f8a-b723-af587b61a90d.png">
- not enrolled: <img width="1131" alt="not enrolled"
src="https://user-images.githubusercontent.com/61553566/215197630-87f99cb3-63a9-45ce-bc85-57a45d54cae0.png">
## Modal
- <img width="672" alt="modal"
src="https://user-images.githubusercontent.com/61553566/215214640-96670a23-d927-4213-a8fa-89411279c075.png">
- <img width="672" alt="Screenshot 2023-01-27 at 2 12 42 PM"
src="https://user-images.githubusercontent.com/61553566/215215098-40d29556-3b73-4f52-a4ae-cc8b09122f5d.png">
- <img width="672" alt="Screenshot 2023-01-27 at 2 17 48 PM"
src="https://user-images.githubusercontent.com/61553566/215216304-b9362b13-f37f-4454-81b5-423f6fc72280.png">
- <img width="787" alt="success-shot"
src="https://user-images.githubusercontent.com/61553566/215236373-be7b1970-662d-47e6-ac59-f51eff344fcd.png">
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`
- [x] Updated test inventory
- [x] Manual QA for all new/changed functionality
---------
Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-01-30 23:59:02 +00:00
|
|
|
export const MDM_ENROLLMENT_STATUS = {
|
2023-01-24 17:55:43 +00:00
|
|
|
"On (manual)": "manual",
|
|
|
|
"On (automatic)": "automatic",
|
|
|
|
Off: "unenrolled",
|
|
|
|
Pending: "pending",
|
|
|
|
};
|
|
|
|
|
UI: 9274 unenroll mdm modal (#9539)
# Addresses #9274
https://www.loom.com/share/2edd946cbd424af2b960801cc505ac85
## Button and permissions:
- no permission, enrolled, online: <img width="1131" alt="no permission,
enrolled, online"
src="https://user-images.githubusercontent.com/61553566/215197330-abc1606d-bf0a-44ec-b2de-2ef687bd529b.png">
- permission, enrolled, online: <img width="1131" alt="permission,
enrolled, online"
src="https://user-images.githubusercontent.com/61553566/215197443-a1353b9b-10dd-408b-8295-56029f2df4c3.png">
- permission, enrolled, offline: <img width="1131" alt="permission,
enrolled, offline"
src="https://user-images.githubusercontent.com/61553566/215197544-b2a997a7-09e5-4f8a-b723-af587b61a90d.png">
- not enrolled: <img width="1131" alt="not enrolled"
src="https://user-images.githubusercontent.com/61553566/215197630-87f99cb3-63a9-45ce-bc85-57a45d54cae0.png">
## Modal
- <img width="672" alt="modal"
src="https://user-images.githubusercontent.com/61553566/215214640-96670a23-d927-4213-a8fa-89411279c075.png">
- <img width="672" alt="Screenshot 2023-01-27 at 2 12 42 PM"
src="https://user-images.githubusercontent.com/61553566/215215098-40d29556-3b73-4f52-a4ae-cc8b09122f5d.png">
- <img width="672" alt="Screenshot 2023-01-27 at 2 17 48 PM"
src="https://user-images.githubusercontent.com/61553566/215216304-b9362b13-f37f-4454-81b5-423f6fc72280.png">
- <img width="787" alt="success-shot"
src="https://user-images.githubusercontent.com/61553566/215236373-be7b1970-662d-47e6-ac59-f51eff344fcd.png">
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`
- [x] Updated test inventory
- [x] Manual QA for all new/changed functionality
---------
Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-01-30 23:59:02 +00:00
|
|
|
export type MdmEnrollmentStatus = keyof typeof MDM_ENROLLMENT_STATUS;
|
2023-01-24 17:55:43 +00:00
|
|
|
|
2023-09-18 17:25:49 +00:00
|
|
|
export type ProfileSummaryResponse = Record<MdmProfileStatus, number>;
|
|
|
|
|
2023-01-24 17:55:43 +00:00
|
|
|
export interface IMdmStatusCardData {
|
UI: 9274 unenroll mdm modal (#9539)
# Addresses #9274
https://www.loom.com/share/2edd946cbd424af2b960801cc505ac85
## Button and permissions:
- no permission, enrolled, online: <img width="1131" alt="no permission,
enrolled, online"
src="https://user-images.githubusercontent.com/61553566/215197330-abc1606d-bf0a-44ec-b2de-2ef687bd529b.png">
- permission, enrolled, online: <img width="1131" alt="permission,
enrolled, online"
src="https://user-images.githubusercontent.com/61553566/215197443-a1353b9b-10dd-408b-8295-56029f2df4c3.png">
- permission, enrolled, offline: <img width="1131" alt="permission,
enrolled, offline"
src="https://user-images.githubusercontent.com/61553566/215197544-b2a997a7-09e5-4f8a-b723-af587b61a90d.png">
- not enrolled: <img width="1131" alt="not enrolled"
src="https://user-images.githubusercontent.com/61553566/215197630-87f99cb3-63a9-45ce-bc85-57a45d54cae0.png">
## Modal
- <img width="672" alt="modal"
src="https://user-images.githubusercontent.com/61553566/215214640-96670a23-d927-4213-a8fa-89411279c075.png">
- <img width="672" alt="Screenshot 2023-01-27 at 2 12 42 PM"
src="https://user-images.githubusercontent.com/61553566/215215098-40d29556-3b73-4f52-a4ae-cc8b09122f5d.png">
- <img width="672" alt="Screenshot 2023-01-27 at 2 17 48 PM"
src="https://user-images.githubusercontent.com/61553566/215216304-b9362b13-f37f-4454-81b5-423f6fc72280.png">
- <img width="787" alt="success-shot"
src="https://user-images.githubusercontent.com/61553566/215236373-be7b1970-662d-47e6-ac59-f51eff344fcd.png">
# Checklist for submitter
If some of the following don't apply, delete the relevant line.
- [x] Changes file added for user-visible changes in `changes/`
- [x] Updated test inventory
- [x] Manual QA for all new/changed functionality
---------
Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-01-30 23:59:02 +00:00
|
|
|
status: MdmEnrollmentStatus;
|
2022-12-16 21:12:11 +00:00
|
|
|
hosts: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMdmAggregateStatus {
|
|
|
|
enrolled_manual_hosts_count: number;
|
|
|
|
enrolled_automated_hosts_count: number;
|
|
|
|
unenrolled_hosts_count: number;
|
2023-01-24 17:55:43 +00:00
|
|
|
pending_hosts_count?: number;
|
2022-12-16 21:12:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMdmSolution {
|
|
|
|
id: number;
|
|
|
|
name: string | null;
|
|
|
|
server_url: string;
|
|
|
|
hosts_count: number;
|
|
|
|
}
|
|
|
|
|
2023-01-24 17:55:43 +00:00
|
|
|
interface IMdmStatus {
|
2022-12-16 21:12:11 +00:00
|
|
|
enrolled_manual_hosts_count: number;
|
|
|
|
enrolled_automated_hosts_count: number;
|
|
|
|
unenrolled_hosts_count: number;
|
2023-01-24 17:55:43 +00:00
|
|
|
pending_hosts_count?: number;
|
2022-12-16 21:12:11 +00:00
|
|
|
hosts_count: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMdmSummaryResponse {
|
|
|
|
counts_updated_at: string;
|
2023-01-24 17:55:43 +00:00
|
|
|
mobile_device_management_enrollment_status: IMdmStatus;
|
2022-12-16 21:12:11 +00:00
|
|
|
mobile_device_management_solution: IMdmSolution[] | null;
|
|
|
|
}
|
2023-02-21 15:31:19 +00:00
|
|
|
|
|
|
|
export interface IMdmProfile {
|
|
|
|
profile_id: number;
|
|
|
|
team_id: number;
|
|
|
|
name: string;
|
|
|
|
identifier: string;
|
|
|
|
created_at: string;
|
|
|
|
updated_at: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IMdmProfilesResponse {
|
|
|
|
profiles: IMdmProfile[] | null;
|
|
|
|
}
|
2023-02-22 16:13:12 +00:00
|
|
|
|
2023-06-06 14:52:10 +00:00
|
|
|
export type MdmProfileStatus = "verified" | "verifying" | "pending" | "failed";
|
2023-04-26 18:31:38 +00:00
|
|
|
|
2023-02-22 16:13:12 +00:00
|
|
|
export type MacMdmProfileOperationType = "remove" | "install";
|
|
|
|
|
2023-03-06 15:03:48 +00:00
|
|
|
export interface IHostMacMdmProfile {
|
2023-02-22 16:13:12 +00:00
|
|
|
profile_id: number;
|
|
|
|
name: string;
|
2023-06-05 15:52:57 +00:00
|
|
|
// identifier?: string; // TODO: add when API is updated to return this
|
2023-02-22 16:13:12 +00:00
|
|
|
operation_type: MacMdmProfileOperationType;
|
2023-04-26 18:31:38 +00:00
|
|
|
status: MdmProfileStatus;
|
2023-02-22 16:13:12 +00:00
|
|
|
detail: string;
|
2023-03-06 15:03:48 +00:00
|
|
|
}
|
|
|
|
|
2023-09-18 17:25:49 +00:00
|
|
|
export type FileVaultProfileStatus =
|
2023-06-06 14:52:10 +00:00
|
|
|
| "verified"
|
|
|
|
| "verifying"
|
|
|
|
| "action_required"
|
|
|
|
| "enforcing"
|
|
|
|
| "failed"
|
|
|
|
| "removing_enforcement";
|
2023-04-26 18:31:38 +00:00
|
|
|
|
2023-09-18 17:25:49 +00:00
|
|
|
// // TODO: update when list profiles API returns identifier
|
|
|
|
// export const FLEET_FILEVAULT_PROFILE_IDENTIFIER =
|
|
|
|
// "com.fleetdm.fleet.mdm.filevault";
|
|
|
|
|
2023-06-05 15:52:57 +00:00
|
|
|
export const FLEET_FILEVAULT_PROFILE_DISPLAY_NAME = "Disk encryption";
|
|
|
|
|
2023-03-06 15:03:48 +00:00
|
|
|
// TODO: update when we have API
|
|
|
|
export interface IMdmScript {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
ran: number;
|
|
|
|
pending: number;
|
|
|
|
errors: number;
|
|
|
|
created_at: string;
|
|
|
|
updated_at: string;
|
|
|
|
}
|
2023-04-27 12:43:20 +00:00
|
|
|
|
|
|
|
export interface IMdmSSOReponse {
|
|
|
|
url: string;
|
|
|
|
}
|
2023-04-27 15:10:41 +00:00
|
|
|
|
|
|
|
export interface IBootstrapPackageMetadata {
|
|
|
|
name: string;
|
|
|
|
team_id: number;
|
|
|
|
sha256: string;
|
|
|
|
token: string;
|
|
|
|
created_at: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IBootstrapPackageAggregate {
|
|
|
|
installed: number;
|
|
|
|
pending: number;
|
|
|
|
failed: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum BootstrapPackageStatus {
|
|
|
|
INSTALLED = "installed",
|
|
|
|
PENDING = "pending",
|
|
|
|
FAILED = "failed",
|
|
|
|
}
|