@timardex/cluemart-shared 1.3.29 → 1.3.31
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/dist/hooks/index.cjs +16 -12
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +16 -12
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +16 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +16 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -700,26 +700,30 @@ var testerVendorSchema = yup6.object().shape({
|
|
|
700
700
|
productsOrServices: yup6.string().trim().required("Products or services description is required"),
|
|
701
701
|
questionary: yup6.object().shape({
|
|
702
702
|
appearInVideoIntroduction: yup6.boolean().optional(),
|
|
703
|
-
applyToAtLeastOneMarket: yup6.boolean().
|
|
704
|
-
completeFeedbackQuestionnaire: yup6.boolean().
|
|
703
|
+
applyToAtLeastOneMarket: yup6.boolean().oneOf([true], "This field is required"),
|
|
704
|
+
completeFeedbackQuestionnaire: yup6.boolean().oneOf([true], "This field is required"),
|
|
705
705
|
excitementAboutApp: yup6.string().trim().optional(),
|
|
706
706
|
sendPhotoForSocialMedia: yup6.boolean().optional(),
|
|
707
707
|
socialMediaFeatureReason: yup6.string().trim().optional(),
|
|
708
708
|
testingPeriodConcerns: yup6.string().trim().optional(),
|
|
709
|
-
tryVisitorFeatures: yup6.boolean().
|
|
710
|
-
uploadStallProfileFirstWeek: yup6.boolean().
|
|
709
|
+
tryVisitorFeatures: yup6.boolean().oneOf([true], "This field is required"),
|
|
710
|
+
uploadStallProfileFirstWeek: yup6.boolean().oneOf([true], "This field is required"),
|
|
711
711
|
usefulnessExpectations: yup6.string().trim().optional()
|
|
712
712
|
}),
|
|
713
713
|
sellingFrequency: yup6.mixed().oneOf(
|
|
714
714
|
Object.values(VendorSellingFrequency),
|
|
715
715
|
"Please select a valid selling frequency"
|
|
716
716
|
).required("Required field"),
|
|
717
|
-
yearlySellingApprox: yup6.number().
|
|
717
|
+
yearlySellingApprox: yup6.number().transform(
|
|
718
|
+
(value, originalValue) => originalValue === "" ? void 0 : value
|
|
719
|
+
).label("Yearly Selling Approx").min(1, "Yearly selling approximate must be at least 1").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
|
|
718
720
|
});
|
|
719
721
|
var testerEventSchema = yup6.object().shape({
|
|
720
722
|
markets: yup6.array().of(
|
|
721
723
|
yup6.object().shape({
|
|
722
|
-
averageStallCount: yup6.number().
|
|
724
|
+
averageStallCount: yup6.number().transform(
|
|
725
|
+
(value, originalValue) => originalValue === "" ? void 0 : value
|
|
726
|
+
).label("Average Stall Count").min(1, "Average stall count must be at least 1").integer("Average stall count must be a whole number").required("Average stall count is required").test("no-leading-zeros", "", noLeadingZeros("Average stall count")),
|
|
723
727
|
cityOrVenue: yup6.string().trim().required("City or venue is required"),
|
|
724
728
|
frequency: yup6.mixed().oneOf(
|
|
725
729
|
Object.values(OrganizerMarketFrequency),
|
|
@@ -734,15 +738,15 @@ var testerEventSchema = yup6.object().shape({
|
|
|
734
738
|
).required("Organized market count is required"),
|
|
735
739
|
questionary: yup6.object().shape({
|
|
736
740
|
allowMarketingAppearance: yup6.boolean().optional(),
|
|
737
|
-
completeFinalQuestionnaire: yup6.boolean().
|
|
738
|
-
completeMarketProfileFirstWeek: yup6.boolean().
|
|
741
|
+
completeFinalQuestionnaire: yup6.boolean().oneOf([true], "This field is required"),
|
|
742
|
+
completeMarketProfileFirstWeek: yup6.boolean().oneOf([true], "This field is required"),
|
|
739
743
|
dailyCoordinationNeeds: yup6.string().trim().optional(),
|
|
740
744
|
interestedInCharityInitiative: yup6.boolean().optional(),
|
|
741
|
-
inviteStallholders: yup6.boolean().
|
|
742
|
-
manageApplicationsAndCommunication: yup6.boolean().
|
|
745
|
+
inviteStallholders: yup6.boolean().oneOf([true], "This field is required"),
|
|
746
|
+
manageApplicationsAndCommunication: yup6.boolean().oneOf([true], "This field is required"),
|
|
743
747
|
organizerExpectations: yup6.string().trim().optional(),
|
|
744
|
-
spaceForClueMart: yup6.boolean().
|
|
745
|
-
uploadStallList: yup6.boolean().
|
|
748
|
+
spaceForClueMart: yup6.boolean().oneOf([true], "This field is required"),
|
|
749
|
+
uploadStallList: yup6.boolean().oneOf([true], "This field is required")
|
|
746
750
|
})
|
|
747
751
|
});
|
|
748
752
|
var testerSchema = yup6.object().shape({
|