@timardex/cluemart-server-shared 1.0.94 → 1.0.96

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.cjs CHANGED
@@ -8188,6 +8188,7 @@ var SOCIAL_MEDIA_FIELDS_FRAGMENT = gql`
8188
8188
  `;
8189
8189
  var RESOURCE_IMAGE_FIELDS_FRAGMENT = gql`
8190
8190
  fragment ResourceImageFields on ResourceImageType {
8191
+ active
8191
8192
  source
8192
8193
  title
8193
8194
  }
@@ -8605,8 +8606,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = gql`
8605
8606
  startTime
8606
8607
  }
8607
8608
  `;
8608
- var VENDOR_PRODUCT_FIELDS_FRAGMENT = gql`
8609
- fragment VendorProductFields on VendorProductType {
8609
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
8610
+ fragment VendorProductListFields on VendorProductListType {
8610
8611
  description
8611
8612
  name
8612
8613
  price
@@ -8664,8 +8665,8 @@ var VENDOR = gql`
8664
8665
  }
8665
8666
  products {
8666
8667
  active
8667
- productsData {
8668
- ...VendorProductFields
8668
+ productsList {
8669
+ ...VendorProductListFields
8669
8670
  }
8670
8671
  }
8671
8672
  promoCodes
@@ -8698,7 +8699,7 @@ var VENDOR = gql`
8698
8699
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8699
8700
  ${POSTER_USAGE_FIELDS_FRAGMENT}
8700
8701
  ${ASSOCIATES_FIELDS_FRAGMENT}
8701
- ${VENDOR_PRODUCT_FIELDS_FRAGMENT}
8702
+ ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
8702
8703
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
8703
8704
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8704
8705
  ${RELATION_DATES_FRAGMENT}
@@ -10301,7 +10302,7 @@ var vendorSchema = globalResourceSchema.shape({
10301
10302
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
10302
10303
  foodTruck: create$7().label("Food Truck").required("Please specify if the vendor is a food truck"),
10303
10304
  products: create$3().shape({
10304
- productsData: create$2().of(vendroMenuSchema).nullable().optional()
10305
+ productsList: create$2().of(vendroMenuSchema).nullable().optional()
10305
10306
  }).nullable().optional(),
10306
10307
  vendorType: create$8().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
10307
10308
  });
@@ -10577,10 +10578,12 @@ var globalDefaultValues = {
10577
10578
  mobilePhone: null
10578
10579
  },
10579
10580
  cover: {
10581
+ active: true,
10580
10582
  source: "",
10581
10583
  title: ""
10582
10584
  },
10583
10585
  coverUpload: {
10586
+ active: true,
10584
10587
  source: "",
10585
10588
  title: ""
10586
10589
  },
@@ -10837,6 +10840,7 @@ var SocialMediaTypeSchema = new MongooseSchema3(
10837
10840
  );
10838
10841
  var ResourceImageTypeSchema = new MongooseSchema3(
10839
10842
  {
10843
+ active: { default: true, type: Boolean },
10840
10844
  source: { required: false, type: String },
10841
10845
  title: { required: false, type: String }
10842
10846
  },
@@ -11604,7 +11608,7 @@ var productTypeSchema = new MongooseSchema13(
11604
11608
  var productWrapperSchema = new MongooseSchema13(
11605
11609
  {
11606
11610
  active: { default: false, type: Boolean },
11607
- productData: { required: false, type: [productTypeSchema] }
11611
+ productsList: { required: false, type: [productTypeSchema] }
11608
11612
  },
11609
11613
  { _id: false }
11610
11614
  );