mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
relates to #10935 This is the UI for all the flows around adding, removing, downloading, and viewing information about a bootstrap package for fleet mdm. This is pretty comprehensive but includes: ### Backend **Update `Get host/id`** to include bootstrap package name ```json { "macos_setup": { ... "bootstrap_package_name": "test.pkg" } } ``` ### Frontend **UI for ABM not being set up**:  **UIs for uploading, downloading, and deleting bootstrap package**:    **UIs for seeing bootstrap status aggregate data**  **UIs for filtering hosts by bootstrap status**  **UIs for seeing package status on host details and my device page**:   - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Roberto Dip <dip.jesusr@gmail.com> Co-authored-by: gillespi314 <73313222+gillespi314@users.noreply.github.com> Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
136 lines
2.7 KiB
TypeScript
136 lines
2.7 KiB
TypeScript
export interface IMdmApple {
|
|
common_name: string;
|
|
serial_number: string;
|
|
issuer: string;
|
|
renew_date: string;
|
|
}
|
|
|
|
export interface IMdmAppleBm {
|
|
default_team?: string;
|
|
apple_id: string;
|
|
org_name: string;
|
|
mdm_server_url: string;
|
|
renew_date: string;
|
|
}
|
|
|
|
export const MDM_ENROLLMENT_STATUS = {
|
|
"On (manual)": "manual",
|
|
"On (automatic)": "automatic",
|
|
Off: "unenrolled",
|
|
Pending: "pending",
|
|
};
|
|
|
|
export type MdmEnrollmentStatus = keyof typeof MDM_ENROLLMENT_STATUS;
|
|
|
|
export interface IMdmStatusCardData {
|
|
status: MdmEnrollmentStatus;
|
|
hosts: number;
|
|
}
|
|
|
|
export interface IMdmAggregateStatus {
|
|
enrolled_manual_hosts_count: number;
|
|
enrolled_automated_hosts_count: number;
|
|
unenrolled_hosts_count: number;
|
|
pending_hosts_count?: number;
|
|
}
|
|
|
|
export interface IMdmSolution {
|
|
id: number;
|
|
name: string | null;
|
|
server_url: string;
|
|
hosts_count: number;
|
|
}
|
|
|
|
interface IMdmStatus {
|
|
enrolled_manual_hosts_count: number;
|
|
enrolled_automated_hosts_count: number;
|
|
unenrolled_hosts_count: number;
|
|
pending_hosts_count?: number;
|
|
hosts_count: number;
|
|
}
|
|
|
|
export interface IMdmSummaryResponse {
|
|
counts_updated_at: string;
|
|
mobile_device_management_enrollment_status: IMdmStatus;
|
|
mobile_device_management_solution: IMdmSolution[] | null;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
export enum MdmProfileStatus {
|
|
VERIFYING = "verifying",
|
|
PENDING = "pending",
|
|
FAILED = "failed",
|
|
}
|
|
|
|
export type MacMdmProfileOperationType = "remove" | "install";
|
|
|
|
export interface IHostMacMdmProfile {
|
|
profile_id: number;
|
|
name: string;
|
|
operation_type: MacMdmProfileOperationType;
|
|
status: MdmProfileStatus;
|
|
detail: string;
|
|
}
|
|
|
|
export interface IFileVaultSummaryResponse {
|
|
verifying: number;
|
|
action_required: number;
|
|
enforcing: number;
|
|
failed: number;
|
|
removing_enforcement: number;
|
|
}
|
|
|
|
export enum FileVaultProfileStatus {
|
|
VERIFYING = "verifying",
|
|
ACTION_REQUIRED = "action_required",
|
|
ENFORCING = "enforcing",
|
|
FAILED = "failed",
|
|
REMOVING_ENFORCEMENT = "removing_enforcement",
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
|
|
export interface IMdmSSOReponse {
|
|
url: string;
|
|
}
|
|
|
|
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",
|
|
}
|