@timardex/cluemart-shared 1.3.55 → 1.3.57

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.
Files changed (40) hide show
  1. package/dist/{chunk-O3WF2I56.mjs → chunk-2SVZOQFD.mjs} +2 -2
  2. package/dist/{chunk-BUTKJE3A.mjs → chunk-KYPVVP6O.mjs} +1 -1
  3. package/dist/chunk-KYPVVP6O.mjs.map +1 -0
  4. package/dist/{chunk-IXPWY6CU.mjs → chunk-OBQRGWV3.mjs} +2 -1
  5. package/dist/chunk-OBQRGWV3.mjs.map +1 -0
  6. package/dist/enums/index.cjs +1 -0
  7. package/dist/enums/index.cjs.map +1 -1
  8. package/dist/enums/index.d.mts +2 -1
  9. package/dist/enums/index.d.ts +2 -1
  10. package/dist/enums/index.mjs +1 -1
  11. package/dist/formFields/index.cjs +1 -0
  12. package/dist/formFields/index.cjs.map +1 -1
  13. package/dist/formFields/index.mjs +2 -2
  14. package/dist/graphql/index.d.mts +1 -1
  15. package/dist/graphql/index.d.ts +1 -1
  16. package/dist/graphql/index.mjs +1 -1
  17. package/dist/hooks/index.cjs +24 -11
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.d.mts +1 -1
  20. package/dist/hooks/index.d.ts +1 -1
  21. package/dist/hooks/index.mjs +26 -14
  22. package/dist/hooks/index.mjs.map +1 -1
  23. package/dist/index.cjs +24 -11
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.mts +3 -2
  26. package/dist/index.d.ts +3 -2
  27. package/dist/index.mjs +24 -11
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/{post-Ccnm8wXU.d.ts → post-Bwr2i2Qq.d.ts} +1 -1
  30. package/dist/{post-DMNuE0Ba.d.mts → post-DHDZfAmJ.d.mts} +1 -1
  31. package/dist/types/index.cjs.map +1 -1
  32. package/dist/types/index.d.mts +1 -1
  33. package/dist/types/index.d.ts +1 -1
  34. package/dist/types/index.mjs +1 -1
  35. package/dist/utils/index.cjs.map +1 -1
  36. package/dist/utils/index.mjs +2 -2
  37. package/package.json +1 -1
  38. package/dist/chunk-BUTKJE3A.mjs.map +0 -1
  39. package/dist/chunk-IXPWY6CU.mjs.map +0 -1
  40. /package/dist/{chunk-O3WF2I56.mjs.map → chunk-2SVZOQFD.mjs.map} +0 -0
@@ -169,6 +169,7 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
169
169
  EnumFoodFlavor3["SAVOURY"] = "Savoury";
170
170
  EnumFoodFlavor3["SPICY"] = "Spicy";
171
171
  EnumFoodFlavor3["SWEET"] = "Sweet";
172
+ EnumFoodFlavor3["OTHER"] = "Other";
172
173
  return EnumFoodFlavor3;
173
174
  })(EnumFoodFlavor || {});
174
175
  var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
@@ -550,7 +551,7 @@ var paymentInfoSchema = yup2.object({
550
551
  otherwise: (schema) => schema.notRequired()
551
552
  }),
552
553
  link: yup2.string().when("paymentMethod", {
553
- is: (val) => val !== "bank_transfer" /* BANK_TRANSFER */,
554
+ is: (val) => val === "paypal" /* PAYPAL */ || val === "stripe" /* STRIPE */,
554
555
  then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
555
556
  otherwise: (schema) => schema.notRequired()
556
557
  })
@@ -619,21 +620,33 @@ var vendorInfoSchema = yup3.object().shape({
619
620
  }),
620
621
  requirements: yup3.object().shape({
621
622
  electricity: yup3.object().shape({
622
- details: yup3.string().trim().test("details-required", "Please add details", function(value) {
623
- return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
624
- }).nullable(),
623
+ details: yup3.string().trim().test(
624
+ "details-required",
625
+ "Please add electricity details",
626
+ function(value) {
627
+ return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
628
+ }
629
+ ).nullable(),
625
630
  isRequired: yup3.boolean().required("Electricity requirement is required")
626
631
  }),
627
632
  gazebo: yup3.object().shape({
628
- details: yup3.string().trim().test("details-required", "Please add details", function(value) {
629
- return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
630
- }).nullable(),
633
+ details: yup3.string().trim().test(
634
+ "details-required",
635
+ "Please add gazebo details",
636
+ function(value) {
637
+ return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
638
+ }
639
+ ).nullable(),
631
640
  isRequired: yup3.boolean().required("Gazebo requirement is required")
632
641
  }),
633
642
  table: yup3.object().shape({
634
- details: yup3.string().trim().test("details-required", "Please add details", function(value) {
635
- return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
636
- }).nullable(),
643
+ details: yup3.string().trim().test(
644
+ "details-required",
645
+ "Please add table details",
646
+ function(value) {
647
+ return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
648
+ }
649
+ ).nullable(),
637
650
  isRequired: yup3.boolean().required("Table requirement is required")
638
651
  })
639
652
  }).optional(),
@@ -775,7 +788,7 @@ var testerEventSchema = yup6.object().shape({
775
788
  inviteStallholders: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
776
789
  manageApplicationsAndCommunication: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
777
790
  organizerExpectations: yup6.string().trim().optional(),
778
- spaceForClueMart: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
791
+ spaceForClueMart: yup6.boolean().optional(),
779
792
  uploadStallList: yup6.boolean().required("This field is required").oneOf([true], "This field is required")
780
793
  }).required("Questionary is required")
781
794
  });