@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.
@@ -6984,10 +6984,6 @@ var stallTypes = [
6984
6984
  "Workshop/seating area"
6985
6985
  ];
6986
6986
  var stallTypeOptions = stallTypes.map((type) => ({
6987
- electricity: {
6988
- price: null,
6989
- selected: false
6990
- },
6991
6987
  label: type,
6992
6988
  price: 0,
6993
6989
  stallCapacity: 0
@@ -8342,10 +8338,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
8342
8338
  label
8343
8339
  price
8344
8340
  stallCapacity
8345
- electricity {
8346
- price
8347
- selected
8348
- }
8349
8341
  }
8350
8342
  `;
8351
8343
  var RELATION_DATES_FRAGMENT = gql`
@@ -10141,17 +10133,7 @@ var stallTypesSchema = create$3({
10141
10133
  "",
10142
10134
  noLeadingZeros("Stall price", { allowDecimal: true })
10143
10135
  ),
10144
- 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")),
10145
- electricity: create$3({
10146
- selected: create$7().nullable().optional().label("Electricity Available"),
10147
- price: create$5().transform(
10148
- (value, originalValue) => originalValue === "" ? null : value
10149
- ).integer("Electricity price must be a whole number").test(
10150
- "no-leading-zeros",
10151
- "",
10152
- noLeadingZeros("Electricity price", { allowDecimal: true })
10153
- ).nullable().optional()
10154
- }).nullable().optional().label("Electricity Information")
10136
+ 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"))
10155
10137
  });
10156
10138
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
10157
10139
  stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
@@ -10863,10 +10845,6 @@ var import_mongoose4 = __toESM(require("mongoose"));
10863
10845
  var MongooseSchema4 = import_mongoose4.default.Schema;
10864
10846
  var StallTypeSchema = new MongooseSchema4(
10865
10847
  {
10866
- electricity: {
10867
- price: { required: false, type: Number },
10868
- selected: { required: false, type: Boolean }
10869
- },
10870
10848
  label: { required: false, type: String },
10871
10849
  price: { required: false, type: Number },
10872
10850
  stallCapacity: { required: false, type: Number }