@timardex/cluemart-server-shared 1.0.93 → 1.0.94

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.
@@ -8531,8 +8531,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql`
8531
8531
  startTime
8532
8532
  }
8533
8533
  `;
8534
- var VENDOR_MENU_FIELDS_FRAGMENT = gql`
8535
- fragment VendorMenuFields on VendorMenuType {
8534
+ var VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
8535
+ fragment VendorProductFields on VendorProductType {
8536
8536
  description
8537
8537
  name
8538
8538
  price
@@ -8589,7 +8589,10 @@ var VENDOR = gql`
8589
8589
  ...OwnerFields
8590
8590
  }
8591
8591
  products {
8592
- ...VendorMenuFields
8592
+ active
8593
+ productsData {
8594
+ ...VendorProductFields
8595
+ }
8593
8596
  }
8594
8597
  promoCodes
8595
8598
  posterUsage {
@@ -8621,7 +8624,7 @@ var VENDOR = gql`
8621
8624
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8622
8625
  ${POSTER_USAGE_FIELDS_FRAGMENT}
8623
8626
  ${ASSOCIATES_FIELDS_FRAGMENT}
8624
- ${VENDOR_MENU_FIELDS_FRAGMENT}
8627
+ ${VENDOR_PRODUCT_FIELDS_FRAGMENT}
8625
8628
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
8626
8629
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8627
8630
  ${RELATION_DATES_FRAGMENT}
@@ -10223,7 +10226,9 @@ var vendroMenuSchema = create$3().shape({
10223
10226
  var vendorSchema = globalResourceSchema.shape({
10224
10227
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
10225
10228
  foodTruck: create$7().label("Food Truck").required("Please specify if the vendor is a food truck"),
10226
- products: create$2().of(vendroMenuSchema).nullable().optional(),
10229
+ products: create$3().shape({
10230
+ productsData: create$2().of(vendroMenuSchema).nullable().optional()
10231
+ }).nullable().optional(),
10227
10232
  vendorType: create$8().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
10228
10233
  });
10229
10234
  var unregisteredVendorSchema = create$3().shape({
@@ -11513,7 +11518,7 @@ var VerificationTokenModel = mongoose12.models.VerificationToken || mongoose12.m
11513
11518
  // src/mongoose/vendor/Vendor.ts
11514
11519
  import mongoose13 from "mongoose";
11515
11520
  var MongooseSchema13 = mongoose13.Schema;
11516
- var MenuTypeSchema = new MongooseSchema13(
11521
+ var productTypeSchema = new MongooseSchema13(
11517
11522
  {
11518
11523
  description: { required: false, type: String },
11519
11524
  name: { required: false, type: String },
@@ -11521,7 +11526,13 @@ var MenuTypeSchema = new MongooseSchema13(
11521
11526
  productGroups: { required: false, type: [String] }
11522
11527
  },
11523
11528
  { _id: false }
11524
- // Prevents Mongoose from creating an additional _id field for subdocuments
11529
+ );
11530
+ var productWrapperSchema = new MongooseSchema13(
11531
+ {
11532
+ active: { default: false, type: Boolean },
11533
+ productData: { required: false, type: [productTypeSchema] }
11534
+ },
11535
+ { _id: false }
11525
11536
  );
11526
11537
  var calendarSchema = new MongooseSchema13(
11527
11538
  {
@@ -11543,7 +11554,6 @@ var calendarSchema = new MongooseSchema13(
11543
11554
  }
11544
11555
  },
11545
11556
  { _id: false }
11546
- // Prevents Mongoose from creating an additional _id field for subdocuments
11547
11557
  );
11548
11558
  var calendarWrapperSchema = new MongooseSchema13(
11549
11559
  {
@@ -11567,7 +11577,7 @@ var schema9 = new MongooseSchema13(
11567
11577
  },
11568
11578
  categories: [CategorySchema],
11569
11579
  foodTruck: { required: true, type: Boolean },
11570
- products: [MenuTypeSchema],
11580
+ products: { required: false, type: productWrapperSchema },
11571
11581
  relations: {
11572
11582
  default: [],
11573
11583
  required: false,
@@ -11855,4 +11865,4 @@ react/cjs/react.development.js:
11855
11865
  * LICENSE file in the root directory of this source tree.
11856
11866
  *)
11857
11867
  */
11858
- //# sourceMappingURL=chunk-DNMGFM32.mjs.map
11868
+ //# sourceMappingURL=chunk-SDZAM4E4.mjs.map