futbol-in-core 1.0.23 → 1.0.24

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.
@@ -7,12 +7,14 @@ export const agregarFutbolinSchema = z.object({
7
7
  .string("El campo 'direccion' es requerido.")
8
8
  .nonempty("El campo 'direccion' no puede estar vacío."),
9
9
  coordinates: z
10
- .array(z.number("Se requieren 2 valores en 'coordinates' (lng, lat)."))
11
- .length(2, "Se requieren 2 valores en 'coordinates' (lng, lat)."),
10
+ .array(z.number("Las coordenadas deben ser números"), "El campo coordenadas es obligatorio")
11
+ .length(2, "El campo coordenadas debe tener dos elementos"),
12
12
  googlePlaceId: z
13
13
  .string("El campo 'googlePlaceId' es requerido.")
14
14
  .nonempty("El campo 'googlePlaceId' no puede estar vacío."),
15
- ciudad: z.string().nonempty("El campo 'ciudad' es requerido."),
15
+ ciudad: z
16
+ .string("El campo 'ciudad es requerido.'")
17
+ .nonempty("El campo 'ciudad' no puede estar vacío."),
16
18
  tipoLugar: z
17
19
  .string("El campo 'tipoLugar' es requerido.")
18
20
  .nonempty("El campo 'tipoLugar' no puede estar vacío."),
@@ -21,4 +21,6 @@ export interface SpotDTO {
21
21
  up: string[];
22
22
  down: string[];
23
23
  };
24
+ createdAt?: Date;
25
+ updatedAt?: Date;
24
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "futbol-in-core",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",