mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
27 lines
762 B
TypeScript
27 lines
762 B
TypeScript
export const SETUP_STEP_STATUSES = [
|
|
"pending",
|
|
"running",
|
|
"success",
|
|
"failure",
|
|
"cancelled", // server should be aggregating cancelled installs with failed, check here just in case
|
|
] as const;
|
|
|
|
export type SetupStepStatus = typeof SETUP_STEP_STATUSES[number];
|
|
|
|
/** These type extends onto API returned software steps */
|
|
export const SETUP_STEP_TYPES = [
|
|
"software_install", // API key: software
|
|
"software_script_run", // API key: software, key: name ending in .sh or .ps1 for now
|
|
"script_run", // API key: scripts
|
|
];
|
|
|
|
export type SetupStepType = typeof SETUP_STEP_TYPES[number];
|
|
|
|
export interface ISetupStep {
|
|
name: string | null;
|
|
status: SetupStepStatus;
|
|
}
|
|
|
|
export interface IEnhancedSetupStep extends ISetupStep {
|
|
type: SetupStepType;
|
|
}
|