@timardex/cluemart-server-shared 1.0.254 → 1.0.255

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
@@ -5907,6 +5907,34 @@ var GET_POSTS_BY_TYPE = gql`
5907
5907
  }
5908
5908
  ${POST_FIELDS_FRAGMENT}
5909
5909
  `;
5910
+ var GET_EVENT_BY_SLUG = gql`
5911
+ query getEventBySlug($slug: String!) {
5912
+ eventBySlug(slug: $slug) {
5913
+ _id
5914
+ }
5915
+ }
5916
+ `;
5917
+ var GET_VENDOR_BY_SLUG = gql`
5918
+ query getVendorBySlug($slug: String!) {
5919
+ vendorBySlug(slug: $slug) {
5920
+ _id
5921
+ }
5922
+ }
5923
+ `;
5924
+ var GET_PARTNER_BY_SLUG = gql`
5925
+ query getPartnerBySlug($slug: String!) {
5926
+ partnerBySlug(slug: $slug) {
5927
+ _id
5928
+ }
5929
+ }
5930
+ `;
5931
+ var GET_POST_BY_SLUG = gql`
5932
+ query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
5933
+ postBySlug(slug: $slug, postType: $postType) {
5934
+ _id
5935
+ }
5936
+ }
5937
+ `;
5910
5938
  var RELATION_FIELDS_FRAGMENT = gql`
5911
5939
  fragment RelationFields on RelationType {
5912
5940
  _id
@@ -8179,6 +8207,7 @@ schema3.index({ name: 1 });
8179
8207
  schema3.index({ region: 1 });
8180
8208
  schema3.index({ deletedAt: 1 });
8181
8209
  schema3.index({ "dateTime.dateStatus": 1 });
8210
+ schema3.index({ slug: 1 });
8182
8211
  var GoogleImportedMarketModel = import_mongoose7.default.models.GoogleImportedMarket || import_mongoose7.default.model("GoogleImportedMarket", schema3);
8183
8212
 
8184
8213
  // src/mongoose/Notification.ts
@@ -8588,6 +8617,7 @@ schema9.index({ description: 1 });
8588
8617
  schema9.index({ region: 1 });
8589
8618
  schema9.index({ "categories.name": 1 });
8590
8619
  schema9.index({ "associates.email": 1 });
8620
+ schema9.index({ slug: 1 });
8591
8621
  var VendorModel = import_mongoose13.default.models.Vendor || import_mongoose13.default.model("Vendor", schema9);
8592
8622
 
8593
8623
  // src/mongoose/vendor/VendorInfo.ts
@@ -8727,6 +8757,7 @@ schema12.index({ tags: 1 });
8727
8757
  schema12.index({ "associates.email": 1 });
8728
8758
  schema12.index({ deletedAt: 1 });
8729
8759
  schema12.index({ "dateTime.dateStatus": 1 });
8760
+ schema12.index({ slug: 1 });
8730
8761
  var EventModel = import_mongoose16.default.models.Event || import_mongoose16.default.model("Event", schema12);
8731
8762
 
8732
8763
  // src/mongoose/Partner.ts
@@ -8753,6 +8784,7 @@ schema13.index({ description: 1 });
8753
8784
  schema13.index({ region: 1 });
8754
8785
  schema13.index({ "location.geo": "2dsphere" });
8755
8786
  schema13.index({ "associates.email": 1 });
8787
+ schema13.index({ slug: 1 });
8756
8788
  var PartnerModel = import_mongoose17.default.models.Partner || import_mongoose17.default.model("Partner", schema13);
8757
8789
 
8758
8790
  // src/mongoose/Post.ts
@@ -8809,6 +8841,7 @@ var schema14 = new MongooseSchema18(
8809
8841
  );
8810
8842
  schema14.index({ title: 1 });
8811
8843
  schema14.index({ tags: 1 });
8844
+ schema14.index({ postType: 1, slug: 1 });
8812
8845
  var PostModel = import_mongoose18.default.models.Post || import_mongoose18.default.model("Post", schema14);
8813
8846
 
8814
8847
  // src/mongoose/AppSetting.ts