vr-commons 1.0.27 → 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
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
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.
|
|
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, "
|
|
9
|
-
Object.defineProperty(exports, "
|
|
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,29 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vr-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "Shared functions package",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist/**/*"
|
|
9
|
-
],
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
10
7
|
"exports": {
|
|
11
|
-
"
|
|
12
|
-
"types": "./dist/
|
|
13
|
-
"require": "./dist/
|
|
14
|
-
"import": "./dist/
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./utils": {
|
|
15
|
+
"types": "./dist/utils/index.d.ts",
|
|
16
|
+
"require": "./dist/utils/index.js",
|
|
17
|
+
"import": "./dist/utils/index.js"
|
|
15
18
|
},
|
|
16
19
|
"./validations": {
|
|
17
20
|
"types": "./dist/validations/index.d.ts",
|
|
18
21
|
"require": "./dist/validations/index.js",
|
|
19
22
|
"import": "./dist/validations/index.js"
|
|
20
23
|
},
|
|
21
|
-
"./
|
|
22
|
-
"types": "./dist/
|
|
23
|
-
"require": "./dist/
|
|
24
|
-
"import": "./dist/
|
|
25
|
-
}
|
|
24
|
+
"./middlewares": {
|
|
25
|
+
"types": "./dist/middlewares/index.d.ts",
|
|
26
|
+
"require": "./dist/middlewares/index.js",
|
|
27
|
+
"import": "./dist/middlewares/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./package.json": "./package.json"
|
|
26
30
|
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"!dist/**/*.test.js",
|
|
34
|
+
"!dist/**/*.spec.js"
|
|
35
|
+
],
|
|
27
36
|
"scripts": {
|
|
28
37
|
"clean": "rimraf dist && rimraf tsconfig.tsbuildinfo",
|
|
29
38
|
"build": "tsc",
|