data-validation-proximity 1.4.6 → 1.4.8

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -266,8 +266,9 @@ const userSchema = joi.object({
266
266
  otherwise: joi.forbidden()
267
267
  }),
268
268
  preferredLanguage: joi.string().valid('en', 'fr', 'ar').optional(),
269
- companyName: joi.string().optional(),
269
+ companyName: Joi.string().allow(null).optional(),
270
270
  currency: joi.string().optional(),
271
+ mobilePaymentManager: joi.boolean().allow(null).optional(),
271
272
  });
272
273
 
273
274
  exports.userSchemaValidation = createValidationMiddleware(userSchema);
@@ -339,7 +340,7 @@ const updateSchema = joi.object({
339
340
  password_confirmation: joi.string().min(6),
340
341
  username: joi.string().min(5),
341
342
  phone: joi.string().min(10),
342
- companyName: joi.string().optional(),
343
+ companyName: Joi.string().allow(null).optional(),
343
344
  profileImage: joi.string().min(3).max(200),
344
345
  adresse: addressSchema,
345
346
  policy: policySchema,
@@ -349,7 +350,6 @@ const updateSchema = joi.object({
349
350
  .allow(null)
350
351
  .optional(),
351
352
  discountCode: joi.string().min(3),
352
- companyName: joi.string().min(3),
353
353
  shippingAdress: joi.object({
354
354
  latitude: joi.number(),
355
355
  longitude: joi.number(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",