futbol-in-core 1.0.20 → 1.0.22
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,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const agregarFutbolinSchema: z.ZodObject<{
|
|
3
|
+
nombre: z.ZodString;
|
|
4
|
+
direccion: z.ZodString;
|
|
5
|
+
coordinates: z.ZodArray<z.ZodNumber>;
|
|
6
|
+
googlePlaceId: z.ZodString;
|
|
7
|
+
ciudad: z.ZodString;
|
|
8
|
+
tipoLugar: z.ZodString;
|
|
9
|
+
tipoFutbolin: z.ZodString;
|
|
10
|
+
distribucion: z.ZodString;
|
|
11
|
+
comentarios: z.ZodString;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
export type AgregarFutbolin = z.infer<typeof agregarFutbolinSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const agregarFutbolinSchema = z.object({
|
|
3
|
+
nombre: z
|
|
4
|
+
.string("No has introducido el bar o dirección")
|
|
5
|
+
.nonempty("No has introducido el bar o dirección"),
|
|
6
|
+
direccion: z
|
|
7
|
+
.string("El campo 'direccion' es requerido.")
|
|
8
|
+
.nonempty("El campo 'direccion' es requerido."),
|
|
9
|
+
coordinates: z
|
|
10
|
+
.array(z.number())
|
|
11
|
+
.length(2, "Se requieren 2 valores en 'coordinates' (lng, lat)."),
|
|
12
|
+
googlePlaceId: z.string().nonempty("El campo 'googlePlaceId' es requerido."),
|
|
13
|
+
ciudad: z.string().nonempty("El campo 'ciudad' es requerido."),
|
|
14
|
+
tipoLugar: z.string().nonempty("El campo 'tipoLugar' es requerido."),
|
|
15
|
+
tipoFutbolin: z.string().nonempty("El campo 'tipoFutbolin' es requerido."),
|
|
16
|
+
distribucion: z.string().nonempty("El campo 'distribucion' es requerido."),
|
|
17
|
+
comentarios: z.string(),
|
|
18
|
+
});
|
package/dist/schemas/index.d.ts
CHANGED
package/dist/schemas/index.js
CHANGED