MPM marketplace and UI updates
This commit is contained in:
@@ -134,9 +134,25 @@ export const moduleSchema = z.object({
|
||||
healthcheckUrl: z.string(),
|
||||
enabled: z.boolean(),
|
||||
createdAt: z.string(),
|
||||
configuration: z.array(z.object({
|
||||
key: z.string(), label: z.string(), description: z.string(),
|
||||
type: z.enum(['text', 'url', 'boolean']), secret: z.boolean(), required: z.boolean(),
|
||||
defaultValue: z.string().optional(), services: z.array(z.string()),
|
||||
})),
|
||||
configurationReady: z.boolean(),
|
||||
});
|
||||
export type Module = z.infer<typeof moduleSchema>;
|
||||
|
||||
export const moduleConfigurationSchema = z.object({
|
||||
ready: z.boolean(),
|
||||
fields: z.array(z.object({
|
||||
key: z.string(), label: z.string(), description: z.string(),
|
||||
type: z.enum(['text', 'url', 'boolean']), secret: z.boolean(), required: z.boolean(),
|
||||
services: z.array(z.string()), isSet: z.boolean(), value: z.string().optional(),
|
||||
})),
|
||||
});
|
||||
export type ModuleConfiguration = z.infer<typeof moduleConfigurationSchema>;
|
||||
|
||||
/** Modul-Kachel für das Dashboard (/api/v1/profile/modules). */
|
||||
export const accessibleModuleSchema = z.object({
|
||||
id: z.string(),
|
||||
@@ -155,4 +171,4 @@ export const modulePermissionSchema = z.object({
|
||||
moduleName: z.string(),
|
||||
permission: z.enum(['GRANTED', 'DENIED']),
|
||||
});
|
||||
export type ModulePermission = z.infer<typeof modulePermissionSchema>;
|
||||
export type ModulePermission = z.infer<typeof modulePermissionSchema>;
|
||||
|
||||
Reference in New Issue
Block a user