@timardex/cluemart-shared 1.2.90 → 1.2.92
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/{ad-CIaDLRVX.d.ts → ad-Dz2H7DBc.d.ts} +13 -11
- package/dist/{ad-ClzcYPuT.d.mts → ad-lpA7ovDO.d.mts} +13 -11
- package/dist/{chunk-66MS2SVX.mjs → chunk-HDGKA6GS.mjs} +1 -1
- package/dist/chunk-HDGKA6GS.mjs.map +1 -0
- package/dist/graphql/index.cjs +10 -8
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +10 -8
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +16 -14
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +17 -15
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +26 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -11
- package/dist/index.d.ts +13 -11
- package/dist/index.mjs +26 -22
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-66MS2SVX.mjs.map +0 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -689,7 +689,7 @@ var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
|
|
|
689
689
|
|
|
690
690
|
// src/yupSchema/tester.ts
|
|
691
691
|
var testerVendorSchema = yup6.object().shape({
|
|
692
|
-
categories: categorySchema,
|
|
692
|
+
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
693
693
|
marketsAttended: yup6.array().of(
|
|
694
694
|
yup6.object().shape({
|
|
695
695
|
city: yup6.string().trim().required("City is required"),
|
|
@@ -699,29 +699,23 @@ var testerVendorSchema = yup6.object().shape({
|
|
|
699
699
|
productsOrServices: yup6.string().trim().required("Products or services description is required"),
|
|
700
700
|
questionary: yup6.object().shape({
|
|
701
701
|
appearInVideoIntroduction: yup6.boolean().optional(),
|
|
702
|
-
applyToAtLeastOneMarket: yup6.boolean().required("
|
|
703
|
-
completeFeedbackQuestionnaire: yup6.boolean().required("
|
|
702
|
+
applyToAtLeastOneMarket: yup6.boolean().required("Required field"),
|
|
703
|
+
completeFeedbackQuestionnaire: yup6.boolean().required("Required field"),
|
|
704
704
|
excitementAboutApp: yup6.string().trim().optional(),
|
|
705
705
|
sendPhotoForSocialMedia: yup6.boolean().optional(),
|
|
706
706
|
socialMediaFeatureReason: yup6.string().trim().optional(),
|
|
707
707
|
testingPeriodConcerns: yup6.string().trim().optional(),
|
|
708
|
-
tryVisitorFeatures: yup6.boolean().required("
|
|
709
|
-
uploadStallProfileFirstWeek: yup6.boolean().required("
|
|
708
|
+
tryVisitorFeatures: yup6.boolean().required("Required field"),
|
|
709
|
+
uploadStallProfileFirstWeek: yup6.boolean().required("Required field"),
|
|
710
710
|
usefulnessExpectations: yup6.string().trim().optional()
|
|
711
711
|
}),
|
|
712
712
|
sellingFrequency: yup6.mixed().oneOf(
|
|
713
713
|
Object.values(VendorSellingFrequency),
|
|
714
714
|
"Please select a valid selling frequency"
|
|
715
|
-
).required("
|
|
715
|
+
).required("Required field"),
|
|
716
716
|
yearlySellingApprox: yup6.number().label("Yearly Selling Approx").min(0, "Yearly selling approximate must be at least 0").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
|
|
717
717
|
});
|
|
718
718
|
var testerEventSchema = yup6.object().shape({
|
|
719
|
-
allowMarketingAppearance: yup6.boolean().required("Allow marketing appearance is required"),
|
|
720
|
-
completeFinalQuestionnaire: yup6.boolean().required("Complete final questionnaire commitment is required"),
|
|
721
|
-
dailyCoordinationNeeds: yup6.string().trim().required("Daily coordination needs is required"),
|
|
722
|
-
interestedInCharityInitiative: yup6.boolean().required("Interest in charity initiative is required"),
|
|
723
|
-
inviteAtLeastFiveStallholders: yup6.boolean().required("Invite at least five stallholders commitment is required"),
|
|
724
|
-
manageApplicationsAndCommunication: yup6.boolean().required("Manage applications and communication commitment is required"),
|
|
725
719
|
markets: yup6.array().of(
|
|
726
720
|
yup6.object().shape({
|
|
727
721
|
averageStallCount: yup6.number().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")),
|
|
@@ -737,8 +731,16 @@ var testerEventSchema = yup6.object().shape({
|
|
|
737
731
|
Object.values(OrganizedMarketCount),
|
|
738
732
|
"Please select a valid market count"
|
|
739
733
|
).required("Organized market count is required"),
|
|
740
|
-
|
|
741
|
-
|
|
734
|
+
questionary: yup6.object().shape({
|
|
735
|
+
allowMarketingAppearance: yup6.boolean().optional(),
|
|
736
|
+
completeFinalQuestionnaire: yup6.boolean().required("Required field"),
|
|
737
|
+
dailyCoordinationNeeds: yup6.string().trim().optional(),
|
|
738
|
+
interestedInCharityInitiative: yup6.boolean().optional(),
|
|
739
|
+
inviteAtLeastFiveStallholders: yup6.boolean().required("Required field"),
|
|
740
|
+
manageApplicationsAndCommunication: yup6.boolean().required("Required field"),
|
|
741
|
+
organizerExpectations: yup6.string().trim().optional(),
|
|
742
|
+
registerMarketsFirstWeek: yup6.boolean().required("Required field")
|
|
743
|
+
})
|
|
742
744
|
});
|
|
743
745
|
var testerSchema = yup6.object().shape({
|
|
744
746
|
businessName: yup6.string().required("Business name is required"),
|