vr-commons 1.0.28 → 1.0.29

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.
@@ -30,7 +30,7 @@ export declare const riderLoginSchema: z.ZodObject<{
30
30
  query?: {} | undefined;
31
31
  headers?: {} | undefined;
32
32
  }>;
33
- export declare const passengerLoginSchema: z.ZodObject<{
33
+ export declare const userLoginSchema: z.ZodObject<{
34
34
  body: z.ZodObject<{
35
35
  email: z.ZodString;
36
36
  password: z.ZodString;
@@ -52,7 +52,7 @@ export declare const passengerLoginSchema: z.ZodObject<{
52
52
  password: string;
53
53
  };
54
54
  }>;
55
- export declare const passengerForgotSchema: z.ZodObject<{
55
+ export declare const forgotPasswordSchema: z.ZodObject<{
56
56
  body: z.ZodObject<{
57
57
  email: z.ZodString;
58
58
  }, "strip", z.ZodTypeAny, {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.passengerForgotSchema = exports.passengerLoginSchema = exports.riderLoginSchema = void 0;
3
+ exports.forgotPasswordSchema = exports.userLoginSchema = exports.riderLoginSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.riderLoginSchema = zod_1.z.object({
6
6
  body: zod_1.z.object({
@@ -15,13 +15,13 @@ exports.riderLoginSchema = zod_1.z.object({
15
15
  params: zod_1.z.object({}).optional(),
16
16
  headers: zod_1.z.object({}).optional(),
17
17
  });
18
- exports.passengerLoginSchema = zod_1.z.object({
18
+ exports.userLoginSchema = zod_1.z.object({
19
19
  body: zod_1.z.object({
20
20
  email: zod_1.z.string().email(),
21
21
  password: zod_1.z.string().min(6),
22
22
  }),
23
23
  });
24
- exports.passengerForgotSchema = zod_1.z.object({
24
+ exports.forgotPasswordSchema = zod_1.z.object({
25
25
  body: zod_1.z.object({
26
26
  email: zod_1.z.string().email(),
27
27
  }),
@@ -1,3 +1,3 @@
1
1
  export { validate } from "./validate.validations";
2
- export { riderLoginSchema, passengerForgotSchema, passengerLoginSchema, } from "./auth.validations";
2
+ export { riderLoginSchema, forgotPasswordSchema, userLoginSchema, } from "./auth.validations";
3
3
  export { createUserSchema, getUserByIdSchema, updateUserProfileSchema, getAllUsersSchema, viewProfileSchema, passengerSignupSchema, updatePassengerProfileSchema, getRiderProfileSchema, changePasswordSchema, deactivateAccountSchema, deleteAccountSchema, } from "./profiles.validations";
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteAccountSchema = exports.deactivateAccountSchema = exports.changePasswordSchema = exports.getRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.passengerLoginSchema = exports.passengerForgotSchema = exports.riderLoginSchema = exports.validate = void 0;
3
+ exports.deleteAccountSchema = exports.deactivateAccountSchema = exports.changePasswordSchema = exports.getRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
4
4
  var validate_validations_1 = require("./validate.validations");
5
5
  Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return validate_validations_1.validate; } });
6
6
  var auth_validations_1 = require("./auth.validations");
7
7
  Object.defineProperty(exports, "riderLoginSchema", { enumerable: true, get: function () { return auth_validations_1.riderLoginSchema; } });
8
- Object.defineProperty(exports, "passengerForgotSchema", { enumerable: true, get: function () { return auth_validations_1.passengerForgotSchema; } });
9
- Object.defineProperty(exports, "passengerLoginSchema", { enumerable: true, get: function () { return auth_validations_1.passengerLoginSchema; } });
8
+ Object.defineProperty(exports, "forgotPasswordSchema", { enumerable: true, get: function () { return auth_validations_1.forgotPasswordSchema; } });
9
+ Object.defineProperty(exports, "userLoginSchema", { enumerable: true, get: function () { return auth_validations_1.userLoginSchema; } });
10
10
  var profiles_validations_1 = require("./profiles.validations");
11
11
  // Admin/Super Admin Schemas
12
12
  Object.defineProperty(exports, "createUserSchema", { enumerable: true, get: function () { return profiles_validations_1.createUserSchema; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",