@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.
@@ -38,7 +38,7 @@ import {
38
38
  resourceRelationsSchema,
39
39
  termsAgreementSchema,
40
40
  userLicenseSchema
41
- } from "../chunk-UWJ7JKP4.mjs";
41
+ } from "../chunk-ZKPPP7DX.mjs";
42
42
  export {
43
43
  APP_SETTINGS_ID,
44
44
  AdModel,
@@ -5890,6 +5890,34 @@ var GET_POSTS_BY_TYPE = gql`
5890
5890
  }
5891
5891
  ${POST_FIELDS_FRAGMENT}
5892
5892
  `;
5893
+ var GET_EVENT_BY_SLUG = gql`
5894
+ query getEventBySlug($slug: String!) {
5895
+ eventBySlug(slug: $slug) {
5896
+ _id
5897
+ }
5898
+ }
5899
+ `;
5900
+ var GET_VENDOR_BY_SLUG = gql`
5901
+ query getVendorBySlug($slug: String!) {
5902
+ vendorBySlug(slug: $slug) {
5903
+ _id
5904
+ }
5905
+ }
5906
+ `;
5907
+ var GET_PARTNER_BY_SLUG = gql`
5908
+ query getPartnerBySlug($slug: String!) {
5909
+ partnerBySlug(slug: $slug) {
5910
+ _id
5911
+ }
5912
+ }
5913
+ `;
5914
+ var GET_POST_BY_SLUG = gql`
5915
+ query getPostBySlug($slug: String!, $postType: PostTypeEnum!) {
5916
+ postBySlug(slug: $slug, postType: $postType) {
5917
+ _id
5918
+ }
5919
+ }
5920
+ `;
5893
5921
  var RELATION_FIELDS_FRAGMENT = gql`
5894
5922
  fragment RelationFields on RelationType {
5895
5923
  _id
@@ -8238,6 +8266,7 @@ var relatedPostSchema = new MongooseSchema8(
8238
8266
  required: true,
8239
8267
  type: import_mongoose9.default.Schema.Types.ObjectId
8240
8268
  },
8269
+ postSlug: { required: true, type: String },
8241
8270
  postType: {
8242
8271
  enum: Object.values(EnumPostType),
8243
8272
  required: true,
@@ -8361,6 +8390,7 @@ schema5.index({ name: 1 });
8361
8390
  schema5.index({ region: 1 });
8362
8391
  schema5.index({ deletedAt: 1 });
8363
8392
  schema5.index({ "dateTime.dateStatus": 1 });
8393
+ schema5.index({ slug: 1 });
8364
8394
  var GoogleImportedMarketModel = import_mongoose10.default.models.GoogleImportedMarket || import_mongoose10.default.model("GoogleImportedMarket", schema5);
8365
8395
 
8366
8396
  // src/mongoose/ResourceActivity.ts
@@ -8706,6 +8736,7 @@ schema9.index({ description: 1 });
8706
8736
  schema9.index({ region: 1 });
8707
8737
  schema9.index({ "categories.name": 1 });
8708
8738
  schema9.index({ "associates.email": 1 });
8739
+ schema9.index({ slug: 1 });
8709
8740
  var VendorModel = import_mongoose14.default.models.Vendor || import_mongoose14.default.model("Vendor", schema9);
8710
8741
 
8711
8742
  // src/mongoose/vendor/VendorInfo.ts
@@ -8845,6 +8876,7 @@ schema12.index({ tags: 1 });
8845
8876
  schema12.index({ "associates.email": 1 });
8846
8877
  schema12.index({ deletedAt: 1 });
8847
8878
  schema12.index({ "dateTime.dateStatus": 1 });
8879
+ schema12.index({ slug: 1 });
8848
8880
  var EventModel = import_mongoose17.default.models.Event || import_mongoose17.default.model("Event", schema12);
8849
8881
 
8850
8882
  // src/mongoose/Partner.ts
@@ -8871,6 +8903,7 @@ schema13.index({ description: 1 });
8871
8903
  schema13.index({ region: 1 });
8872
8904
  schema13.index({ "location.geo": "2dsphere" });
8873
8905
  schema13.index({ "associates.email": 1 });
8906
+ schema13.index({ slug: 1 });
8874
8907
  var PartnerModel = import_mongoose18.default.models.Partner || import_mongoose18.default.model("Partner", schema13);
8875
8908
 
8876
8909
  // src/mongoose/Post.ts
@@ -8927,6 +8960,7 @@ var schema14 = new MongooseSchema18(
8927
8960
  );
8928
8961
  schema14.index({ title: 1 });
8929
8962
  schema14.index({ tags: 1 });
8963
+ schema14.index({ postType: 1, slug: 1 });
8930
8964
  var PostModel = import_mongoose19.default.models.Post || import_mongoose19.default.model("Post", schema14);
8931
8965
 
8932
8966
  // src/mongoose/AppSetting.ts