@timardex/cluemart-shared 1.2.86 → 1.2.88

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.
@@ -698,16 +698,16 @@ var testerVendorSchema = yup6.object().shape({
698
698
  ).min(1, "At least one market must be provided").required("Markets attended are required"),
699
699
  productsOrServices: yup6.string().trim().required("Products or services description is required"),
700
700
  questionary: yup6.object().shape({
701
- appearInVideoIntroduction: yup6.boolean().required("Appear in video introduction is required"),
701
+ appearInVideoIntroduction: yup6.boolean().optional(),
702
702
  applyToAtLeastOneMarket: yup6.boolean().required("Apply to at least one market commitment is required"),
703
703
  completeFeedbackQuestionnaire: yup6.boolean().required("Complete feedback questionnaire commitment is required"),
704
- excitementAboutApp: yup6.string().trim().required("Excitement about app is required"),
705
- sendPhotoForSocialMedia: yup6.boolean().required("Send photo for social media is required"),
704
+ excitementAboutApp: yup6.string().trim().optional(),
705
+ sendPhotoForSocialMedia: yup6.boolean().optional(),
706
706
  socialMediaFeatureReason: yup6.string().trim().optional(),
707
707
  testingPeriodConcerns: yup6.string().trim().optional(),
708
708
  tryVisitorFeatures: yup6.boolean().required("Try visitor features commitment is required"),
709
709
  uploadStallProfileFirstWeek: yup6.boolean().required("Upload stall profile first week commitment is required"),
710
- usefulnessExpectations: yup6.string().trim().required("Usefulness expectations is required")
710
+ usefulnessExpectations: yup6.string().trim().optional()
711
711
  }),
712
712
  sellingFrequency: yup6.mixed().oneOf(
713
713
  Object.values(VendorSellingFrequency),
@@ -746,7 +746,7 @@ var testerSchema = yup6.object().shape({
746
746
  event: yup6.object().when("resourceType", {
747
747
  is: (resourceType) => resourceType === "event" /* EVENT */,
748
748
  otherwise: (schema) => schema.nullable().optional(),
749
- then: () => testerEventSchema.required("Event information is required")
749
+ then: () => testerEventSchema
750
750
  }),
751
751
  firstName: yup6.string().required("First name is required"),
752
752
  lastName: yup6.string().required("Last name is required"),
@@ -756,13 +756,17 @@ var testerSchema = yup6.object().shape({
756
756
  (value) => !value || mobileRegex.test(value)
757
757
  // skip empty values
758
758
  ),
759
- osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS device").required("OS Type is required"),
759
+ osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
760
+ privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required"),
760
761
  region: yup6.string().required("Region is required"),
761
- resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
762
+ resourceType: yup6.mixed().oneOf(
763
+ Object.values(EnumResourceType),
764
+ "Please select Event or Stallholder"
765
+ ).required("Resource Type is required"),
762
766
  vendor: yup6.object().when("resourceType", {
763
767
  is: (resourceType) => resourceType === "vendor" /* VENDOR */,
764
768
  otherwise: (schema) => schema.nullable().optional(),
765
- then: () => testerVendorSchema.required("Vendor information is required")
769
+ then: () => testerVendorSchema
766
770
  })
767
771
  });
768
772
 
@@ -1564,6 +1568,7 @@ var defaultValues7 = {
1564
1568
  lastName: "",
1565
1569
  mobilePhone: "",
1566
1570
  osType: "",
1571
+ privacyConsent: false,
1567
1572
  region: "",
1568
1573
  resourceType: "",
1569
1574
  vendor: null
@@ -1591,6 +1596,7 @@ function useTesterForm(data) {
1591
1596
  lastName: data.lastName,
1592
1597
  mobilePhone: data.mobilePhone,
1593
1598
  osType: data.osType,
1599
+ privacyConsent: data.privacyConsent,
1594
1600
  region: data.region,
1595
1601
  resourceType: data.resourceType,
1596
1602
  vendor: data.vendor
@@ -1607,6 +1613,7 @@ function useTesterForm(data) {
1607
1613
  lastName,
1608
1614
  mobilePhone,
1609
1615
  osType,
1616
+ privacyConsent,
1610
1617
  region,
1611
1618
  resourceType,
1612
1619
  vendor
@@ -1621,6 +1628,7 @@ function useTesterForm(data) {
1621
1628
  lastName,
1622
1629
  mobilePhone,
1623
1630
  osType,
1631
+ privacyConsent,
1624
1632
  region,
1625
1633
  resourceType,
1626
1634
  vendor