futbol-in-core 1.0.28 → 1.0.30

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.
@@ -5,3 +5,20 @@ export declare const registerSchema: z.ZodObject<{
5
5
  password: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  export type RegisterBody = z.infer<typeof registerSchema>;
8
+ export declare const verifyEmailSchema: z.ZodObject<{
9
+ email: z.ZodEmail;
10
+ code: z.ZodString;
11
+ }, z.core.$strip>;
12
+ export type VerifyEmailBody = z.infer<typeof verifyEmailSchema>;
13
+ export declare const resendCodeSchema: z.ZodObject<{
14
+ email: z.ZodEmail;
15
+ }, z.core.$strip>;
16
+ export type ResendCodeBody = z.infer<typeof resendCodeSchema>;
17
+ export declare const googleSignInSchema: z.ZodObject<{
18
+ idToken: z.ZodString;
19
+ }, z.core.$strip>;
20
+ export type GoogleSignInBody = z.infer<typeof googleSignInSchema>;
21
+ export declare const setUsernameSchema: z.ZodObject<{
22
+ username: z.ZodString;
23
+ }, z.core.$strip>;
24
+ export type SetUsernameBody = z.infer<typeof setUsernameSchema>;
@@ -6,3 +6,17 @@ export const registerSchema = z.object({
6
6
  .string("El campo 'contraseña' es requerido.")
7
7
  .min(6, "La contraseña debe tener al menos 6 caracteres"),
8
8
  });
9
+ export const verifyEmailSchema = z.object({
10
+ email: z.email("Email inválido"),
11
+ code: z.string("Código inválido")
12
+ });
13
+ export const resendCodeSchema = z.object({
14
+ email: z.email("Email inválido"),
15
+ });
16
+ // futbol-in-core/schemas
17
+ export const googleSignInSchema = z.object({
18
+ idToken: z.string().min(10),
19
+ });
20
+ export const setUsernameSchema = z.object({
21
+ username: z.string().min(3).max(20),
22
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "futbol-in-core",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",