zs-phone-common 1.0.3 → 1.0.5

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.
@@ -6,7 +6,7 @@ export declare const signupSchema: z.ZodObject<{
6
6
  password: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  export declare const loginSchema: z.ZodObject<{
9
- email: z.ZodString;
9
+ email: z.ZodEmail;
10
10
  password: z.ZodString;
11
11
  }, z.core.$strip>;
12
12
  export declare const forgotPasswordSchema: z.ZodObject<{
@@ -7,13 +7,13 @@ exports.resendOtpSchema = exports.verifyOtpSchema = exports.resetPasswordSchema
7
7
  const v4_1 = __importDefault(require("zod/v4"));
8
8
  const EmailJobType = ["verification-email", "forgot-password-email"];
9
9
  exports.signupSchema = v4_1.default.object({
10
- name: v4_1.default.string(),
11
- email: v4_1.default.email("Not a valid email"),
10
+ name: v4_1.default.string("Name cannot be empty"),
11
+ email: v4_1.default.email("Enter a valid email address"),
12
12
  password: v4_1.default.string().min(6, "Password should be greater than 6 characters")
13
13
  });
14
14
  exports.loginSchema = v4_1.default.object({
15
- email: v4_1.default.string(),
16
- password: v4_1.default.string()
15
+ email: v4_1.default.email("Please enter a valid email address"),
16
+ password: v4_1.default.string().min(1, "Password is required")
17
17
  });
18
18
  exports.forgotPasswordSchema = v4_1.default.object({
19
19
  email: v4_1.default.email("Not a valid email")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zs-phone-common",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {