@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.
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
@@ -8056,6 +8084,7 @@ var relatedPostSchema = new MongooseSchema6(
8056
8084
  required: true,
8057
8085
  type: import_mongoose6.default.Schema.Types.ObjectId
8058
8086
  },
8087
+ postSlug: { required: true, type: String },
8059
8088
  postType: {
8060
8089
  enum: Object.values(EnumPostType),
8061
8090
  required: true,
@@ -8179,6 +8208,7 @@ schema3.index({ name: 1 });
8179
8208
  schema3.index({ region: 1 });
8180
8209
  schema3.index({ deletedAt: 1 });
8181
8210
  schema3.index({ "dateTime.dateStatus": 1 });
8211
+ schema3.index({ slug: 1 });
8182
8212
  var GoogleImportedMarketModel = import_mongoose7.default.models.GoogleImportedMarket || import_mongoose7.default.model("GoogleImportedMarket", schema3);
8183
8213
 
8184
8214
  // src/mongoose/Notification.ts
@@ -8588,6 +8618,7 @@ schema9.index({ description: 1 });
8588
8618
  schema9.index({ region: 1 });
8589
8619
  schema9.index({ "categories.name": 1 });
8590
8620
  schema9.index({ "associates.email": 1 });
8621
+ schema9.index({ slug: 1 });
8591
8622
  var VendorModel = import_mongoose13.default.models.Vendor || import_mongoose13.default.model("Vendor", schema9);
8592
8623
 
8593
8624
  // src/mongoose/vendor/VendorInfo.ts
@@ -8727,6 +8758,7 @@ schema12.index({ tags: 1 });
8727
8758
  schema12.index({ "associates.email": 1 });
8728
8759
  schema12.index({ deletedAt: 1 });
8729
8760
  schema12.index({ "dateTime.dateStatus": 1 });
8761
+ schema12.index({ slug: 1 });
8730
8762
  var EventModel = import_mongoose16.default.models.Event || import_mongoose16.default.model("Event", schema12);
8731
8763
 
8732
8764
  // src/mongoose/Partner.ts
@@ -8753,6 +8785,7 @@ schema13.index({ description: 1 });
8753
8785
  schema13.index({ region: 1 });
8754
8786
  schema13.index({ "location.geo": "2dsphere" });
8755
8787
  schema13.index({ "associates.email": 1 });
8788
+ schema13.index({ slug: 1 });
8756
8789
  var PartnerModel = import_mongoose17.default.models.Partner || import_mongoose17.default.model("Partner", schema13);
8757
8790
 
8758
8791
  // src/mongoose/Post.ts
@@ -8809,6 +8842,7 @@ var schema14 = new MongooseSchema18(
8809
8842
  );
8810
8843
  schema14.index({ title: 1 });
8811
8844
  schema14.index({ tags: 1 });
8845
+ schema14.index({ postType: 1, slug: 1 });
8812
8846
  var PostModel = import_mongoose18.default.models.Post || import_mongoose18.default.model("Post", schema14);
8813
8847
 
8814
8848
  // src/mongoose/AppSetting.ts