@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.cjs CHANGED
@@ -6994,10 +6994,6 @@ var stallTypes = [
6994
6994
  "Workshop/seating area"
6995
6995
  ];
6996
6996
  var stallTypeOptions = stallTypes.map((type) => ({
6997
- electricity: {
6998
- price: null,
6999
- selected: false
7000
- },
7001
6997
  label: type,
7002
6998
  price: 0,
7003
6999
  stallCapacity: 0
@@ -8352,10 +8348,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
8352
8348
  label
8353
8349
  price
8354
8350
  stallCapacity
8355
- electricity {
8356
- price
8357
- selected
8358
- }
8359
8351
  }
8360
8352
  `;
8361
8353
  var RELATION_DATES_FRAGMENT = gql`
@@ -10151,17 +10143,7 @@ var stallTypesSchema = create$3({
10151
10143
  "",
10152
10144
  noLeadingZeros("Stall price", { allowDecimal: true })
10153
10145
  ),
10154
- 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
- electricity: create$3({
10156
- selected: create$7().nullable().optional().label("Electricity Available"),
10157
- price: create$5().transform(
10158
- (value, originalValue) => originalValue === "" ? null : value
10159
- ).integer("Electricity price must be a whole number").test(
10160
- "no-leading-zeros",
10161
- "",
10162
- noLeadingZeros("Electricity price", { allowDecimal: true })
10163
- ).nullable().optional()
10164
- }).nullable().optional().label("Electricity Information")
10146
+ 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"))
10165
10147
  });
10166
10148
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
10167
10149
  stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
@@ -10873,10 +10855,6 @@ var import_mongoose4 = __toESM(require("mongoose"));
10873
10855
  var MongooseSchema4 = import_mongoose4.default.Schema;
10874
10856
  var StallTypeSchema = new MongooseSchema4(
10875
10857
  {
10876
- electricity: {
10877
- price: { required: false, type: Number },
10878
- selected: { required: false, type: Boolean }
10879
- },
10880
10858
  label: { required: false, type: String },
10881
10859
  price: { required: false, type: Number },
10882
10860
  stallCapacity: { required: false, type: Number }