@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.
@@ -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 {
@@ -5795,11 +5824,15 @@ var POST_FIELDS_FRAGMENT = gql`
5795
5824
  tags
5796
5825
  title
5797
5826
  slug
5827
+ sharePublic {
5828
+ ...SocialShareResourceFields
5829
+ }
5798
5830
  updatedAt
5799
5831
  }
5800
5832
  ${POST_CONTENT_FIELDS_FRAGMENT}
5801
5833
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5802
5834
  ${POST_RESOURCE_FIELDS_FRAGMENT}
5835
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5803
5836
  `;
5804
5837
  var GET_POSTS = gql`
5805
5838
  query getPosts {
@@ -8047,6 +8080,14 @@ var baseResourceFields = {
8047
8080
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
8048
8081
  termsAgreement: { required: true, type: termsAgreementSchema }
8049
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
+ );
8050
8091
 
8051
8092
  // src/mongoose/GoogleImportedMarket.ts
8052
8093
  import mongoose7 from "mongoose";
@@ -8513,6 +8554,8 @@ var schema9 = new MongooseSchema13(
8513
8554
  required: false,
8514
8555
  type: [resourceRelationsSchema]
8515
8556
  },
8557
+ sharePublic: { required: false, type: socialShareResourceSchema },
8558
+ shareRelation: { required: false, type: socialShareResourceSchema },
8516
8559
  unregisteredVendorId: {
8517
8560
  ref: "UnregisteredVendor",
8518
8561
  required: false,
@@ -8664,6 +8707,8 @@ var schema12 = new MongooseSchema16(
8664
8707
  required: false,
8665
8708
  type: [resourceRelationsSchema]
8666
8709
  },
8710
+ sharePublic: { required: false, type: socialShareResourceSchema },
8711
+ shareRelation: { required: false, type: socialShareResourceSchema },
8667
8712
  tags: { required: true, type: [String] }
8668
8713
  },
8669
8714
  { timestamps: true }
@@ -8694,7 +8739,8 @@ var schema13 = new MongooseSchema17(
8694
8739
  enum: Object.values(EnumPartnerType),
8695
8740
  required: true,
8696
8741
  type: String
8697
- }
8742
+ },
8743
+ sharePublic: { required: false, type: socialShareResourceSchema }
8698
8744
  },
8699
8745
  { timestamps: true }
8700
8746
  );
@@ -8757,6 +8803,7 @@ var schema14 = new MongooseSchema18(
8757
8803
  required: false,
8758
8804
  type: resourceSchema
8759
8805
  },
8806
+ sharePublic: { required: false, type: socialShareResourceSchema },
8760
8807
  slug: { required: true, type: String },
8761
8808
  tags: { default: [], required: false, type: [String] },
8762
8809
  title: { required: true, type: String }
@@ -9028,6 +9075,7 @@ export {
9028
9075
  locationsSchema,
9029
9076
  relatedPostSchema,
9030
9077
  baseResourceFields,
9078
+ socialShareResourceSchema,
9031
9079
  GoogleImportedMarketModel,
9032
9080
  NotificationModel,
9033
9081
  PushTokenModel,
@@ -9045,4 +9093,4 @@ export {
9045
9093
  GameModel,
9046
9094
  SchoolModel
9047
9095
  };
9048
- //# sourceMappingURL=chunk-RZ3OQKLX.mjs.map
9096
+ //# sourceMappingURL=chunk-JFVETLOC.mjs.map