@timardex/cluemart-server-shared 1.0.93 → 1.0.95

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.
@@ -8181,6 +8181,7 @@ var SOCIAL_MEDIA_FIELDS_FRAGMENT = gql`
8181
8181
  `;
8182
8182
  var RESOURCE_IMAGE_FIELDS_FRAGMENT = gql`
8183
8183
  fragment ResourceImageFields on ResourceImageType {
8184
+ active
8184
8185
  source
8185
8186
  title
8186
8187
  }
@@ -8598,8 +8599,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql`
8598
8599
  startTime
8599
8600
  }
8600
8601
  `;
8601
- var VENDOR_MENU_FIELDS_FRAGMENT = gql`
8602
- fragment VendorMenuFields on VendorMenuType {
8602
+ var VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
8603
+ fragment VendorProductFields on VendorProductType {
8603
8604
  description
8604
8605
  name
8605
8606
  price
@@ -8656,7 +8657,10 @@ var VENDOR = gql`
8656
8657
  ...OwnerFields
8657
8658
  }
8658
8659
  products {
8659
- ...VendorMenuFields
8660
+ active
8661
+ productsData {
8662
+ ...VendorProductFields
8663
+ }
8660
8664
  }
8661
8665
  promoCodes
8662
8666
  posterUsage {
@@ -8688,7 +8692,7 @@ var VENDOR = gql`
8688
8692
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8689
8693
  ${POSTER_USAGE_FIELDS_FRAGMENT}
8690
8694
  ${ASSOCIATES_FIELDS_FRAGMENT}
8691
- ${VENDOR_MENU_FIELDS_FRAGMENT}
8695
+ ${VENDOR_PRODUCT_FIELDS_FRAGMENT}
8692
8696
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
8693
8697
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8694
8698
  ${RELATION_DATES_FRAGMENT}
@@ -10290,7 +10294,9 @@ var vendroMenuSchema = create$3().shape({
10290
10294
  var vendorSchema = globalResourceSchema.shape({
10291
10295
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
10292
10296
  foodTruck: create$7().label("Food Truck").required("Please specify if the vendor is a food truck"),
10293
- products: create$2().of(vendroMenuSchema).nullable().optional(),
10297
+ products: create$3().shape({
10298
+ productsData: create$2().of(vendroMenuSchema).nullable().optional()
10299
+ }).nullable().optional(),
10294
10300
  vendorType: create$8().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
10295
10301
  });
10296
10302
  var unregisteredVendorSchema = create$3().shape({
@@ -10565,10 +10571,12 @@ var globalDefaultValues = {
10565
10571
  mobilePhone: null
10566
10572
  },
10567
10573
  cover: {
10574
+ active: true,
10568
10575
  source: "",
10569
10576
  title: ""
10570
10577
  },
10571
10578
  coverUpload: {
10579
+ active: true,
10572
10580
  source: "",
10573
10581
  title: ""
10574
10582
  },
@@ -10825,6 +10833,7 @@ var SocialMediaTypeSchema = new MongooseSchema3(
10825
10833
  );
10826
10834
  var ResourceImageTypeSchema = new MongooseSchema3(
10827
10835
  {
10836
+ active: { default: true, type: Boolean },
10828
10837
  source: { required: false, type: String },
10829
10838
  title: { required: false, type: String }
10830
10839
  },
@@ -11580,7 +11589,7 @@ var VerificationTokenModel = import_mongoose12.default.models.VerificationToken
11580
11589
  // src/mongoose/vendor/Vendor.ts
11581
11590
  var import_mongoose13 = __toESM(require("mongoose"));
11582
11591
  var MongooseSchema13 = import_mongoose13.default.Schema;
11583
- var MenuTypeSchema = new MongooseSchema13(
11592
+ var productTypeSchema = new MongooseSchema13(
11584
11593
  {
11585
11594
  description: { required: false, type: String },
11586
11595
  name: { required: false, type: String },
@@ -11588,7 +11597,13 @@ var MenuTypeSchema = new MongooseSchema13(
11588
11597
  productGroups: { required: false, type: [String] }
11589
11598
  },
11590
11599
  { _id: false }
11591
- // Prevents Mongoose from creating an additional _id field for subdocuments
11600
+ );
11601
+ var productWrapperSchema = new MongooseSchema13(
11602
+ {
11603
+ active: { default: false, type: Boolean },
11604
+ productData: { required: false, type: [productTypeSchema] }
11605
+ },
11606
+ { _id: false }
11592
11607
  );
11593
11608
  var calendarSchema = new MongooseSchema13(
11594
11609
  {
@@ -11610,7 +11625,6 @@ var calendarSchema = new MongooseSchema13(
11610
11625
  }
11611
11626
  },
11612
11627
  { _id: false }
11613
- // Prevents Mongoose from creating an additional _id field for subdocuments
11614
11628
  );
11615
11629
  var calendarWrapperSchema = new MongooseSchema13(
11616
11630
  {
@@ -11634,7 +11648,7 @@ var schema9 = new MongooseSchema13(
11634
11648
  },
11635
11649
  categories: [CategorySchema],
11636
11650
  foodTruck: { required: true, type: Boolean },
11637
- products: [MenuTypeSchema],
11651
+ products: { required: false, type: productWrapperSchema },
11638
11652
  relations: {
11639
11653
  default: [],
11640
11654
  required: false,