@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.
@@ -8114,6 +8114,7 @@ var SOCIAL_MEDIA_FIELDS_FRAGMENT = gql`
8114
8114
  `;
8115
8115
  var RESOURCE_IMAGE_FIELDS_FRAGMENT = gql`
8116
8116
  fragment ResourceImageFields on ResourceImageType {
8117
+ active
8117
8118
  source
8118
8119
  title
8119
8120
  }
@@ -8531,8 +8532,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql`
8531
8532
  startTime
8532
8533
  }
8533
8534
  `;
8534
- var VENDOR_MENU_FIELDS_FRAGMENT = gql`
8535
- fragment VendorMenuFields on VendorMenuType {
8535
+ var VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
8536
+ fragment VendorProductFields on VendorProductType {
8536
8537
  description
8537
8538
  name
8538
8539
  price
@@ -8589,7 +8590,10 @@ var VENDOR = gql`
8589
8590
  ...OwnerFields
8590
8591
  }
8591
8592
  products {
8592
- ...VendorMenuFields
8593
+ active
8594
+ productsData {
8595
+ ...VendorProductFields
8596
+ }
8593
8597
  }
8594
8598
  promoCodes
8595
8599
  posterUsage {
@@ -8621,7 +8625,7 @@ var VENDOR = gql`
8621
8625
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8622
8626
  ${POSTER_USAGE_FIELDS_FRAGMENT}
8623
8627
  ${ASSOCIATES_FIELDS_FRAGMENT}
8624
- ${VENDOR_MENU_FIELDS_FRAGMENT}
8628
+ ${VENDOR_PRODUCT_FIELDS_FRAGMENT}
8625
8629
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
8626
8630
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8627
8631
  ${RELATION_DATES_FRAGMENT}
@@ -10223,7 +10227,9 @@ var vendroMenuSchema = create$3().shape({
10223
10227
  var vendorSchema = globalResourceSchema.shape({
10224
10228
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
10225
10229
  foodTruck: create$7().label("Food Truck").required("Please specify if the vendor is a food truck"),
10226
- products: create$2().of(vendroMenuSchema).nullable().optional(),
10230
+ products: create$3().shape({
10231
+ productsData: create$2().of(vendroMenuSchema).nullable().optional()
10232
+ }).nullable().optional(),
10227
10233
  vendorType: create$8().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
10228
10234
  });
10229
10235
  var unregisteredVendorSchema = create$3().shape({
@@ -10498,10 +10504,12 @@ var globalDefaultValues = {
10498
10504
  mobilePhone: null
10499
10505
  },
10500
10506
  cover: {
10507
+ active: true,
10501
10508
  source: "",
10502
10509
  title: ""
10503
10510
  },
10504
10511
  coverUpload: {
10512
+ active: true,
10505
10513
  source: "",
10506
10514
  title: ""
10507
10515
  },
@@ -10758,6 +10766,7 @@ var SocialMediaTypeSchema = new MongooseSchema3(
10758
10766
  );
10759
10767
  var ResourceImageTypeSchema = new MongooseSchema3(
10760
10768
  {
10769
+ active: { default: true, type: Boolean },
10761
10770
  source: { required: false, type: String },
10762
10771
  title: { required: false, type: String }
10763
10772
  },
@@ -11513,7 +11522,7 @@ var VerificationTokenModel = mongoose12.models.VerificationToken || mongoose12.m
11513
11522
  // src/mongoose/vendor/Vendor.ts
11514
11523
  import mongoose13 from "mongoose";
11515
11524
  var MongooseSchema13 = mongoose13.Schema;
11516
- var MenuTypeSchema = new MongooseSchema13(
11525
+ var productTypeSchema = new MongooseSchema13(
11517
11526
  {
11518
11527
  description: { required: false, type: String },
11519
11528
  name: { required: false, type: String },
@@ -11521,7 +11530,13 @@ var MenuTypeSchema = new MongooseSchema13(
11521
11530
  productGroups: { required: false, type: [String] }
11522
11531
  },
11523
11532
  { _id: false }
11524
- // Prevents Mongoose from creating an additional _id field for subdocuments
11533
+ );
11534
+ var productWrapperSchema = new MongooseSchema13(
11535
+ {
11536
+ active: { default: false, type: Boolean },
11537
+ productData: { required: false, type: [productTypeSchema] }
11538
+ },
11539
+ { _id: false }
11525
11540
  );
11526
11541
  var calendarSchema = new MongooseSchema13(
11527
11542
  {
@@ -11543,7 +11558,6 @@ var calendarSchema = new MongooseSchema13(
11543
11558
  }
11544
11559
  },
11545
11560
  { _id: false }
11546
- // Prevents Mongoose from creating an additional _id field for subdocuments
11547
11561
  );
11548
11562
  var calendarWrapperSchema = new MongooseSchema13(
11549
11563
  {
@@ -11567,7 +11581,7 @@ var schema9 = new MongooseSchema13(
11567
11581
  },
11568
11582
  categories: [CategorySchema],
11569
11583
  foodTruck: { required: true, type: Boolean },
11570
- products: [MenuTypeSchema],
11584
+ products: { required: false, type: productWrapperSchema },
11571
11585
  relations: {
11572
11586
  default: [],
11573
11587
  required: false,
@@ -11855,4 +11869,4 @@ react/cjs/react.development.js:
11855
11869
  * LICENSE file in the root directory of this source tree.
11856
11870
  *)
11857
11871
  */
11858
- //# sourceMappingURL=chunk-DNMGFM32.mjs.map
11872
+ //# sourceMappingURL=chunk-WTKUZWRS.mjs.map