data-validation-proximity 1.4.8 → 1.4.10
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.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -266,9 +266,10 @@ const userSchema = joi.object({
|
|
|
266
266
|
otherwise: joi.forbidden()
|
|
267
267
|
}),
|
|
268
268
|
preferredLanguage: joi.string().valid('en', 'fr', 'ar').optional(),
|
|
269
|
-
companyName:
|
|
269
|
+
companyName: joi.string().allow(null).optional(),
|
|
270
270
|
currency: joi.string().optional(),
|
|
271
271
|
mobilePaymentManager: joi.boolean().allow(null).optional(),
|
|
272
|
+
platform: joi.string().allow(null).optional(),
|
|
272
273
|
});
|
|
273
274
|
|
|
274
275
|
exports.userSchemaValidation = createValidationMiddleware(userSchema);
|
|
@@ -313,6 +314,7 @@ const userLoginSchema = joi.object({
|
|
|
313
314
|
then: joi.required(),
|
|
314
315
|
otherwise: joi.forbidden()
|
|
315
316
|
}),
|
|
317
|
+
platform: joi.string().allow(null).optional(),
|
|
316
318
|
});
|
|
317
319
|
|
|
318
320
|
exports.userLoginSchemaValidation = createValidationMiddleware(userLoginSchema);
|
|
@@ -340,7 +342,7 @@ const updateSchema = joi.object({
|
|
|
340
342
|
password_confirmation: joi.string().min(6),
|
|
341
343
|
username: joi.string().min(5),
|
|
342
344
|
phone: joi.string().min(10),
|
|
343
|
-
companyName:
|
|
345
|
+
companyName: joi.string().allow(null).optional(),
|
|
344
346
|
profileImage: joi.string().min(3).max(200),
|
|
345
347
|
adresse: addressSchema,
|
|
346
348
|
policy: policySchema,
|