@timardex/cluemart-shared 1.2.90 → 1.2.91

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/index.d.mts CHANGED
@@ -786,11 +786,11 @@ type TesterEvent = {
786
786
  manageApplicationsAndCommunication: boolean;
787
787
  completeFinalQuestionnaire: boolean;
788
788
  /** Promotion Support */
789
- allowMarketingAppearance: boolean;
789
+ allowMarketingAppearance?: boolean;
790
790
  /** Open Questions */
791
- organizerExpectations: string;
792
- dailyCoordinationNeeds: string;
793
- interestedInCharityInitiative: boolean;
791
+ organizerExpectations?: string;
792
+ dailyCoordinationNeeds?: string;
793
+ interestedInCharityInitiative?: boolean;
794
794
  };
795
795
  interface TesterFormData {
796
796
  businessName: string;
package/dist/index.d.ts CHANGED
@@ -786,11 +786,11 @@ type TesterEvent = {
786
786
  manageApplicationsAndCommunication: boolean;
787
787
  completeFinalQuestionnaire: boolean;
788
788
  /** Promotion Support */
789
- allowMarketingAppearance: boolean;
789
+ allowMarketingAppearance?: boolean;
790
790
  /** Open Questions */
791
- organizerExpectations: string;
792
- dailyCoordinationNeeds: string;
793
- interestedInCharityInitiative: boolean;
791
+ organizerExpectations?: string;
792
+ dailyCoordinationNeeds?: string;
793
+ interestedInCharityInitiative?: boolean;
794
794
  };
795
795
  interface TesterFormData {
796
796
  businessName: string;
package/dist/index.mjs CHANGED
@@ -5473,7 +5473,7 @@ var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
5473
5473
 
5474
5474
  // src/yupSchema/tester.ts
5475
5475
  var testerVendorSchema = yup6.object().shape({
5476
- categories: categorySchema,
5476
+ categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
5477
5477
  marketsAttended: yup6.array().of(
5478
5478
  yup6.object().shape({
5479
5479
  city: yup6.string().trim().required("City is required"),
@@ -5483,29 +5483,29 @@ var testerVendorSchema = yup6.object().shape({
5483
5483
  productsOrServices: yup6.string().trim().required("Products or services description is required"),
5484
5484
  questionary: yup6.object().shape({
5485
5485
  appearInVideoIntroduction: yup6.boolean().optional(),
5486
- applyToAtLeastOneMarket: yup6.boolean().required("Apply to at least one market commitment is required"),
5487
- completeFeedbackQuestionnaire: yup6.boolean().required("Complete feedback questionnaire commitment is required"),
5486
+ applyToAtLeastOneMarket: yup6.boolean().required("Required field"),
5487
+ completeFeedbackQuestionnaire: yup6.boolean().required("Required field"),
5488
5488
  excitementAboutApp: yup6.string().trim().optional(),
5489
5489
  sendPhotoForSocialMedia: yup6.boolean().optional(),
5490
5490
  socialMediaFeatureReason: yup6.string().trim().optional(),
5491
5491
  testingPeriodConcerns: yup6.string().trim().optional(),
5492
- tryVisitorFeatures: yup6.boolean().required("Try visitor features commitment is required"),
5493
- uploadStallProfileFirstWeek: yup6.boolean().required("Upload stall profile first week commitment is required"),
5492
+ tryVisitorFeatures: yup6.boolean().required("Required field"),
5493
+ uploadStallProfileFirstWeek: yup6.boolean().required("Required field"),
5494
5494
  usefulnessExpectations: yup6.string().trim().optional()
5495
5495
  }),
5496
5496
  sellingFrequency: yup6.mixed().oneOf(
5497
5497
  Object.values(VendorSellingFrequency),
5498
5498
  "Please select a valid selling frequency"
5499
- ).required("Selling frequency is required"),
5499
+ ).required("Required field"),
5500
5500
  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"))
5501
5501
  });
5502
5502
  var testerEventSchema = yup6.object().shape({
5503
- allowMarketingAppearance: yup6.boolean().required("Allow marketing appearance is required"),
5504
- completeFinalQuestionnaire: yup6.boolean().required("Complete final questionnaire commitment is required"),
5505
- dailyCoordinationNeeds: yup6.string().trim().required("Daily coordination needs is required"),
5506
- interestedInCharityInitiative: yup6.boolean().required("Interest in charity initiative is required"),
5507
- inviteAtLeastFiveStallholders: yup6.boolean().required("Invite at least five stallholders commitment is required"),
5508
- manageApplicationsAndCommunication: yup6.boolean().required("Manage applications and communication commitment is required"),
5503
+ allowMarketingAppearance: yup6.boolean().optional(),
5504
+ completeFinalQuestionnaire: yup6.boolean().required("Required field"),
5505
+ dailyCoordinationNeeds: yup6.string().trim().optional(),
5506
+ interestedInCharityInitiative: yup6.boolean().optional(),
5507
+ inviteAtLeastFiveStallholders: yup6.boolean().required("Required field"),
5508
+ manageApplicationsAndCommunication: yup6.boolean().required("Required field"),
5509
5509
  markets: yup6.array().of(
5510
5510
  yup6.object().shape({
5511
5511
  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")),
@@ -5521,8 +5521,8 @@ var testerEventSchema = yup6.object().shape({
5521
5521
  Object.values(OrganizedMarketCount),
5522
5522
  "Please select a valid market count"
5523
5523
  ).required("Organized market count is required"),
5524
- organizerExpectations: yup6.string().trim().required("Organizer expectations is required"),
5525
- registerMarketsFirstWeek: yup6.boolean().required("Register markets first week commitment is required")
5524
+ organizerExpectations: yup6.string().trim().optional(),
5525
+ registerMarketsFirstWeek: yup6.boolean().required("Required field")
5526
5526
  });
5527
5527
  var testerSchema = yup6.object().shape({
5528
5528
  businessName: yup6.string().required("Business name is required"),