futbol-in-core 1.0.46 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const editarFutbolinSchema: z.ZodObject<{
|
|
3
|
+
tipoFutbolin: z.ZodString;
|
|
4
|
+
distribucion: z.ZodString;
|
|
5
|
+
comentarios: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type EditarFutbolinBody = z.infer<typeof editarFutbolinSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const editarFutbolinSchema = z.object({
|
|
3
|
+
tipoFutbolin: z
|
|
4
|
+
.string("Introduce el tipo de futbolín")
|
|
5
|
+
.nonempty("El campo 'tipoFutbolin' no puede estar vacío."),
|
|
6
|
+
distribucion: z
|
|
7
|
+
.string("Especifica la distribución del futbolín")
|
|
8
|
+
.nonempty("El campo 'distribucion' no puede estar vacío."),
|
|
9
|
+
comentarios: z.string().optional(),
|
|
10
|
+
});
|