vr-commons 1.0.50 → 1.0.51
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.
|
@@ -18,16 +18,16 @@ export declare const riderLoginSchema: z.ZodObject<{
|
|
|
18
18
|
phoneNumber: string;
|
|
19
19
|
nationalId: string;
|
|
20
20
|
};
|
|
21
|
-
query?: {} | undefined;
|
|
22
21
|
params?: {} | undefined;
|
|
22
|
+
query?: {} | undefined;
|
|
23
23
|
headers?: {} | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
body: {
|
|
26
26
|
phoneNumber: string;
|
|
27
27
|
nationalId: string;
|
|
28
28
|
};
|
|
29
|
-
query?: {} | undefined;
|
|
30
29
|
params?: {} | undefined;
|
|
30
|
+
query?: {} | undefined;
|
|
31
31
|
headers?: {} | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
export declare const userLoginSchema: z.ZodObject<{
|
|
@@ -69,3 +69,20 @@ export declare const forgotPasswordSchema: z.ZodObject<{
|
|
|
69
69
|
email: string;
|
|
70
70
|
};
|
|
71
71
|
}>;
|
|
72
|
+
export declare const refreshTokenSchema: z.ZodObject<{
|
|
73
|
+
body: z.ZodObject<{
|
|
74
|
+
refreshToken: z.ZodString;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
refreshToken: string;
|
|
77
|
+
}, {
|
|
78
|
+
refreshToken: string;
|
|
79
|
+
}>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
body: {
|
|
82
|
+
refreshToken: string;
|
|
83
|
+
};
|
|
84
|
+
}, {
|
|
85
|
+
body: {
|
|
86
|
+
refreshToken: string;
|
|
87
|
+
};
|
|
88
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.forgotPasswordSchema = exports.userLoginSchema = exports.riderLoginSchema = void 0;
|
|
3
|
+
exports.refreshTokenSchema = 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({
|
|
@@ -26,3 +26,8 @@ exports.forgotPasswordSchema = zod_1.z.object({
|
|
|
26
26
|
email: zod_1.z.string().email(),
|
|
27
27
|
}),
|
|
28
28
|
});
|
|
29
|
+
exports.refreshTokenSchema = zod_1.z.object({
|
|
30
|
+
body: zod_1.z.object({
|
|
31
|
+
refreshToken: zod_1.z.string().min(1, "Refresh token is required"),
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { validate } from "./validate.validations";
|
|
2
|
-
export { riderLoginSchema, forgotPasswordSchema, userLoginSchema, } from "./auth.validations";
|
|
2
|
+
export { riderLoginSchema, forgotPasswordSchema, userLoginSchema, refreshTokenSchema, } from "./auth.validations";
|
|
3
3
|
export { createUserSchema, getUserByIdSchema, updateUserProfileSchema, getAllUsersSchema, viewProfileSchema, passengerSignupSchema, updatePassengerProfileSchema, updateRiderProfileSchema, createRiderSchema, changePasswordSchema, deactivateAccountSchema, deleteAccountSchema, } from "./profiles.validations";
|
|
4
4
|
export { listBansSchema, listPendingAppealsSchema, listSuspensionsSchema, reviewAppealSchema, revokeBanSchema, revokeSuspensionSchema, extendSuspensionSchema, exportBansSchema, } from "./moderation.validations";
|
|
5
5
|
export { submitBanAppealSchema, submitSuspensionAppealSchema, } from "./appeals.validations";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createSuspensionSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.createBanSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.exportBansSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.deleteAccountSchema = exports.deactivateAccountSchema = exports.changePasswordSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.userLoginSchema = exports.forgotPasswordSchema = exports.riderLoginSchema = exports.validate = void 0;
|
|
3
|
+
exports.createSuspensionSchema = exports.getUserSuspensionsSchema = exports.getSuspensionSchema = exports.createBanSchema = exports.getUserRestrictionsSchema = exports.getBanSchema = exports.submitSuspensionAppealSchema = exports.submitBanAppealSchema = exports.exportBansSchema = exports.extendSuspensionSchema = exports.revokeSuspensionSchema = exports.revokeBanSchema = exports.reviewAppealSchema = exports.listSuspensionsSchema = exports.listPendingAppealsSchema = exports.listBansSchema = exports.deleteAccountSchema = exports.deactivateAccountSchema = exports.changePasswordSchema = exports.createRiderSchema = exports.updateRiderProfileSchema = exports.updatePassengerProfileSchema = exports.passengerSignupSchema = exports.viewProfileSchema = exports.getAllUsersSchema = exports.updateUserProfileSchema = exports.getUserByIdSchema = exports.createUserSchema = exports.refreshTokenSchema = 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
8
|
Object.defineProperty(exports, "forgotPasswordSchema", { enumerable: true, get: function () { return auth_validations_1.forgotPasswordSchema; } });
|
|
9
9
|
Object.defineProperty(exports, "userLoginSchema", { enumerable: true, get: function () { return auth_validations_1.userLoginSchema; } });
|
|
10
|
+
Object.defineProperty(exports, "refreshTokenSchema", { enumerable: true, get: function () { return auth_validations_1.refreshTokenSchema; } });
|
|
10
11
|
var profiles_validations_1 = require("./profiles.validations");
|
|
11
12
|
// Admin/Super Admin Schema
|
|
12
13
|
Object.defineProperty(exports, "createUserSchema", { enumerable: true, get: function () { return profiles_validations_1.createUserSchema; } });
|