@timardex/cluemart-server-shared 1.0.108 → 1.0.110

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
@@ -8221,6 +8217,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql`
8221
8217
  fragment UserActivityFields on UserActivityType {
8222
8218
  favourites {
8223
8219
  events
8220
+ partners
8224
8221
  vendors
8225
8222
  }
8226
8223
  going {
@@ -8296,10 +8293,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
8296
8293
  label
8297
8294
  price
8298
8295
  stallCapacity
8299
- electricity {
8300
- price
8301
- selected
8302
- }
8303
8296
  }
8304
8297
  `;
8305
8298
  var RELATION_DATES_FRAGMENT = gql`
@@ -9212,6 +9205,9 @@ var GET_USER_ACTIVITIES = gql`
9212
9205
  events {
9213
9206
  ...EventListItemFields
9214
9207
  }
9208
+ partners {
9209
+ ...PartnerFields
9210
+ }
9215
9211
  vendors {
9216
9212
  ...VendorFields
9217
9213
  }
@@ -9235,6 +9231,7 @@ var GET_USER_ACTIVITIES = gql`
9235
9231
  }
9236
9232
  ${EVENT_LIST_ITEM}
9237
9233
  ${VENDOR}
9234
+ ${PARTNER}
9238
9235
  `;
9239
9236
  var GET_USER_RESOURCES = gql`
9240
9237
  query getUserResources($userId: ID!) {
@@ -10095,17 +10092,7 @@ var stallTypesSchema = create$3({
10095
10092
  "",
10096
10093
  noLeadingZeros("Stall price", { allowDecimal: true })
10097
10094
  ),
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")
10095
+ 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
10096
  });
10110
10097
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
10111
10098
  stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
@@ -10258,8 +10245,7 @@ var vendorMenuSchema = create$3({
10258
10245
  description: create$6().nullable().optional(),
10259
10246
  name: create$6().nullable().required("Product name is required"),
10260
10247
  price: create$5().transform((v, o3) => o3 === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
10261
- priceUnit: create$6().required("Product unit is required"),
10262
- productGroups: create$2().of(create$6().defined()).min(1, "Product groups are required").required("Product groups are required")
10248
+ priceUnit: create$6().required("Product unit is required")
10263
10249
  });
10264
10250
  var vendorSchema = globalResourceSchema.shape({
10265
10251
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
@@ -10484,7 +10470,7 @@ var partnerSchema = globalResourceSchema.shape({
10484
10470
  var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
10485
10471
  EnumPostType2["DAILY_MEETS"] = "daily_meets";
10486
10472
  EnumPostType2["DAILY_TIPS"] = "daily_tips";
10487
- EnumPostType2["DAILY_POLL"] = "daily_poll";
10473
+ EnumPostType2["DAILY_GAMES"] = "daily_games";
10488
10474
  return EnumPostType2;
10489
10475
  })(EnumPostType || {});
10490
10476
  var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
@@ -10817,10 +10803,6 @@ import mongoose4 from "mongoose";
10817
10803
  var MongooseSchema4 = mongoose4.Schema;
10818
10804
  var StallTypeSchema = new MongooseSchema4(
10819
10805
  {
10820
- electricity: {
10821
- price: { required: false, type: Number },
10822
- selected: { required: false, type: Boolean }
10823
- },
10824
10806
  label: { required: false, type: String },
10825
10807
  price: { required: false, type: Number },
10826
10808
  stallCapacity: { required: false, type: Number }