@timardex/cluemart-server-shared 1.0.257 → 1.0.260

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.
@@ -5086,6 +5086,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
5086
5086
  postType
5087
5087
  }
5088
5088
  `;
5089
+ var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
5090
+ fragment SocialShareResourceFields on SocialShareResourceType {
5091
+ qrCode {
5092
+ ...ResourceImageFields
5093
+ }
5094
+ socialImage {
5095
+ ...ResourceImageFields
5096
+ }
5097
+ }
5098
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5099
+ `;
5089
5100
  var EVENT_INFO = gql`
5090
5101
  fragment EventInfoFields on EventInfoType {
5091
5102
  _id
@@ -5181,6 +5192,12 @@ var EVENT = gql`
5181
5192
  socialMedia {
5182
5193
  ...SocialMediaFields
5183
5194
  }
5195
+ sharePublic {
5196
+ ...SocialShareResourceFields
5197
+ }
5198
+ shareRelation {
5199
+ ...SocialShareResourceFields
5200
+ }
5184
5201
  slug
5185
5202
  tags
5186
5203
  termsAgreement {
@@ -5199,6 +5216,7 @@ var EVENT = gql`
5199
5216
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5200
5217
  ${RELATION_DATES_FRAGMENT}
5201
5218
  ${RELATED_POST_FIELDS_FRAGMENT}
5219
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5202
5220
  `;
5203
5221
  var GET_EVENTS = gql`
5204
5222
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5378,6 +5396,12 @@ var VENDOR = gql`
5378
5396
  socialMedia {
5379
5397
  ...SocialMediaFields
5380
5398
  }
5399
+ sharePublic {
5400
+ ...SocialShareResourceFields
5401
+ }
5402
+ shareRelation {
5403
+ ...SocialShareResourceFields
5404
+ }
5381
5405
  termsAgreement {
5382
5406
  ...TermsAgreementFields
5383
5407
  }
@@ -5398,6 +5422,7 @@ var VENDOR = gql`
5398
5422
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5399
5423
  ${RELATION_DATES_FRAGMENT}
5400
5424
  ${RELATED_POST_FIELDS_FRAGMENT}
5425
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5401
5426
  `;
5402
5427
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5403
5428
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5585,6 +5610,9 @@ var PARTNER = gql`
5585
5610
  ...SocialMediaFields
5586
5611
  }
5587
5612
  slug
5613
+ sharePublic {
5614
+ ...SocialShareResourceFields
5615
+ }
5588
5616
  termsAgreement {
5589
5617
  ...TermsAgreementFields
5590
5618
  }
@@ -5599,6 +5627,7 @@ var PARTNER = gql`
5599
5627
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5600
5628
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5601
5629
  ${RELATED_POST_FIELDS_FRAGMENT}
5630
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5602
5631
  `;
5603
5632
  var GET_PARTNERS = gql`
5604
5633
  query getPartners {
@@ -5767,6 +5796,14 @@ var POST_CONTENT_FIELDS_FRAGMENT = gql`
5767
5796
  }
5768
5797
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
5769
5798
  `;
5799
+ var POST_RESOURCE_FIELDS_FRAGMENT = gql`
5800
+ fragment PostResourceFields on PostResourceType {
5801
+ resourceId
5802
+ resourceSlug
5803
+ resourceRegion
5804
+ resourceType
5805
+ }
5806
+ `;
5770
5807
  var POST_FIELDS_FRAGMENT = gql`
5771
5808
  fragment PostFields on PostType {
5772
5809
  _id
@@ -5782,18 +5819,20 @@ var POST_FIELDS_FRAGMENT = gql`
5782
5819
  deletedAt
5783
5820
  postType
5784
5821
  resource {
5785
- resourceId
5786
- resourceSlug
5787
- resourceRegion
5788
- resourceType
5822
+ ...PostResourceFields
5789
5823
  }
5790
5824
  tags
5791
5825
  title
5792
5826
  slug
5827
+ sharePublic {
5828
+ ...SocialShareResourceFields
5829
+ }
5793
5830
  updatedAt
5794
5831
  }
5795
5832
  ${POST_CONTENT_FIELDS_FRAGMENT}
5796
5833
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5834
+ ${POST_RESOURCE_FIELDS_FRAGMENT}
5835
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5797
5836
  `;
5798
5837
  var GET_POSTS = gql`
5799
5838
  query getPosts {
@@ -7833,7 +7872,7 @@ var SocialMediaTypeSchema = new MongooseSchema6(
7833
7872
  );
7834
7873
  var ResourceImageTypeSchema = new MongooseSchema6(
7835
7874
  {
7836
- active: { default: true, type: Boolean },
7875
+ active: { default: true, required: true, type: Boolean },
7837
7876
  source: { required: false, type: String },
7838
7877
  title: { required: false, type: String }
7839
7878
  },
@@ -8041,6 +8080,14 @@ var baseResourceFields = {
8041
8080
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
8042
8081
  termsAgreement: { required: true, type: termsAgreementSchema }
8043
8082
  };
8083
+ var socialShareResourceSchema = new MongooseSchema6(
8084
+ {
8085
+ qrCode: { required: true, type: ResourceImageTypeSchema },
8086
+ socialImage: { required: true, type: ResourceImageTypeSchema }
8087
+ },
8088
+ { _id: false }
8089
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8090
+ );
8044
8091
 
8045
8092
  // src/mongoose/GoogleImportedMarket.ts
8046
8093
  import mongoose7 from "mongoose";
@@ -8507,6 +8554,8 @@ var schema9 = new MongooseSchema13(
8507
8554
  required: false,
8508
8555
  type: [resourceRelationsSchema]
8509
8556
  },
8557
+ sharePublic: { required: false, type: socialShareResourceSchema },
8558
+ shareRelation: { required: false, type: socialShareResourceSchema },
8510
8559
  unregisteredVendorId: {
8511
8560
  ref: "UnregisteredVendor",
8512
8561
  required: false,
@@ -8658,6 +8707,8 @@ var schema12 = new MongooseSchema16(
8658
8707
  required: false,
8659
8708
  type: [resourceRelationsSchema]
8660
8709
  },
8710
+ sharePublic: { required: false, type: socialShareResourceSchema },
8711
+ shareRelation: { required: false, type: socialShareResourceSchema },
8661
8712
  tags: { required: true, type: [String] }
8662
8713
  },
8663
8714
  { timestamps: true }
@@ -8688,7 +8739,8 @@ var schema13 = new MongooseSchema17(
8688
8739
  enum: Object.values(EnumPartnerType),
8689
8740
  required: true,
8690
8741
  type: String
8691
- }
8742
+ },
8743
+ sharePublic: { required: false, type: socialShareResourceSchema }
8692
8744
  },
8693
8745
  { timestamps: true }
8694
8746
  );
@@ -8751,6 +8803,7 @@ var schema14 = new MongooseSchema18(
8751
8803
  required: false,
8752
8804
  type: resourceSchema
8753
8805
  },
8806
+ sharePublic: { required: false, type: socialShareResourceSchema },
8754
8807
  slug: { required: true, type: String },
8755
8808
  tags: { default: [], required: false, type: [String] },
8756
8809
  title: { required: true, type: String }
@@ -8759,7 +8812,7 @@ var schema14 = new MongooseSchema18(
8759
8812
  );
8760
8813
  schema14.index({ title: 1 });
8761
8814
  schema14.index({ tags: 1 });
8762
- schema14.index({ postType: 1, slug: 1 });
8815
+ schema14.index({ postType: 1, slug: 1 }, { unique: true });
8763
8816
  var PostModel = mongoose18.models.Post || mongoose18.model("Post", schema14);
8764
8817
 
8765
8818
  // src/mongoose/AppSetting.ts
@@ -9022,6 +9075,7 @@ export {
9022
9075
  locationsSchema,
9023
9076
  relatedPostSchema,
9024
9077
  baseResourceFields,
9078
+ socialShareResourceSchema,
9025
9079
  GoogleImportedMarketModel,
9026
9080
  NotificationModel,
9027
9081
  PushTokenModel,
@@ -9039,4 +9093,4 @@ export {
9039
9093
  GameModel,
9040
9094
  SchoolModel
9041
9095
  };
9042
- //# sourceMappingURL=chunk-LG23YZU7.mjs.map
9096
+ //# sourceMappingURL=chunk-JFVETLOC.mjs.map