@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.
@@ -67,6 +67,7 @@ __export(mongoose_exports, {
67
67
  relatedPostSchema: () => relatedPostSchema,
68
68
  relationDatesSchema: () => relationDatesSchema,
69
69
  resourceRelationsSchema: () => resourceRelationsSchema,
70
+ socialShareResourceSchema: () => socialShareResourceSchema,
70
71
  termsAgreementSchema: () => termsAgreementSchema,
71
72
  userLicenseSchema: () => userLicenseSchema
72
73
  });
@@ -5158,6 +5159,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
5158
5159
  postType
5159
5160
  }
5160
5161
  `;
5162
+ var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
5163
+ fragment SocialShareResourceFields on SocialShareResourceType {
5164
+ qrCode {
5165
+ ...ResourceImageFields
5166
+ }
5167
+ socialImage {
5168
+ ...ResourceImageFields
5169
+ }
5170
+ }
5171
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5172
+ `;
5161
5173
  var EVENT_INFO = gql`
5162
5174
  fragment EventInfoFields on EventInfoType {
5163
5175
  _id
@@ -5253,6 +5265,12 @@ var EVENT = gql`
5253
5265
  socialMedia {
5254
5266
  ...SocialMediaFields
5255
5267
  }
5268
+ sharePublic {
5269
+ ...SocialShareResourceFields
5270
+ }
5271
+ shareRelation {
5272
+ ...SocialShareResourceFields
5273
+ }
5256
5274
  slug
5257
5275
  tags
5258
5276
  termsAgreement {
@@ -5271,6 +5289,7 @@ var EVENT = gql`
5271
5289
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5272
5290
  ${RELATION_DATES_FRAGMENT}
5273
5291
  ${RELATED_POST_FIELDS_FRAGMENT}
5292
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5274
5293
  `;
5275
5294
  var GET_EVENTS = gql`
5276
5295
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5450,6 +5469,12 @@ var VENDOR = gql`
5450
5469
  socialMedia {
5451
5470
  ...SocialMediaFields
5452
5471
  }
5472
+ sharePublic {
5473
+ ...SocialShareResourceFields
5474
+ }
5475
+ shareRelation {
5476
+ ...SocialShareResourceFields
5477
+ }
5453
5478
  termsAgreement {
5454
5479
  ...TermsAgreementFields
5455
5480
  }
@@ -5470,6 +5495,7 @@ var VENDOR = gql`
5470
5495
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5471
5496
  ${RELATION_DATES_FRAGMENT}
5472
5497
  ${RELATED_POST_FIELDS_FRAGMENT}
5498
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5473
5499
  `;
5474
5500
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5475
5501
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5657,6 +5683,9 @@ var PARTNER = gql`
5657
5683
  ...SocialMediaFields
5658
5684
  }
5659
5685
  slug
5686
+ sharePublic {
5687
+ ...SocialShareResourceFields
5688
+ }
5660
5689
  termsAgreement {
5661
5690
  ...TermsAgreementFields
5662
5691
  }
@@ -5671,6 +5700,7 @@ var PARTNER = gql`
5671
5700
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5672
5701
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5673
5702
  ${RELATED_POST_FIELDS_FRAGMENT}
5703
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5674
5704
  `;
5675
5705
  var GET_PARTNERS = gql`
5676
5706
  query getPartners {
@@ -5867,11 +5897,15 @@ var POST_FIELDS_FRAGMENT = gql`
5867
5897
  tags
5868
5898
  title
5869
5899
  slug
5900
+ sharePublic {
5901
+ ...SocialShareResourceFields
5902
+ }
5870
5903
  updatedAt
5871
5904
  }
5872
5905
  ${POST_CONTENT_FIELDS_FRAGMENT}
5873
5906
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5874
5907
  ${POST_RESOURCE_FIELDS_FRAGMENT}
5908
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5875
5909
  `;
5876
5910
  var GET_POSTS = gql`
5877
5911
  query getPosts {
@@ -8119,6 +8153,14 @@ var baseResourceFields = {
8119
8153
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
8120
8154
  termsAgreement: { required: true, type: termsAgreementSchema }
8121
8155
  };
8156
+ var socialShareResourceSchema = new MongooseSchema6(
8157
+ {
8158
+ qrCode: { required: true, type: ResourceImageTypeSchema },
8159
+ socialImage: { required: true, type: ResourceImageTypeSchema }
8160
+ },
8161
+ { _id: false }
8162
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8163
+ );
8122
8164
 
8123
8165
  // src/mongoose/GoogleImportedMarket.ts
8124
8166
  var import_mongoose7 = __toESM(require("mongoose"));
@@ -8585,6 +8627,8 @@ var schema9 = new MongooseSchema13(
8585
8627
  required: false,
8586
8628
  type: [resourceRelationsSchema]
8587
8629
  },
8630
+ sharePublic: { required: false, type: socialShareResourceSchema },
8631
+ shareRelation: { required: false, type: socialShareResourceSchema },
8588
8632
  unregisteredVendorId: {
8589
8633
  ref: "UnregisteredVendor",
8590
8634
  required: false,
@@ -8736,6 +8780,8 @@ var schema12 = new MongooseSchema16(
8736
8780
  required: false,
8737
8781
  type: [resourceRelationsSchema]
8738
8782
  },
8783
+ sharePublic: { required: false, type: socialShareResourceSchema },
8784
+ shareRelation: { required: false, type: socialShareResourceSchema },
8739
8785
  tags: { required: true, type: [String] }
8740
8786
  },
8741
8787
  { timestamps: true }
@@ -8766,7 +8812,8 @@ var schema13 = new MongooseSchema17(
8766
8812
  enum: Object.values(EnumPartnerType),
8767
8813
  required: true,
8768
8814
  type: String
8769
- }
8815
+ },
8816
+ sharePublic: { required: false, type: socialShareResourceSchema }
8770
8817
  },
8771
8818
  { timestamps: true }
8772
8819
  );
@@ -8829,6 +8876,7 @@ var schema14 = new MongooseSchema18(
8829
8876
  required: false,
8830
8877
  type: resourceSchema
8831
8878
  },
8879
+ sharePublic: { required: false, type: socialShareResourceSchema },
8832
8880
  slug: { required: true, type: String },
8833
8881
  tags: { default: [], required: false, type: [String] },
8834
8882
  title: { required: true, type: String }
@@ -9106,6 +9154,7 @@ var SchoolModel = import_mongoose24.default.models.School || import_mongoose24.d
9106
9154
  relatedPostSchema,
9107
9155
  relationDatesSchema,
9108
9156
  resourceRelationsSchema,
9157
+ socialShareResourceSchema,
9109
9158
  termsAgreementSchema,
9110
9159
  userLicenseSchema
9111
9160
  });