mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-09 21:14:22 +00:00
feat: Scan on demand can be executed now from the UI
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user