futbol-in-core 1.0.49 → 1.0.51

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.
@@ -34832,7 +34832,7 @@ export const municipios = [
34832
34832
  {
34833
34833
  "parent_code": "12",
34834
34834
  "code": "15",
34835
- "label": "Coruña, A",
34835
+ "label": "A Coruña",
34836
34836
  "towns": [
34837
34837
  {
34838
34838
  "parent_code": "15",
@@ -34982,7 +34982,7 @@ export const municipios = [
34982
34982
  {
34983
34983
  "parent_code": "15",
34984
34984
  "code": "8",
34985
- "label": "Coruña, A"
34985
+ "label": "A Coruña"
34986
34986
  },
34987
34987
  {
34988
34988
  "parent_code": "15",
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
2
  export declare const mongoId: z.ZodString;
3
3
  export declare const crearIncidenciaSchema: z.ZodObject<{
4
- spotId: z.ZodString;
5
4
  texto: z.ZodDefault<z.ZodOptional<z.ZodString>>;
6
5
  }, z.core.$strip>;
7
6
  export type CrearIncidenciaBody = z.infer<typeof crearIncidenciaSchema>;
@@ -17,3 +16,8 @@ export declare const resolverIncidenciaSchema: z.ZodObject<{
17
16
  resuelto: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
18
17
  }, z.core.$strip>;
19
18
  export type ResolverIncidenciaBody = z.infer<typeof resolverIncidenciaSchema>;
19
+ export declare const spotIncidenciaParamsSchema: z.ZodObject<{
20
+ spotId: z.ZodString;
21
+ id: z.ZodString;
22
+ }, z.core.$strip>;
23
+ export type SpotIncidenciaParams = z.infer<typeof spotIncidenciaParamsSchema>;
@@ -3,7 +3,6 @@ export const mongoId = z
3
3
  .string()
4
4
  .regex(/^[0-9a-fA-F]{24}$/, "ObjectId inválido");
5
5
  export const crearIncidenciaSchema = z.object({
6
- spotId: mongoId,
7
6
  texto: z.string().max(1000).optional().default(""),
8
7
  });
9
8
  export const incidenciaIdParamsSchema = z.object({ id: mongoId });
@@ -11,3 +10,7 @@ export const spotIdParamsSchema = z.object({ spotId: mongoId });
11
10
  export const resolverIncidenciaSchema = z.object({
12
11
  resuelto: z.boolean().optional().default(true),
13
12
  });
13
+ export const spotIncidenciaParamsSchema = z.object({
14
+ spotId: mongoId,
15
+ id: mongoId,
16
+ });
@@ -0,0 +1,7 @@
1
+ export interface Incidencia {
2
+ id: string;
3
+ userId: string;
4
+ texto: string;
5
+ resuelto: boolean;
6
+ createdAt: Date;
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
1
  import { DistribucionFutbolin, TipoFutbolin, TipoLugar } from "../../enum";
2
+ import { Incidencia } from "./Incidencia";
2
3
  export interface SpotDTO {
3
4
  id: string;
4
5
  nombre: string;
@@ -21,6 +22,7 @@ export interface SpotDTO {
21
22
  up: string[];
22
23
  down: string[];
23
24
  };
25
+ incidencias: Incidencia[];
24
26
  createdAt?: Date;
25
27
  updatedAt?: Date;
26
28
  destacado?: boolean;
@@ -1,3 +1,4 @@
1
1
  export * from './Coords.js';
2
+ export * from './Incidencia.js';
2
3
  export * from './SpotDTO.js';
3
4
  export * from './Bar.js';
@@ -1,3 +1,4 @@
1
1
  export * from './Coords.js';
2
+ export * from './Incidencia.js';
2
3
  export * from './SpotDTO.js';
3
4
  export * from './Bar.js';
@@ -5,4 +5,5 @@ export interface UsuarioEnRanking {
5
5
  spotsCreados: number;
6
6
  puntuacion: number;
7
7
  imagen: string;
8
+ createdAt?: string;
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "futbol-in-core",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",