@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.
package/dist/index.d.mts CHANGED
@@ -729,22 +729,22 @@ interface PosterInputType {
729
729
  }
730
730
 
731
731
  declare enum OrganizedMarketCount {
732
- ONE = "1",
733
- TWO_TO_THREE = "2_3",
734
- FOUR_TO_FIVE = "4_5",
735
- MORE_THAN_FIVE = "more_than_5"
732
+ ONE = "One",
733
+ TWO_TO_THREE = "Two_to_Three",
734
+ FOUR_TO_FIVE = "Four_to_Five",
735
+ MORE_THAN_FIVE = "More_than_Five"
736
736
  }
737
737
  declare enum VendorSellingFrequency {
738
- TWICE_A_WEEK = "2_3_times_a_week",
739
- ONCE_A_WEEK = "once_a_week",
740
- ONE_TO_TWO_TIMES_A_MONTH = "1_2_times_a_month",
741
- LESS_OFTEN = "less_often"
738
+ TWICE_A_WEEK = "Two_to_Three_times_a_week",
739
+ ONCE_A_WEEK = "Once_a_week",
740
+ ONE_TO_TWO_TIMES_A_MONTH = "One_to_Two_times_a_month",
741
+ LESS_OFTEN = "Less_often"
742
742
  }
743
743
  declare enum OrganizerMarketFrequency {
744
- WEEKLY = "weekly",
745
- FORTNIGHTLY = "fortnightly",
746
- MONTHLY = "monthly",
747
- SEASONAL = "seasonal"
744
+ WEEKLY = "Weekly",
745
+ FORTNIGHTLY = "Fortnightly",
746
+ MONTHLY = "Monthly",
747
+ SEASONAL = "Seasonal"
748
748
  }
749
749
  type TesterVendor = {
750
750
  categories: Category[];
@@ -800,6 +800,7 @@ interface TesterFormData {
800
800
  lastName: string;
801
801
  mobilePhone: string;
802
802
  osType: EnumOSPlatform;
803
+ privacyConsent: boolean;
803
804
  region: string;
804
805
  resourceType: EnumResourceType;
805
806
  vendor?: TesterVendor | null;
package/dist/index.d.ts CHANGED
@@ -729,22 +729,22 @@ interface PosterInputType {
729
729
  }
730
730
 
731
731
  declare enum OrganizedMarketCount {
732
- ONE = "1",
733
- TWO_TO_THREE = "2_3",
734
- FOUR_TO_FIVE = "4_5",
735
- MORE_THAN_FIVE = "more_than_5"
732
+ ONE = "One",
733
+ TWO_TO_THREE = "Two_to_Three",
734
+ FOUR_TO_FIVE = "Four_to_Five",
735
+ MORE_THAN_FIVE = "More_than_Five"
736
736
  }
737
737
  declare enum VendorSellingFrequency {
738
- TWICE_A_WEEK = "2_3_times_a_week",
739
- ONCE_A_WEEK = "once_a_week",
740
- ONE_TO_TWO_TIMES_A_MONTH = "1_2_times_a_month",
741
- LESS_OFTEN = "less_often"
738
+ TWICE_A_WEEK = "Two_to_Three_times_a_week",
739
+ ONCE_A_WEEK = "Once_a_week",
740
+ ONE_TO_TWO_TIMES_A_MONTH = "One_to_Two_times_a_month",
741
+ LESS_OFTEN = "Less_often"
742
742
  }
743
743
  declare enum OrganizerMarketFrequency {
744
- WEEKLY = "weekly",
745
- FORTNIGHTLY = "fortnightly",
746
- MONTHLY = "monthly",
747
- SEASONAL = "seasonal"
744
+ WEEKLY = "Weekly",
745
+ FORTNIGHTLY = "Fortnightly",
746
+ MONTHLY = "Monthly",
747
+ SEASONAL = "Seasonal"
748
748
  }
749
749
  type TesterVendor = {
750
750
  categories: Category[];
@@ -800,6 +800,7 @@ interface TesterFormData {
800
800
  lastName: string;
801
801
  mobilePhone: string;
802
802
  osType: EnumOSPlatform;
803
+ privacyConsent: boolean;
803
804
  region: string;
804
805
  resourceType: EnumResourceType;
805
806
  vendor?: TesterVendor | null;
package/dist/index.mjs CHANGED
@@ -2060,19 +2060,19 @@ var testersFields = [
2060
2060
  helperText: "Enter your business name *",
2061
2061
  keyboardType: "default",
2062
2062
  name: "businessName",
2063
- placeholder: "Business Name"
2063
+ placeholder: "Business Name *"
2064
2064
  },
2065
2065
  {
2066
2066
  helperText: "Enter first name *",
2067
2067
  keyboardType: "default",
2068
2068
  name: "firstName",
2069
- placeholder: "First Name"
2069
+ placeholder: "First Name *"
2070
2070
  },
2071
2071
  {
2072
2072
  helperText: "Enter last name *",
2073
2073
  keyboardType: "default",
2074
2074
  name: "lastName",
2075
- placeholder: "Last Name"
2075
+ placeholder: "Last Name *"
2076
2076
  },
2077
2077
  {
2078
2078
  ...emailField,
@@ -4176,6 +4176,7 @@ var TESTER_FIELDS_FRAGMENT = gql21`
4176
4176
  lastName
4177
4177
  mobilePhone
4178
4178
  osType
4179
+ privacyConsent
4179
4180
  region
4180
4181
  resourceType
4181
4182
  updatedAt
@@ -5449,24 +5450,24 @@ import * as yup6 from "yup";
5449
5450
 
5450
5451
  // src/types/tester.ts
5451
5452
  var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
5452
- OrganizedMarketCount2["ONE"] = "1";
5453
- OrganizedMarketCount2["TWO_TO_THREE"] = "2_3";
5454
- OrganizedMarketCount2["FOUR_TO_FIVE"] = "4_5";
5455
- OrganizedMarketCount2["MORE_THAN_FIVE"] = "more_than_5";
5453
+ OrganizedMarketCount2["ONE"] = "One";
5454
+ OrganizedMarketCount2["TWO_TO_THREE"] = "Two_to_Three";
5455
+ OrganizedMarketCount2["FOUR_TO_FIVE"] = "Four_to_Five";
5456
+ OrganizedMarketCount2["MORE_THAN_FIVE"] = "More_than_Five";
5456
5457
  return OrganizedMarketCount2;
5457
5458
  })(OrganizedMarketCount || {});
5458
5459
  var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
5459
- VendorSellingFrequency2["TWICE_A_WEEK"] = "2_3_times_a_week";
5460
- VendorSellingFrequency2["ONCE_A_WEEK"] = "once_a_week";
5461
- VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "1_2_times_a_month";
5462
- VendorSellingFrequency2["LESS_OFTEN"] = "less_often";
5460
+ VendorSellingFrequency2["TWICE_A_WEEK"] = "Two_to_Three_times_a_week";
5461
+ VendorSellingFrequency2["ONCE_A_WEEK"] = "Once_a_week";
5462
+ VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "One_to_Two_times_a_month";
5463
+ VendorSellingFrequency2["LESS_OFTEN"] = "Less_often";
5463
5464
  return VendorSellingFrequency2;
5464
5465
  })(VendorSellingFrequency || {});
5465
5466
  var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
5466
- OrganizerMarketFrequency2["WEEKLY"] = "weekly";
5467
- OrganizerMarketFrequency2["FORTNIGHTLY"] = "fortnightly";
5468
- OrganizerMarketFrequency2["MONTHLY"] = "monthly";
5469
- OrganizerMarketFrequency2["SEASONAL"] = "seasonal";
5467
+ OrganizerMarketFrequency2["WEEKLY"] = "Weekly";
5468
+ OrganizerMarketFrequency2["FORTNIGHTLY"] = "Fortnightly";
5469
+ OrganizerMarketFrequency2["MONTHLY"] = "Monthly";
5470
+ OrganizerMarketFrequency2["SEASONAL"] = "Seasonal";
5470
5471
  return OrganizerMarketFrequency2;
5471
5472
  })(OrganizerMarketFrequency || {});
5472
5473
 
@@ -5539,13 +5540,17 @@ var testerSchema = yup6.object().shape({
5539
5540
  (value) => !value || mobileRegex.test(value)
5540
5541
  // skip empty values
5541
5542
  ),
5542
- osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS device").required("OS Type is required"),
5543
+ osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
5544
+ privacyConsent: yup6.boolean().oneOf([true], "You must accept the privacy policy").required("Privacy consent is required"),
5543
5545
  region: yup6.string().required("Region is required"),
5544
- resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
5546
+ resourceType: yup6.mixed().oneOf(
5547
+ Object.values(EnumResourceType),
5548
+ "Please select Event or Stallholder"
5549
+ ).required("Resource Type is required"),
5545
5550
  vendor: yup6.object().when("resourceType", {
5546
5551
  is: (resourceType) => resourceType === "vendor" /* VENDOR */,
5547
5552
  otherwise: (schema) => schema.nullable().optional(),
5548
- then: () => testerVendorSchema.required("Vendor information is required")
5553
+ then: () => testerVendorSchema.required("Stallholder information is required")
5549
5554
  })
5550
5555
  });
5551
5556
 
@@ -6347,6 +6352,7 @@ var defaultValues7 = {
6347
6352
  lastName: "",
6348
6353
  mobilePhone: "",
6349
6354
  osType: "",
6355
+ privacyConsent: false,
6350
6356
  region: "",
6351
6357
  resourceType: "",
6352
6358
  vendor: null
@@ -6374,6 +6380,7 @@ function useTesterForm(data) {
6374
6380
  lastName: data.lastName,
6375
6381
  mobilePhone: data.mobilePhone,
6376
6382
  osType: data.osType,
6383
+ privacyConsent: data.privacyConsent,
6377
6384
  region: data.region,
6378
6385
  resourceType: data.resourceType,
6379
6386
  vendor: data.vendor
@@ -6390,6 +6397,7 @@ function useTesterForm(data) {
6390
6397
  lastName,
6391
6398
  mobilePhone,
6392
6399
  osType,
6400
+ privacyConsent,
6393
6401
  region,
6394
6402
  resourceType,
6395
6403
  vendor
@@ -6404,6 +6412,7 @@ function useTesterForm(data) {
6404
6412
  lastName,
6405
6413
  mobilePhone,
6406
6414
  osType,
6415
+ privacyConsent,
6407
6416
  region,
6408
6417
  resourceType,
6409
6418
  vendor