@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.
package/dist/index.cjs CHANGED
@@ -76,6 +76,8 @@ __export(index_exports, {
76
76
  resourceRelationsSchema: () => resourceRelationsSchema,
77
77
  saveNotificationsInDb: () => saveNotificationsInDb,
78
78
  sendPushNotifications: () => sendPushNotifications,
79
+ socialImageSchema: () => socialImageSchema,
80
+ socialImageUrlSchema: () => socialImageUrlSchema,
79
81
  termsAgreementSchema: () => termsAgreementSchema,
80
82
  updateAdStatuses: () => updateAdStatuses,
81
83
  updateAllEventDateTimeStatuses: () => updateAllEventDateTimeStatuses,
@@ -5196,6 +5198,23 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
5196
5198
  postType
5197
5199
  }
5198
5200
  `;
5201
+ var SOCIAL_IMAGE_URL_FIELDS_FRAGMENT = gql`
5202
+ fragment SocialImageUrlFields on SocialImageUrlType {
5203
+ url
5204
+ qrCode
5205
+ }
5206
+ `;
5207
+ var SOCIAL_IMAGE_FIELDS_FRAGMENT = gql`
5208
+ fragment SocialImageFields on SocialImageType {
5209
+ public {
5210
+ ...SocialImageUrlFields
5211
+ }
5212
+ relation {
5213
+ ...SocialImageUrlFields
5214
+ }
5215
+ }
5216
+ ${SOCIAL_IMAGE_URL_FIELDS_FRAGMENT}
5217
+ `;
5199
5218
  var EVENT_INFO = gql`
5200
5219
  fragment EventInfoFields on EventInfoType {
5201
5220
  _id
@@ -5291,6 +5310,9 @@ var EVENT = gql`
5291
5310
  socialMedia {
5292
5311
  ...SocialMediaFields
5293
5312
  }
5313
+ socialImage {
5314
+ ...SocialImageFields
5315
+ }
5294
5316
  tags
5295
5317
  termsAgreement {
5296
5318
  ...TermsAgreementFields
@@ -5308,6 +5330,7 @@ var EVENT = gql`
5308
5330
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5309
5331
  ${RELATION_DATES_FRAGMENT}
5310
5332
  ${RELATED_POST_FIELDS_FRAGMENT}
5333
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5311
5334
  `;
5312
5335
  var GET_EVENTS = gql`
5313
5336
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5486,6 +5509,9 @@ var VENDOR = gql`
5486
5509
  socialMedia {
5487
5510
  ...SocialMediaFields
5488
5511
  }
5512
+ socialImage {
5513
+ ...SocialImageFields
5514
+ }
5489
5515
  termsAgreement {
5490
5516
  ...TermsAgreementFields
5491
5517
  }
@@ -5506,6 +5532,7 @@ var VENDOR = gql`
5506
5532
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5507
5533
  ${RELATION_DATES_FRAGMENT}
5508
5534
  ${RELATED_POST_FIELDS_FRAGMENT}
5535
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5509
5536
  `;
5510
5537
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5511
5538
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5970,6 +5997,9 @@ var PARTNER = gql`
5970
5997
  socialMedia {
5971
5998
  ...SocialMediaFields
5972
5999
  }
6000
+ socialImage {
6001
+ ...SocialImageFields
6002
+ }
5973
6003
  termsAgreement {
5974
6004
  ...TermsAgreementFields
5975
6005
  }
@@ -5984,6 +6014,7 @@ var PARTNER = gql`
5984
6014
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5985
6015
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5986
6016
  ${RELATED_POST_FIELDS_FRAGMENT}
6017
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5987
6018
  `;
5988
6019
  var GET_PARTNERS = gql`
5989
6020
  query getPartners {
@@ -7908,6 +7939,22 @@ var relatedPostSchema = new MongooseSchema6(
7908
7939
  { _id: false }
7909
7940
  // Prevents Mongoose from creating an additional _id field for subdocuments
7910
7941
  );
7942
+ var socialImageUrlSchema = new MongooseSchema6(
7943
+ {
7944
+ qrCode: { required: true, type: String },
7945
+ url: { required: true, type: String }
7946
+ },
7947
+ { _id: false }
7948
+ // Prevents Mongoose from creating an additional _id field for subdocuments
7949
+ );
7950
+ var socialImageSchema = new MongooseSchema6(
7951
+ {
7952
+ public: { required: true, type: socialImageUrlSchema },
7953
+ relation: { required: false, type: socialImageUrlSchema }
7954
+ },
7955
+ { _id: false }
7956
+ // Prevents Mongoose from creating an additional _id field for subdocuments
7957
+ );
7911
7958
  var baseResourceFields = {
7912
7959
  active: { default: false, required: true, type: Boolean },
7913
7960
  adIds: {
@@ -7939,6 +7986,7 @@ var baseResourceFields = {
7939
7986
  region: { required: true, type: String },
7940
7987
  relatedPost: { required: false, type: relatedPostSchema },
7941
7988
  reviewCount: { required: false, type: Number },
7989
+ socialImage: { required: false, type: socialImageSchema },
7942
7990
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
7943
7991
  termsAgreement: { required: true, type: termsAgreementSchema }
7944
7992
  };
@@ -9473,6 +9521,8 @@ var EnumPubSubEvents = /* @__PURE__ */ ((EnumPubSubEvents2) => {
9473
9521
  resourceRelationsSchema,
9474
9522
  saveNotificationsInDb,
9475
9523
  sendPushNotifications,
9524
+ socialImageSchema,
9525
+ socialImageUrlSchema,
9476
9526
  termsAgreementSchema,
9477
9527
  updateAdStatuses,
9478
9528
  updateAllEventDateTimeStatuses,