feat: Scan on demand can be executed now from the UI

This commit is contained in:
Pablo Lara
2024-10-11 15:33:03 +02:00
parent 69a1468c18
commit f29e87f45b
11 changed files with 383 additions and 100 deletions
+17
View File
@@ -1,5 +1,22 @@
import { z } from "zod";
export const onDemandScanFormSchema = () =>
z.object({
providerId: z.string(),
scanName: z.string().optional(),
scannerArgs: z
.object({
checksToExecute: z.array(z.string()),
})
.optional(),
});
export const scheduleScanFormSchema = () =>
z.object({
providerId: z.string(),
scheduleDate: z.string(),
});
export const addProviderFormSchema = z.object({
providerType: z.string(),
providerAlias: z.string(),