2023-07-17 21:09:12 +00:00
|
|
|
export type OsqueryPlatform =
|
2022-03-21 16:51:00 +00:00
|
|
|
| "darwin"
|
|
|
|
|
| "macOS"
|
|
|
|
|
| "windows"
|
|
|
|
|
| "Windows"
|
|
|
|
|
| "linux"
|
2023-06-06 12:58:32 +00:00
|
|
|
| "Linux"
|
|
|
|
|
| "chrome"
|
|
|
|
|
| "ChromeOS";
|
2022-03-21 16:51:00 +00:00
|
|
|
|
2023-07-17 21:09:12 +00:00
|
|
|
export type SupportedPlatform = "darwin" | "windows" | "linux" | "chrome";
|
2022-10-14 20:21:30 +00:00
|
|
|
|
2023-07-17 21:09:12 +00:00
|
|
|
export const SUPPORTED_PLATFORMS: SupportedPlatform[] = [
|
|
|
|
|
"darwin",
|
|
|
|
|
"windows",
|
|
|
|
|
"linux",
|
|
|
|
|
"chrome",
|
|
|
|
|
];
|
|
|
|
|
export type SelectedPlatform = SupportedPlatform | "all";
|
|
|
|
|
|
|
|
|
|
export type SelectedPlatformString =
|
2022-03-21 16:51:00 +00:00
|
|
|
| ""
|
2023-08-08 17:40:07 +00:00
|
|
|
| SupportedPlatform
|
|
|
|
|
| `${SupportedPlatform},${SupportedPlatform}`
|
|
|
|
|
| `${SupportedPlatform},${SupportedPlatform},${SupportedPlatform}`
|
|
|
|
|
| `${SupportedPlatform},${SupportedPlatform},${SupportedPlatform},${SupportedPlatform}`;
|
2022-03-21 16:51:00 +00:00
|
|
|
|
2022-03-21 23:06:25 +00:00
|
|
|
// TODO: revisit this approach pending resolution of https://github.com/fleetdm/fleet/issues/3555.
|
2023-07-17 21:09:12 +00:00
|
|
|
export const MACADMINS_EXTENSION_TABLES: Record<string, OsqueryPlatform[]> = {
|
2022-03-21 23:06:25 +00:00
|
|
|
file_lines: ["darwin", "linux", "windows"],
|
|
|
|
|
filevault_users: ["darwin"],
|
|
|
|
|
google_chrome_profiles: ["darwin", "linux", "windows"],
|
|
|
|
|
macos_profiles: ["darwin"],
|
2022-03-21 16:51:00 +00:00
|
|
|
mdm: ["darwin"],
|
2022-03-21 23:06:25 +00:00
|
|
|
munki_info: ["darwin"],
|
|
|
|
|
munki_install: ["darwin"],
|
|
|
|
|
// network_quality: ["darwin"], // TODO: add this table if/when it is incorporated into orbit
|
|
|
|
|
puppet_info: ["darwin", "linux", "windows"],
|
|
|
|
|
puppet_logs: ["darwin", "linux", "windows"],
|
|
|
|
|
puppet_state: ["darwin", "linux", "windows"],
|
2022-08-19 01:59:14 +00:00
|
|
|
macadmins_unified_log: ["darwin"],
|
2022-03-21 16:51:00 +00:00
|
|
|
};
|