@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.
@@ -33,7 +33,7 @@ import {
33
33
  resourceRelationsSchema,
34
34
  termsAgreementSchema,
35
35
  userLicenseSchema
36
- } from "../chunk-JIMDRWCH.mjs";
36
+ } from "../chunk-VQOH37OR.mjs";
37
37
  import "../chunk-3QS3WKRC.mjs";
38
38
  export {
39
39
  APP_SETTINGS_ID,
@@ -6982,10 +6982,6 @@ var stallTypes = [
6982
6982
  "Workshop/seating area"
6983
6983
  ];
6984
6984
  var stallTypeOptions = stallTypes.map((type) => ({
6985
- electricity: {
6986
- price: null,
6987
- selected: false
6988
- },
6989
6985
  label: type,
6990
6986
  price: 0,
6991
6987
  stallCapacity: 0
@@ -8340,10 +8336,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
8340
8336
  label
8341
8337
  price
8342
8338
  stallCapacity
8343
- electricity {
8344
- price
8345
- selected
8346
- }
8347
8339
  }
8348
8340
  `;
8349
8341
  var RELATION_DATES_FRAGMENT = gql`
@@ -10139,17 +10131,7 @@ var stallTypesSchema = create$3({
10139
10131
  "",
10140
10132
  noLeadingZeros("Stall price", { allowDecimal: true })
10141
10133
  ),
10142
- 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")),
10143
- electricity: create$3({
10144
- selected: create$7().nullable().optional().label("Electricity Available"),
10145
- price: create$5().transform(
10146
- (value, originalValue) => originalValue === "" ? null : value
10147
- ).integer("Electricity price must be a whole number").test(
10148
- "no-leading-zeros",
10149
- "",
10150
- noLeadingZeros("Electricity price", { allowDecimal: true })
10151
- ).nullable().optional()
10152
- }).nullable().optional().label("Electricity Information")
10134
+ 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"))
10153
10135
  });
10154
10136
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
10155
10137
  stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
@@ -11055,10 +11037,6 @@ var import_mongoose7 = __toESM(require("mongoose"));
11055
11037
  var MongooseSchema6 = import_mongoose7.default.Schema;
11056
11038
  var StallTypeSchema = new MongooseSchema6(
11057
11039
  {
11058
- electricity: {
11059
- price: { required: false, type: Number },
11060
- selected: { required: false, type: Boolean }
11061
- },
11062
11040
  label: { required: false, type: String },
11063
11041
  price: { required: false, type: Number },
11064
11042
  stallCapacity: { required: false, type: Number }