data-validation-proximity 1.4.5 → 1.4.7
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 +9 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -268,6 +268,7 @@ const userSchema = joi.object({
|
|
|
268
268
|
preferredLanguage: joi.string().valid('en', 'fr', 'ar').optional(),
|
|
269
269
|
companyName: joi.string().optional(),
|
|
270
270
|
currency: joi.string().optional(),
|
|
271
|
+
mobilePaymentManager: joi.boolean().allow(null).optional(),
|
|
271
272
|
});
|
|
272
273
|
|
|
273
274
|
exports.userSchemaValidation = createValidationMiddleware(userSchema);
|
|
@@ -646,6 +647,7 @@ const schemaStore = joi.object({
|
|
|
646
647
|
latitude: joi.number().allow(null),
|
|
647
648
|
longitude: joi.number().allow(null),
|
|
648
649
|
_id: joi.string().allow(null),
|
|
650
|
+
id: joi.string().allow(null),
|
|
649
651
|
})
|
|
650
652
|
)
|
|
651
653
|
.allow(null),
|
|
@@ -660,6 +662,7 @@ const schemaStore = joi.object({
|
|
|
660
662
|
latitude: joi.number().allow(null),
|
|
661
663
|
longitude: joi.number().allow(null),
|
|
662
664
|
_id: joi.string().allow(null),
|
|
665
|
+
id: joi.string().allow(null),
|
|
663
666
|
})
|
|
664
667
|
)
|
|
665
668
|
.allow(null),
|
|
@@ -680,6 +683,7 @@ const schemaStore = joi.object({
|
|
|
680
683
|
title: joi.string().allow('').allow(null),
|
|
681
684
|
link: joi.string().allow('').allow(null),
|
|
682
685
|
_id: joi.string().allow(null),
|
|
686
|
+
id: joi.string().allow(null),
|
|
683
687
|
})
|
|
684
688
|
)
|
|
685
689
|
.allow(null),
|
|
@@ -692,6 +696,7 @@ const schemaStore = joi.object({
|
|
|
692
696
|
latitude: joi.number().allow(null),
|
|
693
697
|
longitude: joi.number().allow(null),
|
|
694
698
|
_id: joi.string().allow(null),
|
|
699
|
+
id: joi.string().allow(null),
|
|
695
700
|
})
|
|
696
701
|
)
|
|
697
702
|
.allow(null),
|
|
@@ -761,6 +766,7 @@ const schemaUpdateStore = joi.object({
|
|
|
761
766
|
latitude: joi.number().allow(null),
|
|
762
767
|
longitude: joi.number().allow(null),
|
|
763
768
|
_id: joi.string().allow(null),
|
|
769
|
+
id: joi.string().allow(null),
|
|
764
770
|
})
|
|
765
771
|
)
|
|
766
772
|
.allow(null),
|
|
@@ -775,6 +781,7 @@ const schemaUpdateStore = joi.object({
|
|
|
775
781
|
latitude: joi.number().allow(null),
|
|
776
782
|
longitude: joi.number().allow(null),
|
|
777
783
|
_id: joi.string().allow(null),
|
|
784
|
+
id: joi.string().allow(null),
|
|
778
785
|
})
|
|
779
786
|
)
|
|
780
787
|
.allow(null),
|
|
@@ -795,6 +802,7 @@ const schemaUpdateStore = joi.object({
|
|
|
795
802
|
title: joi.string().allow('').allow(null),
|
|
796
803
|
link: joi.string().allow('').allow(null),
|
|
797
804
|
_id: joi.string().allow(null),
|
|
805
|
+
id: joi.string().allow(null),
|
|
798
806
|
})
|
|
799
807
|
)
|
|
800
808
|
.allow(null),
|
|
@@ -807,6 +815,7 @@ const schemaUpdateStore = joi.object({
|
|
|
807
815
|
latitude: joi.number().allow(null),
|
|
808
816
|
longitude: joi.number().allow(null),
|
|
809
817
|
_id: joi.string().allow(null),
|
|
818
|
+
id: joi.string().allow(null),
|
|
810
819
|
})
|
|
811
820
|
)
|
|
812
821
|
.allow(null),
|