@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.
@@ -5819,6 +5819,34 @@ var GET_POSTS_BY_TYPE = gql`
5819
5819
  }
5820
5820
  ${POST_FIELDS_FRAGMENT}
5821
5821
  `;
5822
+ var GET_EVENT_BY_SLUG = gql`
5823
+ query getEventBySlug($slug: String!) {
5824
+ eventBySlug(slug: $slug) {
5825
+ _id
5826
+ }
5827
+ }
5828
+ `;
5829
+ var GET_VENDOR_BY_SLUG = gql`
5830
+ query getVendorBySlug($slug: String!) {
5831
+ vendorBySlug(slug: $slug) {
5832
+ _id
5833
+ }
5834
+ }
5835
+ `;
5836
+ var GET_PARTNER_BY_SLUG = gql`
5837
+ query getPartnerBySlug($slug: String!) {
5838
+ partnerBySlug(slug: $slug) {
5839
+ _id
5840
+ }
5841
+ }
5842
+ `;
5843
+ var GET_POST_BY_SLUG = gql`
5844
+ query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
5845
+ postBySlug(slug: $slug, postType: $postType) {
5846
+ _id
5847
+ }
5848
+ }
5849
+ `;
5822
5850
  var RELATION_FIELDS_FRAGMENT = gql`
5823
5851
  fragment RelationFields on RelationType {
5824
5852
  _id
@@ -7968,6 +7996,7 @@ var relatedPostSchema = new MongooseSchema6(
7968
7996
  required: true,
7969
7997
  type: mongoose6.Schema.Types.ObjectId
7970
7998
  },
7999
+ postSlug: { required: true, type: String },
7971
8000
  postType: {
7972
8001
  enum: Object.values(EnumPostType),
7973
8002
  required: true,
@@ -8091,6 +8120,7 @@ schema3.index({ name: 1 });
8091
8120
  schema3.index({ region: 1 });
8092
8121
  schema3.index({ deletedAt: 1 });
8093
8122
  schema3.index({ "dateTime.dateStatus": 1 });
8123
+ schema3.index({ slug: 1 });
8094
8124
  var GoogleImportedMarketModel = mongoose7.models.GoogleImportedMarket || mongoose7.model("GoogleImportedMarket", schema3);
8095
8125
 
8096
8126
  // src/mongoose/Notification.ts
@@ -8500,6 +8530,7 @@ schema9.index({ description: 1 });
8500
8530
  schema9.index({ region: 1 });
8501
8531
  schema9.index({ "categories.name": 1 });
8502
8532
  schema9.index({ "associates.email": 1 });
8533
+ schema9.index({ slug: 1 });
8503
8534
  var VendorModel = mongoose13.models.Vendor || mongoose13.model("Vendor", schema9);
8504
8535
 
8505
8536
  // src/mongoose/vendor/VendorInfo.ts
@@ -8639,6 +8670,7 @@ schema12.index({ tags: 1 });
8639
8670
  schema12.index({ "associates.email": 1 });
8640
8671
  schema12.index({ deletedAt: 1 });
8641
8672
  schema12.index({ "dateTime.dateStatus": 1 });
8673
+ schema12.index({ slug: 1 });
8642
8674
  var EventModel = mongoose16.models.Event || mongoose16.model("Event", schema12);
8643
8675
 
8644
8676
  // src/mongoose/Partner.ts
@@ -8665,6 +8697,7 @@ schema13.index({ description: 1 });
8665
8697
  schema13.index({ region: 1 });
8666
8698
  schema13.index({ "location.geo": "2dsphere" });
8667
8699
  schema13.index({ "associates.email": 1 });
8700
+ schema13.index({ slug: 1 });
8668
8701
  var PartnerModel = mongoose17.models.Partner || mongoose17.model("Partner", schema13);
8669
8702
 
8670
8703
  // src/mongoose/Post.ts
@@ -8721,6 +8754,7 @@ var schema14 = new MongooseSchema18(
8721
8754
  );
8722
8755
  schema14.index({ title: 1 });
8723
8756
  schema14.index({ tags: 1 });
8757
+ schema14.index({ postType: 1, slug: 1 });
8724
8758
  var PostModel = mongoose18.models.Post || mongoose18.model("Post", schema14);
8725
8759
 
8726
8760
  // src/mongoose/AppSetting.ts
@@ -9000,4 +9034,4 @@ export {
9000
9034
  GameModel,
9001
9035
  SchoolModel
9002
9036
  };
9003
- //# sourceMappingURL=chunk-UWJ7JKP4.mjs.map
9037
+ //# sourceMappingURL=chunk-ZKPPP7DX.mjs.map