futbol-in-core 1.0.39 → 1.0.40
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,3 +7,9 @@ export declare const editarUserBodySchema: z.ZodObject<{
|
|
|
7
7
|
ciudad: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export type EditarUserBody = z.infer<typeof editarUserBodySchema>;
|
|
10
|
+
export declare const CambiarPasswordSchema: z.ZodObject<{
|
|
11
|
+
currentPassword: z.ZodString;
|
|
12
|
+
nuevaPassword: z.ZodString;
|
|
13
|
+
confirmNuevaPassword: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type CambiarPasswordBody = z.infer<typeof CambiarPasswordSchema>;
|
|
@@ -6,3 +6,8 @@ export const editarUserBodySchema = z.object({
|
|
|
6
6
|
posicion: z.enum(Posicion).optional().nullable(),
|
|
7
7
|
ciudad: z.string().trim().min(1).max(80).optional().nullable(),
|
|
8
8
|
});
|
|
9
|
+
export const CambiarPasswordSchema = z.object({
|
|
10
|
+
currentPassword: z.string().min(6),
|
|
11
|
+
nuevaPassword: z.string().min(6),
|
|
12
|
+
confirmNuevaPassword: z.string().min(6),
|
|
13
|
+
});
|
|
@@ -4,23 +4,14 @@ import { UserRole } from "../../enum/User/Role";
|
|
|
4
4
|
import { UserStatus } from "../../enum/User/Status";
|
|
5
5
|
export interface UserDTO {
|
|
6
6
|
id: string;
|
|
7
|
-
idOperador: string | null;
|
|
8
|
-
name: string;
|
|
9
7
|
email: string;
|
|
8
|
+
name: string;
|
|
9
|
+
nombre: string | undefined | null;
|
|
10
10
|
imagen: string;
|
|
11
11
|
status: UserStatus;
|
|
12
12
|
role: UserRole[];
|
|
13
13
|
provider: AuthProvider;
|
|
14
14
|
createdAt?: Date;
|
|
15
|
-
stats: {
|
|
16
|
-
lugaresAgregados: number;
|
|
17
|
-
lugaresRevisados: number;
|
|
18
|
-
lugaresVerificados: number;
|
|
19
|
-
};
|
|
20
|
-
equipos: string[];
|
|
21
|
-
nombre: string | undefined | null;
|
|
22
|
-
telefono: string | undefined | null;
|
|
23
15
|
posicion: Posicion | undefined | null;
|
|
24
16
|
ciudad: string | undefined | null;
|
|
25
|
-
ciudadActual: string | undefined | null;
|
|
26
17
|
}
|
package/dist/types/User/index.js
CHANGED