@timardex/cluemart-server-shared 1.0.259 → 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.
package/dist/index.cjs CHANGED
@@ -76,6 +76,7 @@ __export(index_exports, {
76
76
  resourceRelationsSchema: () => resourceRelationsSchema,
77
77
  saveNotificationsInDb: () => saveNotificationsInDb,
78
78
  sendPushNotifications: () => sendPushNotifications,
79
+ socialShareResourceSchema: () => socialShareResourceSchema,
79
80
  termsAgreementSchema: () => termsAgreementSchema,
80
81
  updateAdStatuses: () => updateAdStatuses,
81
82
  updateAllEventDateTimeStatuses: () => updateAllEventDateTimeStatuses,
@@ -5174,6 +5175,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
5174
5175
  postType
5175
5176
  }
5176
5177
  `;
5178
+ var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
5179
+ fragment SocialShareResourceFields on SocialShareResourceType {
5180
+ qrCode {
5181
+ ...ResourceImageFields
5182
+ }
5183
+ socialImage {
5184
+ ...ResourceImageFields
5185
+ }
5186
+ }
5187
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5188
+ `;
5177
5189
  var EVENT_INFO = gql`
5178
5190
  fragment EventInfoFields on EventInfoType {
5179
5191
  _id
@@ -5269,6 +5281,12 @@ var EVENT = gql`
5269
5281
  socialMedia {
5270
5282
  ...SocialMediaFields
5271
5283
  }
5284
+ sharePublic {
5285
+ ...SocialShareResourceFields
5286
+ }
5287
+ shareRelation {
5288
+ ...SocialShareResourceFields
5289
+ }
5272
5290
  slug
5273
5291
  tags
5274
5292
  termsAgreement {
@@ -5287,6 +5305,7 @@ var EVENT = gql`
5287
5305
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5288
5306
  ${RELATION_DATES_FRAGMENT}
5289
5307
  ${RELATED_POST_FIELDS_FRAGMENT}
5308
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5290
5309
  `;
5291
5310
  var GET_EVENTS = gql`
5292
5311
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5466,6 +5485,12 @@ var VENDOR = gql`
5466
5485
  socialMedia {
5467
5486
  ...SocialMediaFields
5468
5487
  }
5488
+ sharePublic {
5489
+ ...SocialShareResourceFields
5490
+ }
5491
+ shareRelation {
5492
+ ...SocialShareResourceFields
5493
+ }
5469
5494
  termsAgreement {
5470
5495
  ...TermsAgreementFields
5471
5496
  }
@@ -5486,6 +5511,7 @@ var VENDOR = gql`
5486
5511
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5487
5512
  ${RELATION_DATES_FRAGMENT}
5488
5513
  ${RELATED_POST_FIELDS_FRAGMENT}
5514
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5489
5515
  `;
5490
5516
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5491
5517
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5673,6 +5699,9 @@ var PARTNER = gql`
5673
5699
  ...SocialMediaFields
5674
5700
  }
5675
5701
  slug
5702
+ sharePublic {
5703
+ ...SocialShareResourceFields
5704
+ }
5676
5705
  termsAgreement {
5677
5706
  ...TermsAgreementFields
5678
5707
  }
@@ -5687,6 +5716,7 @@ var PARTNER = gql`
5687
5716
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5688
5717
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5689
5718
  ${RELATED_POST_FIELDS_FRAGMENT}
5719
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5690
5720
  `;
5691
5721
  var GET_PARTNERS = gql`
5692
5722
  query getPartners {
@@ -5883,11 +5913,15 @@ var POST_FIELDS_FRAGMENT = gql`
5883
5913
  tags
5884
5914
  title
5885
5915
  slug
5916
+ sharePublic {
5917
+ ...SocialShareResourceFields
5918
+ }
5886
5919
  updatedAt
5887
5920
  }
5888
5921
  ${POST_CONTENT_FIELDS_FRAGMENT}
5889
5922
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5890
5923
  ${POST_RESOURCE_FIELDS_FRAGMENT}
5924
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5891
5925
  `;
5892
5926
  var GET_POSTS = gql`
5893
5927
  query getPosts {
@@ -8135,6 +8169,14 @@ var baseResourceFields = {
8135
8169
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
8136
8170
  termsAgreement: { required: true, type: termsAgreementSchema }
8137
8171
  };
8172
+ var socialShareResourceSchema = new MongooseSchema6(
8173
+ {
8174
+ qrCode: { required: true, type: ResourceImageTypeSchema },
8175
+ socialImage: { required: true, type: ResourceImageTypeSchema }
8176
+ },
8177
+ { _id: false }
8178
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8179
+ );
8138
8180
 
8139
8181
  // src/mongoose/GoogleImportedMarket.ts
8140
8182
  var import_mongoose7 = __toESM(require("mongoose"));
@@ -8601,6 +8643,8 @@ var schema9 = new MongooseSchema13(
8601
8643
  required: false,
8602
8644
  type: [resourceRelationsSchema]
8603
8645
  },
8646
+ sharePublic: { required: false, type: socialShareResourceSchema },
8647
+ shareRelation: { required: false, type: socialShareResourceSchema },
8604
8648
  unregisteredVendorId: {
8605
8649
  ref: "UnregisteredVendor",
8606
8650
  required: false,
@@ -8752,6 +8796,8 @@ var schema12 = new MongooseSchema16(
8752
8796
  required: false,
8753
8797
  type: [resourceRelationsSchema]
8754
8798
  },
8799
+ sharePublic: { required: false, type: socialShareResourceSchema },
8800
+ shareRelation: { required: false, type: socialShareResourceSchema },
8755
8801
  tags: { required: true, type: [String] }
8756
8802
  },
8757
8803
  { timestamps: true }
@@ -8782,7 +8828,8 @@ var schema13 = new MongooseSchema17(
8782
8828
  enum: Object.values(EnumPartnerType),
8783
8829
  required: true,
8784
8830
  type: String
8785
- }
8831
+ },
8832
+ sharePublic: { required: false, type: socialShareResourceSchema }
8786
8833
  },
8787
8834
  { timestamps: true }
8788
8835
  );
@@ -8845,6 +8892,7 @@ var schema14 = new MongooseSchema18(
8845
8892
  required: false,
8846
8893
  type: resourceSchema
8847
8894
  },
8895
+ sharePublic: { required: false, type: socialShareResourceSchema },
8848
8896
  slug: { required: true, type: String },
8849
8897
  tags: { default: [], required: false, type: [String] },
8850
8898
  title: { required: true, type: String }
@@ -9677,6 +9725,7 @@ var EnumPubSubEvents = /* @__PURE__ */ ((EnumPubSubEvents2) => {
9677
9725
  resourceRelationsSchema,
9678
9726
  saveNotificationsInDb,
9679
9727
  sendPushNotifications,
9728
+ socialShareResourceSchema,
9680
9729
  termsAgreementSchema,
9681
9730
  updateAdStatuses,
9682
9731
  updateAllEventDateTimeStatuses,