data-validation-proximity 1.3.7 → 1.3.9
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 +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -334,7 +334,7 @@ const itemSchema = joi.object({
|
|
|
334
334
|
productId: joi.string().required(),
|
|
335
335
|
quantity: joi.number().min(1),
|
|
336
336
|
variantId: joi.string().required(),
|
|
337
|
-
offerId: joi.string().required(),
|
|
337
|
+
offerId: joi.string().required().allow(null),
|
|
338
338
|
});
|
|
339
339
|
|
|
340
340
|
exports.itemSchemaValidation = createValidationMiddleware(itemSchema);
|
|
@@ -478,6 +478,7 @@ const updateProductSchema = joi.object({
|
|
|
478
478
|
subCategoryId: joi.string(),
|
|
479
479
|
subcategory: joi.string().min(3).optional(),
|
|
480
480
|
rayonId: joi.string(),
|
|
481
|
+
subRayonId: joi.string().allow('').allow(null),
|
|
481
482
|
variants: joi.array().items(variantSchema),
|
|
482
483
|
policy: policySchema,
|
|
483
484
|
discountType: joi.string(),
|
|
@@ -505,6 +506,7 @@ const createProductSchema = joi.object({
|
|
|
505
506
|
subcategory: joi.string().min(3).optional(),
|
|
506
507
|
categoryId: joi.string().allow(''),
|
|
507
508
|
rayonId: joi.string().allow(''),
|
|
509
|
+
subRayonId: joi.string().allow('').allow(null),
|
|
508
510
|
storeId: joi.string().required(),
|
|
509
511
|
variants: joi.array().items(createVariantSchema),
|
|
510
512
|
policy: policySchema,
|