vr-commons 1.0.68 → 1.0.69
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.
|
@@ -13,7 +13,6 @@ exports.updateProfileSchema = zod_1.z.object({
|
|
|
13
13
|
.string()
|
|
14
14
|
.regex(plateRegex, "Invalid plate number")
|
|
15
15
|
.optional(),
|
|
16
|
-
// Note: jacketId and nationalId are admin-only, not here
|
|
17
16
|
}),
|
|
18
17
|
});
|
|
19
18
|
exports.requestPhoneChangeSchema = zod_1.z.object({
|
|
@@ -21,10 +20,11 @@ exports.requestPhoneChangeSchema = zod_1.z.object({
|
|
|
21
20
|
newPhoneNumber: zod_1.z.string().regex(phoneRegex, "Invalid phone number format"),
|
|
22
21
|
}),
|
|
23
22
|
});
|
|
23
|
+
// Updated validation schema
|
|
24
24
|
exports.verifyPhoneChangeSchema = zod_1.z.object({
|
|
25
25
|
body: zod_1.z.object({
|
|
26
|
-
oldPhoneOtp: zod_1.z.string().length(6, "OTP must be 6 digits"),
|
|
27
|
-
newPhoneOtp: zod_1.z.string().length(6, "OTP must be 6 digits"),
|
|
26
|
+
oldPhoneOtp: zod_1.z.string().length(6, "Old phone OTP must be 6 digits"),
|
|
27
|
+
newPhoneOtp: zod_1.z.string().length(6, "New phone OTP must be 6 digits"),
|
|
28
28
|
}),
|
|
29
29
|
});
|
|
30
30
|
exports.deleteAccountSchema = zod_1.z.object({
|