@timardex/cluemart-server-shared 1.0.253 → 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.d.mts CHANGED
@@ -669,10 +669,11 @@ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoo
669
669
  }, any>;
670
670
 
671
671
  type SchemaPostType = PostType;
672
- declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "content" | "coverUpload"> & {
672
+ declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
673
673
  _id: string;
674
674
  content: PostContentType[];
675
675
  slug: string;
676
+ resource?: _timardex_cluemart_shared.PostResource | null;
676
677
  createdAt: Date;
677
678
  deletedAt: Date | null;
678
679
  updatedAt: Date | null;
package/dist/index.d.ts CHANGED
@@ -669,10 +669,11 @@ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoo
669
669
  }, any>;
670
670
 
671
671
  type SchemaPostType = PostType;
672
- declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "content" | "coverUpload"> & {
672
+ declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
673
673
  _id: string;
674
674
  content: PostContentType[];
675
675
  slug: string;
676
+ resource?: _timardex_cluemart_shared.PostResource | null;
676
677
  createdAt: Date;
677
678
  deletedAt: Date | null;
678
679
  updatedAt: Date | null;
package/dist/index.mjs CHANGED
@@ -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
@@ -8091,6 +8119,7 @@ schema3.index({ name: 1 });
8091
8119
  schema3.index({ region: 1 });
8092
8120
  schema3.index({ deletedAt: 1 });
8093
8121
  schema3.index({ "dateTime.dateStatus": 1 });
8122
+ schema3.index({ slug: 1 });
8094
8123
  var GoogleImportedMarketModel = mongoose7.models.GoogleImportedMarket || mongoose7.model("GoogleImportedMarket", schema3);
8095
8124
 
8096
8125
  // src/mongoose/Notification.ts
@@ -8500,6 +8529,7 @@ schema9.index({ description: 1 });
8500
8529
  schema9.index({ region: 1 });
8501
8530
  schema9.index({ "categories.name": 1 });
8502
8531
  schema9.index({ "associates.email": 1 });
8532
+ schema9.index({ slug: 1 });
8503
8533
  var VendorModel = mongoose13.models.Vendor || mongoose13.model("Vendor", schema9);
8504
8534
 
8505
8535
  // src/mongoose/vendor/VendorInfo.ts
@@ -8639,6 +8669,7 @@ schema12.index({ tags: 1 });
8639
8669
  schema12.index({ "associates.email": 1 });
8640
8670
  schema12.index({ deletedAt: 1 });
8641
8671
  schema12.index({ "dateTime.dateStatus": 1 });
8672
+ schema12.index({ slug: 1 });
8642
8673
  var EventModel = mongoose16.models.Event || mongoose16.model("Event", schema12);
8643
8674
 
8644
8675
  // src/mongoose/Partner.ts
@@ -8665,6 +8696,7 @@ schema13.index({ description: 1 });
8665
8696
  schema13.index({ region: 1 });
8666
8697
  schema13.index({ "location.geo": "2dsphere" });
8667
8698
  schema13.index({ "associates.email": 1 });
8699
+ schema13.index({ slug: 1 });
8668
8700
  var PartnerModel = mongoose17.models.Partner || mongoose17.model("Partner", schema13);
8669
8701
 
8670
8702
  // src/mongoose/Post.ts
@@ -8721,6 +8753,7 @@ var schema14 = new MongooseSchema18(
8721
8753
  );
8722
8754
  schema14.index({ title: 1 });
8723
8755
  schema14.index({ tags: 1 });
8756
+ schema14.index({ postType: 1, slug: 1 });
8724
8757
  var PostModel = mongoose18.models.Post || mongoose18.model("Post", schema14);
8725
8758
 
8726
8759
  // src/mongoose/AppSetting.ts