@timardex/cluemart-shared 1.2.94 → 1.2.95

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.cjs CHANGED
@@ -2823,13 +2823,16 @@ var TESTER_FIELDS_FRAGMENT = import_client4.gql`
2823
2823
  active
2824
2824
  approved
2825
2825
  businessName
2826
+ consents {
2827
+ betaTestConsent
2828
+ privacyConsent
2829
+ }
2826
2830
  createdAt
2827
2831
  email
2828
2832
  firstName
2829
2833
  lastName
2830
2834
  mobilePhone
2831
2835
  osType
2832
- privacyConsent
2833
2836
  region
2834
2837
  resourceType
2835
2838
  updatedAt
@@ -5810,6 +5813,10 @@ var testerEventSchema = yup6.object().shape({
5810
5813
  });
5811
5814
  var testerSchema = yup6.object().shape({
5812
5815
  businessName: yup6.string().required("Business name is required"),
5816
+ consents: yup6.object().shape({
5817
+ betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
5818
+ privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
5819
+ }),
5813
5820
  email: emailRequiredSchema,
5814
5821
  event: yup6.object().when("resourceType", {
5815
5822
  is: (resourceType) => resourceType === "event" /* EVENT */,
@@ -5825,7 +5832,6 @@ var testerSchema = yup6.object().shape({
5825
5832
  // skip empty values
5826
5833
  ),
5827
5834
  osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
5828
- privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required"),
5829
5835
  region: yup6.string().required("Region is required"),
5830
5836
  resourceType: yup6.mixed().oneOf(
5831
5837
  Object.values(EnumResourceType),
@@ -6630,13 +6636,16 @@ var import_react = __toESM(require("react"));
6630
6636
  var import_react_hook_form11 = require("react-hook-form");
6631
6637
  var defaultValues7 = {
6632
6638
  businessName: "",
6639
+ consents: {
6640
+ betaTestConsent: false,
6641
+ privacyConsent: false
6642
+ },
6633
6643
  email: "",
6634
6644
  event: {},
6635
6645
  firstName: "",
6636
6646
  lastName: "",
6637
6647
  mobilePhone: "",
6638
6648
  osType: "",
6639
- privacyConsent: false,
6640
6649
  region: "",
6641
6650
  resourceType: "",
6642
6651
  vendor: {}
@@ -6658,13 +6667,13 @@ function useTesterForm(data) {
6658
6667
  if (data) {
6659
6668
  reset({
6660
6669
  businessName: data.businessName,
6670
+ consents: data.consents,
6661
6671
  email: data.email,
6662
6672
  event: data.event,
6663
6673
  firstName: data.firstName,
6664
6674
  lastName: data.lastName,
6665
6675
  mobilePhone: data.mobilePhone,
6666
6676
  osType: data.osType,
6667
- privacyConsent: data.privacyConsent,
6668
6677
  region: data.region,
6669
6678
  resourceType: data.resourceType,
6670
6679
  vendor: data.vendor
@@ -6675,13 +6684,13 @@ function useTesterForm(data) {
6675
6684
  }, [data]);
6676
6685
  const {
6677
6686
  businessName,
6687
+ consents,
6678
6688
  email,
6679
6689
  event,
6680
6690
  firstName,
6681
6691
  lastName,
6682
6692
  mobilePhone,
6683
6693
  osType,
6684
- privacyConsent,
6685
6694
  region,
6686
6695
  resourceType,
6687
6696
  vendor
@@ -6690,13 +6699,13 @@ function useTesterForm(data) {
6690
6699
  control,
6691
6700
  fields: {
6692
6701
  businessName,
6702
+ consents,
6693
6703
  email,
6694
6704
  event,
6695
6705
  firstName,
6696
6706
  lastName,
6697
6707
  mobilePhone,
6698
6708
  osType,
6699
- privacyConsent,
6700
6709
  region,
6701
6710
  resourceType,
6702
6711
  vendor