feat: Phase 3 – Modul-System (Manifest, ZIP-Installation, Lifecycle, Prozess-Manager)
This commit is contained in:
@@ -106,4 +106,33 @@ export const changePasswordSchema = z
|
||||
message: 'Passwörter stimmen nicht überein',
|
||||
path: ['confirmPassword'],
|
||||
});
|
||||
export type ChangePasswordDto = z.infer<typeof changePasswordSchema>;
|
||||
export type ChangePasswordDto = z.infer<typeof changePasswordSchema>;
|
||||
|
||||
/** Modul-Lifecycle-Zustände (muss zum Backend passen). */
|
||||
export const MODULE_STATUSES = [
|
||||
'INSTALLED',
|
||||
'STARTING',
|
||||
'RUNNING',
|
||||
'STOPPING',
|
||||
'STOPPED',
|
||||
'ERROR',
|
||||
'DISABLED',
|
||||
] as const;
|
||||
export type ModuleStatus = (typeof MODULE_STATUSES)[number];
|
||||
|
||||
/** Modul-Datensatz der Admin-API (/api/v1/modules). */
|
||||
export const moduleSchema = z.object({
|
||||
id: z.string(),
|
||||
moduleId: z.string(),
|
||||
name: z.string(),
|
||||
slug: z.string(),
|
||||
version: z.string(),
|
||||
description: z.string(),
|
||||
author: z.string(),
|
||||
status: z.enum(MODULE_STATUSES),
|
||||
internalPort: z.number(),
|
||||
healthcheckUrl: z.string(),
|
||||
enabled: z.boolean(),
|
||||
createdAt: z.string(),
|
||||
});
|
||||
export type Module = z.infer<typeof moduleSchema>;
|
||||
Reference in New Issue
Block a user