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
- newContacValue: z.ZodString;
70
+ newContactValue: z.ZodString;
71
71
  }, "strip", z.ZodTypeAny, {
72
- newContacValue: string;
72
+ newContactValue: string;
73
73
  }, {
74
- newContacValue: string;
74
+ newContactValue: string;
75
75
  }>;
76
76
  }, "strip", z.ZodTypeAny, {
77
77
  body: {
78
- newContacValue: string;
78
+ newContactValue: string;
79
79
  };
80
80
  }, {
81
81
  body: {
82
- newContacValue: string;
82
+ newContactValue: string;
83
83
  };
84
84
  }>;
85
85
  export declare const verifyPhoneChangeSchema: z.ZodObject<{
86
86
  body: z.ZodObject<{
87
- oldPhoneOtp: z.ZodString;
88
- newPhoneOtp: z.ZodString;
87
+ oldContactOtp: z.ZodString;
88
+ newContactOtp: z.ZodString;
89
89
  }, "strip", z.ZodTypeAny, {
90
- oldPhoneOtp: string;
91
- newPhoneOtp: string;
90
+ oldContactOtp: string;
91
+ newContactOtp: string;
92
92
  }, {
93
- oldPhoneOtp: string;
94
- newPhoneOtp: string;
93
+ oldContactOtp: string;
94
+ newContactOtp: string;
95
95
  }>;
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  body: {
98
- oldPhoneOtp: string;
99
- newPhoneOtp: string;
98
+ oldContactOtp: string;
99
+ newContactOtp: string;
100
100
  };
101
101
  }, {
102
102
  body: {
103
- oldPhoneOtp: string;
104
- newPhoneOtp: string;
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
- newContacValue: zod_1.z
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
- oldPhoneOtp: zod_1.z.string().length(6, "Old phone OTP must be 6 digits"),
73
- newPhoneOtp: zod_1.z.string().length(6, "New phone OTP must be 6 digits"),
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.121",
3
+ "version": "1.0.123",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",