vr-commons 1.0.121 → 1.0.123
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.
|
@@ -67,41 +67,41 @@ export declare const changeEmailSchema: z.ZodObject<{
|
|
|
67
67
|
}>;
|
|
68
68
|
export declare const requestPhoneChangeSchema: z.ZodObject<{
|
|
69
69
|
body: z.ZodObject<{
|
|
70
|
-
|
|
70
|
+
newContactValue: z.ZodString;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
|
|
72
|
+
newContactValue: string;
|
|
73
73
|
}, {
|
|
74
|
-
|
|
74
|
+
newContactValue: string;
|
|
75
75
|
}>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
body: {
|
|
78
|
-
|
|
78
|
+
newContactValue: string;
|
|
79
79
|
};
|
|
80
80
|
}, {
|
|
81
81
|
body: {
|
|
82
|
-
|
|
82
|
+
newContactValue: string;
|
|
83
83
|
};
|
|
84
84
|
}>;
|
|
85
85
|
export declare const verifyPhoneChangeSchema: z.ZodObject<{
|
|
86
86
|
body: z.ZodObject<{
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
oldContactOtp: z.ZodString;
|
|
88
|
+
newContactOtp: z.ZodString;
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
oldContactOtp: string;
|
|
91
|
+
newContactOtp: string;
|
|
92
92
|
}, {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
oldContactOtp: string;
|
|
94
|
+
newContactOtp: string;
|
|
95
95
|
}>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
body: {
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
oldContactOtp: string;
|
|
99
|
+
newContactOtp: string;
|
|
100
100
|
};
|
|
101
101
|
}, {
|
|
102
102
|
body: {
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
oldContactOtp: string;
|
|
104
|
+
newContactOtp: string;
|
|
105
105
|
};
|
|
106
106
|
}>;
|
|
107
107
|
export declare const verifyEmailChangeSchema: z.ZodObject<{
|
|
@@ -61,7 +61,7 @@ exports.changeEmailSchema = zod_1.z.object({
|
|
|
61
61
|
// Schema for changing phone number specifically
|
|
62
62
|
exports.requestPhoneChangeSchema = zod_1.z.object({
|
|
63
63
|
body: zod_1.z.object({
|
|
64
|
-
|
|
64
|
+
newContactValue: zod_1.z
|
|
65
65
|
.string()
|
|
66
66
|
.regex(exports.phoneRegex, "Invalid phone number format. Must be a valid Rwandan phone number (+250...)"),
|
|
67
67
|
}),
|
|
@@ -69,8 +69,8 @@ exports.requestPhoneChangeSchema = zod_1.z.object({
|
|
|
69
69
|
// Schema for verifying phone change with OTP
|
|
70
70
|
exports.verifyPhoneChangeSchema = zod_1.z.object({
|
|
71
71
|
body: zod_1.z.object({
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
oldContactOtp: zod_1.z.string().length(6, "Old contact OTP must be 6 digits"),
|
|
73
|
+
newContactOtp: zod_1.z.string().length(6, "New contact OTP must be 6 digits"),
|
|
74
74
|
}),
|
|
75
75
|
});
|
|
76
76
|
// Schema for verifying email change with OTP
|