test scripting changes
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s

This commit is contained in:
2026-03-01 01:21:27 +01:00
parent 8fe9a06bfa
commit caf6799dd2
5 changed files with 474 additions and 158 deletions

View File

@@ -3,9 +3,58 @@ export type ScriptInfo = {
path: string;
};
export type ScriptUploadResponse = ScriptInfo & {
pip?: {
stdout?: string;
stderr?: string;
} | null;
};
export type UnitParsed = {
service: string;
exec_start?: string | null;
name?: string | null;
script_path?: string | null;
qnum?: number | null;
extra?: string | null;
};
export type UnitStatus = {
parsed: UnitParsed;
active: boolean;
};
export type UnitMapping = {
service: string;
parsed: UnitParsed;
active: boolean;
};
export type StatusForNameResponse = {
name: string;
mappings: UnitMapping[];
};
export type OperationResult = {
status: string;
name: string;
qnum?: number | null;
service?: string | null;
python?: string | null;
};
export type DeleteResult = {
name: string;
units_removed: string[];
units_failed: string[];
files_removed: string[];
files_failed: string[];
errors: string[];
};
export type EnableRequest = {
qnum: number;
service_name?: string | null;
extra_args?: string | null;
enable_at_boot?: boolean | null;
};
};