@timardex/cluemart-server-shared 1.0.254 → 1.0.256

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.
@@ -5891,6 +5891,34 @@ var GET_POSTS_BY_TYPE = gql`
5891
5891
  }
5892
5892
  ${POST_FIELDS_FRAGMENT}
5893
5893
  `;
5894
+ var GET_EVENT_BY_SLUG = gql`
5895
+ query getEventBySlug($slug: String!) {
5896
+ eventBySlug(slug: $slug) {
5897
+ _id
5898
+ }
5899
+ }
5900
+ `;
5901
+ var GET_VENDOR_BY_SLUG = gql`
5902
+ query getVendorBySlug($slug: String!) {
5903
+ vendorBySlug(slug: $slug) {
5904
+ _id
5905
+ }
5906
+ }
5907
+ `;
5908
+ var GET_PARTNER_BY_SLUG = gql`
5909
+ query getPartnerBySlug($slug: String!) {
5910
+ partnerBySlug(slug: $slug) {
5911
+ _id
5912
+ }
5913
+ }
5914
+ `;
5915
+ var GET_POST_BY_SLUG = gql`
5916
+ query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
5917
+ postBySlug(slug: $slug, postType: $postType) {
5918
+ _id
5919
+ }
5920
+ }
5921
+ `;
5894
5922
  var RELATION_FIELDS_FRAGMENT = gql`
5895
5923
  fragment RelationFields on RelationType {
5896
5924
  _id
@@ -8040,6 +8068,7 @@ var relatedPostSchema = new MongooseSchema6(
8040
8068
  required: true,
8041
8069
  type: import_mongoose6.default.Schema.Types.ObjectId
8042
8070
  },
8071
+ postSlug: { required: true, type: String },
8043
8072
  postType: {
8044
8073
  enum: Object.values(EnumPostType),
8045
8074
  required: true,
@@ -8163,6 +8192,7 @@ schema3.index({ name: 1 });
8163
8192
  schema3.index({ region: 1 });
8164
8193
  schema3.index({ deletedAt: 1 });
8165
8194
  schema3.index({ "dateTime.dateStatus": 1 });
8195
+ schema3.index({ slug: 1 });
8166
8196
  var GoogleImportedMarketModel = import_mongoose7.default.models.GoogleImportedMarket || import_mongoose7.default.model("GoogleImportedMarket", schema3);
8167
8197
 
8168
8198
  // src/mongoose/Notification.ts
@@ -8572,6 +8602,7 @@ schema9.index({ description: 1 });
8572
8602
  schema9.index({ region: 1 });
8573
8603
  schema9.index({ "categories.name": 1 });
8574
8604
  schema9.index({ "associates.email": 1 });
8605
+ schema9.index({ slug: 1 });
8575
8606
  var VendorModel = import_mongoose13.default.models.Vendor || import_mongoose13.default.model("Vendor", schema9);
8576
8607
 
8577
8608
  // src/mongoose/vendor/VendorInfo.ts
@@ -8711,6 +8742,7 @@ schema12.index({ tags: 1 });
8711
8742
  schema12.index({ "associates.email": 1 });
8712
8743
  schema12.index({ deletedAt: 1 });
8713
8744
  schema12.index({ "dateTime.dateStatus": 1 });
8745
+ schema12.index({ slug: 1 });
8714
8746
  var EventModel = import_mongoose16.default.models.Event || import_mongoose16.default.model("Event", schema12);
8715
8747
 
8716
8748
  // src/mongoose/Partner.ts
@@ -8737,6 +8769,7 @@ schema13.index({ description: 1 });
8737
8769
  schema13.index({ region: 1 });
8738
8770
  schema13.index({ "location.geo": "2dsphere" });
8739
8771
  schema13.index({ "associates.email": 1 });
8772
+ schema13.index({ slug: 1 });
8740
8773
  var PartnerModel = import_mongoose17.default.models.Partner || import_mongoose17.default.model("Partner", schema13);
8741
8774
 
8742
8775
  // src/mongoose/Post.ts
@@ -8793,6 +8826,7 @@ var schema14 = new MongooseSchema18(
8793
8826
  );
8794
8827
  schema14.index({ title: 1 });
8795
8828
  schema14.index({ tags: 1 });
8829
+ schema14.index({ postType: 1, slug: 1 });
8796
8830
  var PostModel = import_mongoose18.default.models.Post || import_mongoose18.default.model("Post", schema14);
8797
8831
 
8798
8832
  // src/mongoose/AppSetting.ts