futbol-in-core 1.0.24 → 1.0.25
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,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const mongoId: z.ZodString;
|
|
3
|
+
export declare const crearIncidenciaSchema: z.ZodObject<{
|
|
4
|
+
spotId: z.ZodString;
|
|
5
|
+
texto: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type CrearIncidencia = z.infer<typeof crearIncidenciaSchema>;
|
|
8
|
+
export declare const incidenciaIdParamsSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const spotIdParamsSchema: z.ZodObject<{
|
|
12
|
+
spotId: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export declare const resolverIncidenciaSchema: z.ZodObject<{
|
|
15
|
+
resuelto: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type ResolverIncidencia = z.infer<typeof resolverIncidenciaSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const mongoId = z
|
|
3
|
+
.string()
|
|
4
|
+
.regex(/^[0-9a-fA-F]{24}$/, "ObjectId inválido");
|
|
5
|
+
export const crearIncidenciaSchema = z.object({
|
|
6
|
+
spotId: mongoId,
|
|
7
|
+
texto: z.string().max(1000).optional().default(""),
|
|
8
|
+
});
|
|
9
|
+
export const incidenciaIdParamsSchema = z.object({ id: mongoId });
|
|
10
|
+
export const spotIdParamsSchema = z.object({ spotId: mongoId });
|
|
11
|
+
export const resolverIncidenciaSchema = z.object({
|
|
12
|
+
resuelto: z.boolean().optional().default(true),
|
|
13
|
+
});
|
package/dist/schemas/index.d.ts
CHANGED
package/dist/schemas/index.js
CHANGED