futbol-in-core 1.0.41 → 1.0.43
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.
|
@@ -14,8 +14,19 @@ export declare const CambiarPasswordSchema: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
export type CambiarPasswordBody = z.infer<typeof CambiarPasswordSchema>;
|
|
16
16
|
export declare const CambiarEmailSchema: z.ZodObject<{
|
|
17
|
+
currentPassword: z.ZodString;
|
|
17
18
|
currentEmail: z.ZodEmail;
|
|
18
19
|
nuevoEmail: z.ZodEmail;
|
|
19
20
|
confirmNuevoEmail: z.ZodEmail;
|
|
20
21
|
}, z.core.$strip>;
|
|
21
22
|
export type CambiarEmailBody = z.infer<typeof CambiarEmailSchema>;
|
|
23
|
+
export declare const UserImageSchema: z.ZodObject<{
|
|
24
|
+
action: z.ZodEnum<{
|
|
25
|
+
upload: "upload";
|
|
26
|
+
replace: "replace";
|
|
27
|
+
delete: "delete";
|
|
28
|
+
}>;
|
|
29
|
+
currentImage: z.ZodOptional<z.ZodString>;
|
|
30
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type UserImageRequestBody = z.infer<typeof UserImageSchema>;
|
|
@@ -12,7 +12,13 @@ export const CambiarPasswordSchema = z.object({
|
|
|
12
12
|
confirmNuevaPassword: z.string().min(6),
|
|
13
13
|
});
|
|
14
14
|
export const CambiarEmailSchema = z.object({
|
|
15
|
+
currentPassword: z.string().min(6),
|
|
15
16
|
currentEmail: z.email(),
|
|
16
17
|
nuevoEmail: z.email(),
|
|
17
18
|
confirmNuevoEmail: z.email(),
|
|
18
19
|
});
|
|
20
|
+
export const UserImageSchema = z.object({
|
|
21
|
+
action: z.enum(["upload", "replace", "delete"]),
|
|
22
|
+
currentImage: z.string().optional(),
|
|
23
|
+
fileName: z.string().optional(),
|
|
24
|
+
});
|