@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.
@@ -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
@@ -8267,6 +8263,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql`
8267
8263
  fragment UserActivityFields on UserActivityType {
8268
8264
  favourites {
8269
8265
  events
8266
+ partners
8270
8267
  vendors
8271
8268
  }
8272
8269
  going {
@@ -8342,10 +8339,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
8342
8339
  label
8343
8340
  price
8344
8341
  stallCapacity
8345
- electricity {
8346
- price
8347
- selected
8348
- }
8349
8342
  }
8350
8343
  `;
8351
8344
  var RELATION_DATES_FRAGMENT = gql`
@@ -9258,6 +9251,9 @@ var GET_USER_ACTIVITIES = gql`
9258
9251
  events {
9259
9252
  ...EventListItemFields
9260
9253
  }
9254
+ partners {
9255
+ ...PartnerFields
9256
+ }
9261
9257
  vendors {
9262
9258
  ...VendorFields
9263
9259
  }
@@ -9281,6 +9277,7 @@ var GET_USER_ACTIVITIES = gql`
9281
9277
  }
9282
9278
  ${EVENT_LIST_ITEM}
9283
9279
  ${VENDOR}
9280
+ ${PARTNER}
9284
9281
  `;
9285
9282
  var GET_USER_RESOURCES = gql`
9286
9283
  query getUserResources($userId: ID!) {
@@ -10141,17 +10138,7 @@ var stallTypesSchema = create$3({
10141
10138
  "",
10142
10139
  noLeadingZeros("Stall price", { allowDecimal: true })
10143
10140
  ),
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")
10141
+ 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
10142
  });
10156
10143
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
10157
10144
  stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
@@ -10304,8 +10291,7 @@ var vendorMenuSchema = create$3({
10304
10291
  description: create$6().nullable().optional(),
10305
10292
  name: create$6().nullable().required("Product name is required"),
10306
10293
  price: create$5().transform((v, o3) => o3 === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
10307
- priceUnit: create$6().required("Product unit is required"),
10308
- productGroups: create$2().of(create$6().defined()).min(1, "Product groups are required").required("Product groups are required")
10294
+ priceUnit: create$6().required("Product unit is required")
10309
10295
  });
10310
10296
  var vendorSchema = globalResourceSchema.shape({
10311
10297
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
@@ -10530,7 +10516,7 @@ var partnerSchema = globalResourceSchema.shape({
10530
10516
  var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
10531
10517
  EnumPostType2["DAILY_MEETS"] = "daily_meets";
10532
10518
  EnumPostType2["DAILY_TIPS"] = "daily_tips";
10533
- EnumPostType2["DAILY_POLL"] = "daily_poll";
10519
+ EnumPostType2["DAILY_GAMES"] = "daily_games";
10534
10520
  return EnumPostType2;
10535
10521
  })(EnumPostType || {});
10536
10522
  var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
@@ -10863,10 +10849,6 @@ var import_mongoose4 = __toESM(require("mongoose"));
10863
10849
  var MongooseSchema4 = import_mongoose4.default.Schema;
10864
10850
  var StallTypeSchema = new MongooseSchema4(
10865
10851
  {
10866
- electricity: {
10867
- price: { required: false, type: Number },
10868
- selected: { required: false, type: Boolean }
10869
- },
10870
10852
  label: { required: false, type: String },
10871
10853
  price: { required: false, type: Number },
10872
10854
  stallCapacity: { required: false, type: Number }