@timardex/cluemart-server-shared 1.0.108 → 1.0.109

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.mjs CHANGED
@@ -6938,10 +6938,6 @@ var stallTypes = [
6938
6938
  "Workshop/seating area"
6939
6939
  ];
6940
6940
  var stallTypeOptions = stallTypes.map((type) => ({
6941
- electricity: {
6942
- price: null,
6943
- selected: false
6944
- },
6945
6941
  label: type,
6946
6942
  price: 0,
6947
6943
  stallCapacity: 0
@@ -8296,10 +8292,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
8296
8292
  label
8297
8293
  price
8298
8294
  stallCapacity
8299
- electricity {
8300
- price
8301
- selected
8302
- }
8303
8295
  }
8304
8296
  `;
8305
8297
  var RELATION_DATES_FRAGMENT = gql`
@@ -10095,17 +10087,7 @@ var stallTypesSchema = create$3({
10095
10087
  "",
10096
10088
  noLeadingZeros("Stall price", { allowDecimal: true })
10097
10089
  ),
10098
- stallCapacity: create$5().label("Stall Capacity").typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity")),
10099
- electricity: create$3({
10100
- selected: create$7().nullable().optional().label("Electricity Available"),
10101
- price: create$5().transform(
10102
- (value, originalValue) => originalValue === "" ? null : value
10103
- ).integer("Electricity price must be a whole number").test(
10104
- "no-leading-zeros",
10105
- "",
10106
- noLeadingZeros("Electricity price", { allowDecimal: true })
10107
- ).nullable().optional()
10108
- }).nullable().optional().label("Electricity Information")
10090
+ stallCapacity: create$5().label("Stall Capacity").typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
10109
10091
  });
10110
10092
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
10111
10093
  stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
@@ -10817,10 +10799,6 @@ import mongoose4 from "mongoose";
10817
10799
  var MongooseSchema4 = mongoose4.Schema;
10818
10800
  var StallTypeSchema = new MongooseSchema4(
10819
10801
  {
10820
- electricity: {
10821
- price: { required: false, type: Number },
10822
- selected: { required: false, type: Boolean }
10823
- },
10824
10802
  label: { required: false, type: String },
10825
10803
  price: { required: false, type: Number },
10826
10804
  stallCapacity: { required: false, type: Number }