@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.
package/dist/index.d.mts CHANGED
@@ -762,12 +762,12 @@ type TesterVendor = {
762
762
  tryVisitorFeatures: boolean;
763
763
  completeFeedbackQuestionnaire: boolean;
764
764
  /** Social Media Appearance */
765
- sendPhotoForSocialMedia: boolean;
766
- appearInVideoIntroduction: boolean;
765
+ sendPhotoForSocialMedia?: boolean;
766
+ appearInVideoIntroduction?: boolean;
767
767
  socialMediaFeatureReason?: string;
768
768
  /** Open Questions */
769
- excitementAboutApp: string;
770
- usefulnessExpectations: string;
769
+ excitementAboutApp?: string;
770
+ usefulnessExpectations?: string;
771
771
  testingPeriodConcerns?: string;
772
772
  };
773
773
  };
@@ -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
@@ -762,12 +762,12 @@ type TesterVendor = {
762
762
  tryVisitorFeatures: boolean;
763
763
  completeFeedbackQuestionnaire: boolean;
764
764
  /** Social Media Appearance */
765
- sendPhotoForSocialMedia: boolean;
766
- appearInVideoIntroduction: boolean;
765
+ sendPhotoForSocialMedia?: boolean;
766
+ appearInVideoIntroduction?: boolean;
767
767
  socialMediaFeatureReason?: string;
768
768
  /** Open Questions */
769
- excitementAboutApp: string;
770
- usefulnessExpectations: string;
769
+ excitementAboutApp?: string;
770
+ usefulnessExpectations?: string;
771
771
  testingPeriodConcerns?: string;
772
772
  };
773
773
  };
@@ -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
@@ -5481,16 +5482,16 @@ var testerVendorSchema = yup6.object().shape({
5481
5482
  ).min(1, "At least one market must be provided").required("Markets attended are required"),
5482
5483
  productsOrServices: yup6.string().trim().required("Products or services description is required"),
5483
5484
  questionary: yup6.object().shape({
5484
- appearInVideoIntroduction: yup6.boolean().required("Appear in video introduction is required"),
5485
+ appearInVideoIntroduction: yup6.boolean().optional(),
5485
5486
  applyToAtLeastOneMarket: yup6.boolean().required("Apply to at least one market commitment is required"),
5486
5487
  completeFeedbackQuestionnaire: yup6.boolean().required("Complete feedback questionnaire commitment is required"),
5487
- excitementAboutApp: yup6.string().trim().required("Excitement about app is required"),
5488
- sendPhotoForSocialMedia: yup6.boolean().required("Send photo for social media is required"),
5488
+ excitementAboutApp: yup6.string().trim().optional(),
5489
+ sendPhotoForSocialMedia: yup6.boolean().optional(),
5489
5490
  socialMediaFeatureReason: yup6.string().trim().optional(),
5490
5491
  testingPeriodConcerns: yup6.string().trim().optional(),
5491
5492
  tryVisitorFeatures: yup6.boolean().required("Try visitor features commitment is required"),
5492
5493
  uploadStallProfileFirstWeek: yup6.boolean().required("Upload stall profile first week commitment is required"),
5493
- usefulnessExpectations: yup6.string().trim().required("Usefulness expectations is required")
5494
+ usefulnessExpectations: yup6.string().trim().optional()
5494
5495
  }),
5495
5496
  sellingFrequency: yup6.mixed().oneOf(
5496
5497
  Object.values(VendorSellingFrequency),
@@ -5529,7 +5530,7 @@ var testerSchema = yup6.object().shape({
5529
5530
  event: yup6.object().when("resourceType", {
5530
5531
  is: (resourceType) => resourceType === "event" /* EVENT */,
5531
5532
  otherwise: (schema) => schema.nullable().optional(),
5532
- then: () => testerEventSchema.required("Event information is required")
5533
+ then: () => testerEventSchema
5533
5534
  }),
5534
5535
  firstName: yup6.string().required("First name is required"),
5535
5536
  lastName: yup6.string().required("Last name is required"),
@@ -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
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