@timardex/cluemart-shared 1.2.85 → 1.2.87

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.
@@ -666,24 +666,24 @@ var yup6 = __toESM(require("yup"));
666
666
 
667
667
  // src/types/tester.ts
668
668
  var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
669
- OrganizedMarketCount2["ONE"] = "1";
670
- OrganizedMarketCount2["TWO_TO_THREE"] = "2_3";
671
- OrganizedMarketCount2["FOUR_TO_FIVE"] = "4_5";
672
- OrganizedMarketCount2["MORE_THAN_FIVE"] = "more_than_5";
669
+ OrganizedMarketCount2["ONE"] = "One";
670
+ OrganizedMarketCount2["TWO_TO_THREE"] = "Two_to_Three";
671
+ OrganizedMarketCount2["FOUR_TO_FIVE"] = "Four_to_Five";
672
+ OrganizedMarketCount2["MORE_THAN_FIVE"] = "More_than_Five";
673
673
  return OrganizedMarketCount2;
674
674
  })(OrganizedMarketCount || {});
675
675
  var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
676
- VendorSellingFrequency2["TWICE_A_WEEK"] = "2_3_times_a_week";
677
- VendorSellingFrequency2["ONCE_A_WEEK"] = "once_a_week";
678
- VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "1_2_times_a_month";
679
- VendorSellingFrequency2["LESS_OFTEN"] = "less_often";
676
+ VendorSellingFrequency2["TWICE_A_WEEK"] = "Two_to_Three_times_a_week";
677
+ VendorSellingFrequency2["ONCE_A_WEEK"] = "Once_a_week";
678
+ VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "One_to_Two_times_a_month";
679
+ VendorSellingFrequency2["LESS_OFTEN"] = "Less_often";
680
680
  return VendorSellingFrequency2;
681
681
  })(VendorSellingFrequency || {});
682
682
  var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
683
- OrganizerMarketFrequency2["WEEKLY"] = "weekly";
684
- OrganizerMarketFrequency2["FORTNIGHTLY"] = "fortnightly";
685
- OrganizerMarketFrequency2["MONTHLY"] = "monthly";
686
- OrganizerMarketFrequency2["SEASONAL"] = "seasonal";
683
+ OrganizerMarketFrequency2["WEEKLY"] = "Weekly";
684
+ OrganizerMarketFrequency2["FORTNIGHTLY"] = "Fortnightly";
685
+ OrganizerMarketFrequency2["MONTHLY"] = "Monthly";
686
+ OrganizerMarketFrequency2["SEASONAL"] = "Seasonal";
687
687
  return OrganizerMarketFrequency2;
688
688
  })(OrganizerMarketFrequency || {});
689
689
 
@@ -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.required("Stallholder information is required")
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