futbol-in-core 1.0.48 → 1.0.50
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.
- package/dist/schemas/incidencias/incidencias.validation.d.ts +5 -1
- package/dist/schemas/incidencias/incidencias.validation.js +4 -1
- package/dist/types/Spot/Incidencia.d.ts +7 -0
- package/dist/types/Spot/Incidencia.js +1 -0
- package/dist/types/Spot/SpotDTO.d.ts +2 -0
- package/dist/types/Spot/index.d.ts +1 -0
- package/dist/types/Spot/index.js +1 -0
- package/package.json +1 -1
|
@@ -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 @@
|
|
|
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;
|
package/dist/types/Spot/index.js
CHANGED