@timardex/cluemart-server-shared 1.0.214 → 1.0.215

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,8 @@ __export(mongoose_exports, {
67
67
  relatedPostSchema: () => relatedPostSchema,
68
68
  relationDatesSchema: () => relationDatesSchema,
69
69
  resourceRelationsSchema: () => resourceRelationsSchema,
70
+ socialImageSchema: () => socialImageSchema,
71
+ socialImageUrlSchema: () => socialImageUrlSchema,
70
72
  termsAgreementSchema: () => termsAgreementSchema,
71
73
  userLicenseSchema: () => userLicenseSchema
72
74
  });
@@ -5180,6 +5182,23 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
5180
5182
  postType
5181
5183
  }
5182
5184
  `;
5185
+ var SOCIAL_IMAGE_URL_FIELDS_FRAGMENT = gql`
5186
+ fragment SocialImageUrlFields on SocialImageUrlType {
5187
+ url
5188
+ qrCode
5189
+ }
5190
+ `;
5191
+ var SOCIAL_IMAGE_FIELDS_FRAGMENT = gql`
5192
+ fragment SocialImageFields on SocialImageType {
5193
+ public {
5194
+ ...SocialImageUrlFields
5195
+ }
5196
+ relation {
5197
+ ...SocialImageUrlFields
5198
+ }
5199
+ }
5200
+ ${SOCIAL_IMAGE_URL_FIELDS_FRAGMENT}
5201
+ `;
5183
5202
  var EVENT_INFO = gql`
5184
5203
  fragment EventInfoFields on EventInfoType {
5185
5204
  _id
@@ -5275,6 +5294,9 @@ var EVENT = gql`
5275
5294
  socialMedia {
5276
5295
  ...SocialMediaFields
5277
5296
  }
5297
+ socialImage {
5298
+ ...SocialImageFields
5299
+ }
5278
5300
  tags
5279
5301
  termsAgreement {
5280
5302
  ...TermsAgreementFields
@@ -5292,6 +5314,7 @@ var EVENT = gql`
5292
5314
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5293
5315
  ${RELATION_DATES_FRAGMENT}
5294
5316
  ${RELATED_POST_FIELDS_FRAGMENT}
5317
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5295
5318
  `;
5296
5319
  var GET_EVENTS = gql`
5297
5320
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5470,6 +5493,9 @@ var VENDOR = gql`
5470
5493
  socialMedia {
5471
5494
  ...SocialMediaFields
5472
5495
  }
5496
+ socialImage {
5497
+ ...SocialImageFields
5498
+ }
5473
5499
  termsAgreement {
5474
5500
  ...TermsAgreementFields
5475
5501
  }
@@ -5490,6 +5516,7 @@ var VENDOR = gql`
5490
5516
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5491
5517
  ${RELATION_DATES_FRAGMENT}
5492
5518
  ${RELATED_POST_FIELDS_FRAGMENT}
5519
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5493
5520
  `;
5494
5521
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5495
5522
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5954,6 +5981,9 @@ var PARTNER = gql`
5954
5981
  socialMedia {
5955
5982
  ...SocialMediaFields
5956
5983
  }
5984
+ socialImage {
5985
+ ...SocialImageFields
5986
+ }
5957
5987
  termsAgreement {
5958
5988
  ...TermsAgreementFields
5959
5989
  }
@@ -5968,6 +5998,7 @@ var PARTNER = gql`
5968
5998
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5969
5999
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5970
6000
  ${RELATED_POST_FIELDS_FRAGMENT}
6001
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5971
6002
  `;
5972
6003
  var GET_PARTNERS = gql`
5973
6004
  query getPartners {
@@ -7892,6 +7923,22 @@ var relatedPostSchema = new MongooseSchema6(
7892
7923
  { _id: false }
7893
7924
  // Prevents Mongoose from creating an additional _id field for subdocuments
7894
7925
  );
7926
+ var socialImageUrlSchema = new MongooseSchema6(
7927
+ {
7928
+ qrCode: { required: true, type: String },
7929
+ url: { required: true, type: String }
7930
+ },
7931
+ { _id: false }
7932
+ // Prevents Mongoose from creating an additional _id field for subdocuments
7933
+ );
7934
+ var socialImageSchema = new MongooseSchema6(
7935
+ {
7936
+ public: { required: true, type: socialImageUrlSchema },
7937
+ relation: { required: false, type: socialImageUrlSchema }
7938
+ },
7939
+ { _id: false }
7940
+ // Prevents Mongoose from creating an additional _id field for subdocuments
7941
+ );
7895
7942
  var baseResourceFields = {
7896
7943
  active: { default: false, required: true, type: Boolean },
7897
7944
  adIds: {
@@ -7923,6 +7970,7 @@ var baseResourceFields = {
7923
7970
  region: { required: true, type: String },
7924
7971
  relatedPost: { required: false, type: relatedPostSchema },
7925
7972
  reviewCount: { required: false, type: Number },
7973
+ socialImage: { required: false, type: socialImageSchema },
7926
7974
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
7927
7975
  termsAgreement: { required: true, type: termsAgreementSchema }
7928
7976
  };
@@ -8902,6 +8950,8 @@ var SchoolModel = import_mongoose24.default.models.School || import_mongoose24.d
8902
8950
  relatedPostSchema,
8903
8951
  relationDatesSchema,
8904
8952
  resourceRelationsSchema,
8953
+ socialImageSchema,
8954
+ socialImageUrlSchema,
8905
8955
  termsAgreementSchema,
8906
8956
  userLicenseSchema
8907
8957
  });