fleet/frontend/interfaces/setup.ts
2025-10-15 09:41:43 -04:00

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;
}