vr-commons 1.0.120 → 1.0.122

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,19 +67,19 @@ export declare const changeEmailSchema: z.ZodObject<{
67
67
  }>;
68
68
  export declare const requestPhoneChangeSchema: z.ZodObject<{
69
69
  body: z.ZodObject<{
70
- newPhoneNumber: z.ZodString;
70
+ newContactValue: z.ZodString;
71
71
  }, "strip", z.ZodTypeAny, {
72
- newPhoneNumber: string;
72
+ newContactValue: string;
73
73
  }, {
74
- newPhoneNumber: string;
74
+ newContactValue: string;
75
75
  }>;
76
76
  }, "strip", z.ZodTypeAny, {
77
77
  body: {
78
- newPhoneNumber: string;
78
+ newContactValue: string;
79
79
  };
80
80
  }, {
81
81
  body: {
82
- newPhoneNumber: string;
82
+ newContactValue: string;
83
83
  };
84
84
  }>;
85
85
  export declare const verifyPhoneChangeSchema: z.ZodObject<{
@@ -260,21 +260,21 @@ export declare const loginSchema: z.ZodObject<{
260
260
  contactValue: z.ZodEffects<z.ZodString, string, string>;
261
261
  password: z.ZodString;
262
262
  }, "strip", z.ZodTypeAny, {
263
- password: string;
264
263
  contactValue: string;
265
- }, {
266
264
  password: string;
265
+ }, {
267
266
  contactValue: string;
267
+ password: string;
268
268
  }>;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  body: {
271
- password: string;
272
271
  contactValue: string;
272
+ password: string;
273
273
  };
274
274
  }, {
275
275
  body: {
276
- password: string;
277
276
  contactValue: string;
277
+ password: string;
278
278
  };
279
279
  }>;
280
280
  export declare const forgotPasswordSchema: 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
- newPhoneNumber: 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
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-commons",
3
- "version": "1.0.120",
3
+ "version": "1.0.122",
4
4
  "description": "Shared functions package",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",