@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/index.d.mts CHANGED
@@ -780,17 +780,19 @@ type TesterEvent = {
780
780
  frequency: OrganizerMarketFrequency;
781
781
  averageStallCount: number;
782
782
  }[];
783
- /** Test Period Participation */
784
- registerMarketsFirstWeek: boolean;
785
- inviteAtLeastFiveStallholders: boolean;
786
- manageApplicationsAndCommunication: boolean;
787
- completeFinalQuestionnaire: boolean;
788
- /** Promotion Support */
789
- allowMarketingAppearance: boolean;
790
- /** Open Questions */
791
- organizerExpectations: string;
792
- dailyCoordinationNeeds: string;
793
- interestedInCharityInitiative: boolean;
783
+ questionary: {
784
+ /** Test Period Participation */
785
+ registerMarketsFirstWeek: boolean;
786
+ inviteAtLeastFiveStallholders: boolean;
787
+ manageApplicationsAndCommunication: boolean;
788
+ completeFinalQuestionnaire: boolean;
789
+ /** Promotion Support */
790
+ allowMarketingAppearance?: boolean;
791
+ /** Open Questions */
792
+ organizerExpectations?: string;
793
+ dailyCoordinationNeeds?: string;
794
+ interestedInCharityInitiative?: boolean;
795
+ };
794
796
  };
795
797
  interface TesterFormData {
796
798
  businessName: string;
package/dist/index.d.ts CHANGED
@@ -780,17 +780,19 @@ type TesterEvent = {
780
780
  frequency: OrganizerMarketFrequency;
781
781
  averageStallCount: number;
782
782
  }[];
783
- /** Test Period Participation */
784
- registerMarketsFirstWeek: boolean;
785
- inviteAtLeastFiveStallholders: boolean;
786
- manageApplicationsAndCommunication: boolean;
787
- completeFinalQuestionnaire: boolean;
788
- /** Promotion Support */
789
- allowMarketingAppearance: boolean;
790
- /** Open Questions */
791
- organizerExpectations: string;
792
- dailyCoordinationNeeds: string;
793
- interestedInCharityInitiative: boolean;
783
+ questionary: {
784
+ /** Test Period Participation */
785
+ registerMarketsFirstWeek: boolean;
786
+ inviteAtLeastFiveStallholders: boolean;
787
+ manageApplicationsAndCommunication: boolean;
788
+ completeFinalQuestionnaire: boolean;
789
+ /** Promotion Support */
790
+ allowMarketingAppearance?: boolean;
791
+ /** Open Questions */
792
+ organizerExpectations?: string;
793
+ dailyCoordinationNeeds?: string;
794
+ interestedInCharityInitiative?: boolean;
795
+ };
794
796
  };
795
797
  interface TesterFormData {
796
798
  businessName: string;
package/dist/index.mjs CHANGED
@@ -4154,14 +4154,16 @@ var TESTER_EVENT_FIELDS_FRAGMENT = gql21`
4154
4154
  frequency
4155
4155
  averageStallCount
4156
4156
  }
4157
- registerMarketsFirstWeek
4158
- inviteAtLeastFiveStallholders
4159
- manageApplicationsAndCommunication
4160
- completeFinalQuestionnaire
4161
- allowMarketingAppearance
4162
- organizerExpectations
4163
- dailyCoordinationNeeds
4164
- interestedInCharityInitiative
4157
+ questionary {
4158
+ registerMarketsFirstWeek
4159
+ inviteAtLeastFiveStallholders
4160
+ manageApplicationsAndCommunication
4161
+ completeFinalQuestionnaire
4162
+ allowMarketingAppearance
4163
+ organizerExpectations
4164
+ dailyCoordinationNeeds
4165
+ interestedInCharityInitiative
4166
+ }
4165
4167
  }
4166
4168
  `;
4167
4169
  var TESTER_FIELDS_FRAGMENT = gql21`
@@ -5473,7 +5475,7 @@ var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
5473
5475
 
5474
5476
  // src/yupSchema/tester.ts
5475
5477
  var testerVendorSchema = yup6.object().shape({
5476
- categories: categorySchema,
5478
+ categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
5477
5479
  marketsAttended: yup6.array().of(
5478
5480
  yup6.object().shape({
5479
5481
  city: yup6.string().trim().required("City is required"),
@@ -5483,29 +5485,23 @@ var testerVendorSchema = yup6.object().shape({
5483
5485
  productsOrServices: yup6.string().trim().required("Products or services description is required"),
5484
5486
  questionary: yup6.object().shape({
5485
5487
  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"),
5488
+ applyToAtLeastOneMarket: yup6.boolean().required("Required field"),
5489
+ completeFeedbackQuestionnaire: yup6.boolean().required("Required field"),
5488
5490
  excitementAboutApp: yup6.string().trim().optional(),
5489
5491
  sendPhotoForSocialMedia: yup6.boolean().optional(),
5490
5492
  socialMediaFeatureReason: yup6.string().trim().optional(),
5491
5493
  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"),
5494
+ tryVisitorFeatures: yup6.boolean().required("Required field"),
5495
+ uploadStallProfileFirstWeek: yup6.boolean().required("Required field"),
5494
5496
  usefulnessExpectations: yup6.string().trim().optional()
5495
5497
  }),
5496
5498
  sellingFrequency: yup6.mixed().oneOf(
5497
5499
  Object.values(VendorSellingFrequency),
5498
5500
  "Please select a valid selling frequency"
5499
- ).required("Selling frequency is required"),
5501
+ ).required("Required field"),
5500
5502
  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
5503
  });
5502
5504
  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"),
5509
5505
  markets: yup6.array().of(
5510
5506
  yup6.object().shape({
5511
5507
  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 +5517,16 @@ var testerEventSchema = yup6.object().shape({
5521
5517
  Object.values(OrganizedMarketCount),
5522
5518
  "Please select a valid market count"
5523
5519
  ).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")
5520
+ questionary: yup6.object().shape({
5521
+ allowMarketingAppearance: yup6.boolean().optional(),
5522
+ completeFinalQuestionnaire: yup6.boolean().required("Required field"),
5523
+ dailyCoordinationNeeds: yup6.string().trim().optional(),
5524
+ interestedInCharityInitiative: yup6.boolean().optional(),
5525
+ inviteAtLeastFiveStallholders: yup6.boolean().required("Required field"),
5526
+ manageApplicationsAndCommunication: yup6.boolean().required("Required field"),
5527
+ organizerExpectations: yup6.string().trim().optional(),
5528
+ registerMarketsFirstWeek: yup6.boolean().required("Required field")
5529
+ })
5526
5530
  });
5527
5531
  var testerSchema = yup6.object().shape({
5528
5532
  businessName: yup6.string().required("Business name is required"),