script improvements
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s
This commit is contained in:
@@ -3,13 +3,6 @@ export type ScriptInfo = {
|
||||
path: string;
|
||||
};
|
||||
|
||||
export type ScriptUploadResponse = ScriptInfo & {
|
||||
pip?: {
|
||||
stdout?: string;
|
||||
stderr?: string;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type UnitParsed = {
|
||||
service: string;
|
||||
exec_start?: string | null;
|
||||
@@ -35,6 +28,18 @@ export type StatusForNameResponse = {
|
||||
mappings: UnitMapping[];
|
||||
};
|
||||
|
||||
export type ScriptWithStatus = ScriptInfo & {
|
||||
mappings: UnitMapping[];
|
||||
requirements_exists: boolean;
|
||||
};
|
||||
|
||||
export type ScriptUploadResponse = ScriptInfo & {
|
||||
pip?: {
|
||||
stdout?: string;
|
||||
stderr?: string;
|
||||
} | null;
|
||||
};
|
||||
|
||||
export type OperationResult = {
|
||||
status: string;
|
||||
name: string;
|
||||
@@ -58,3 +63,20 @@ export type EnableRequest = {
|
||||
extra_args?: string | null;
|
||||
enable_at_boot?: boolean | null;
|
||||
};
|
||||
|
||||
// Response shape for requirements upload (pip output)
|
||||
export type RequirementsUploadResult = {
|
||||
pip: {
|
||||
stdout?: string;
|
||||
stderr?: string;
|
||||
};
|
||||
};
|
||||
|
||||
// Response shape for requirements delete
|
||||
export type RequirementsDeleteResult = {
|
||||
removed: {
|
||||
requirements_removed: boolean;
|
||||
venv_removed: boolean;
|
||||
};
|
||||
errors?: string[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user