@timardex/cluemart-server-shared 1.0.257 → 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.
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
2
+ import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, SocialShareResourceType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
3
3
  import mongoose from 'mongoose';
4
4
  import { O as ObjectId } from '../Chat-DYkhie3G.mjs';
5
5
  export { C as ChatModel, N as NotificationModel, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DYkhie3G.mjs';
@@ -349,6 +349,15 @@ declare const baseResourceFields: {
349
349
  }>;
350
350
  };
351
351
  };
352
+ declare const socialShareResourceSchema: mongoose.Schema<SocialShareResourceType, mongoose.Model<SocialShareResourceType, any, any, any, mongoose.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
353
+ _id: mongoose.Types.ObjectId;
354
+ } & {
355
+ __v: number;
356
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialShareResourceType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialShareResourceType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialShareResourceType> & {
357
+ _id: mongoose.Types.ObjectId;
358
+ } & {
359
+ __v: number;
360
+ }>;
352
361
 
353
362
  type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
354
363
  eventId?: mongoose.Types.ObjectId;
@@ -453,7 +462,7 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
453
462
  vendorInfoId: ObjectId;
454
463
  unregisteredVendorId?: ObjectId | null;
455
464
  };
456
- declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds" | "unregisteredVendorId"> & {
465
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
457
466
  adIds?: ObjectId[];
458
467
  owner: SchemaOwnerType;
459
468
  vendorInfoId: ObjectId;
@@ -496,7 +505,7 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
496
505
  eventInfoId: ObjectId;
497
506
  owner: SchemaOwnerType;
498
507
  };
499
- declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
508
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
500
509
  adIds?: ObjectId[];
501
510
  eventInfoId: ObjectId;
502
511
  owner: SchemaOwnerType;
@@ -539,7 +548,7 @@ type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
539
548
  adIds?: ObjectId[];
540
549
  owner: SchemaOwnerType;
541
550
  };
542
- declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "owner" | "adIds"> & {
551
+ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
543
552
  adIds?: ObjectId[];
544
553
  owner: SchemaOwnerType;
545
554
  } & Required<{
@@ -552,10 +561,11 @@ type SchemaPostType = PostType;
552
561
  declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
553
562
  _id: string;
554
563
  content: PostContentType[];
555
- slug: string;
556
- resource?: PostResource | null;
557
564
  createdAt: Date;
558
565
  deletedAt: Date | null;
566
+ resource?: PostResource | null;
567
+ slug: string;
568
+ sharePublic?: _timardex_cluemart_shared.SocialShareResourceType | null;
559
569
  updatedAt: Date | null;
560
570
  } & Required<{
561
571
  _id: string;
@@ -593,4 +603,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
593
603
  __v: number;
594
604
  }, any>;
595
605
 
596
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
606
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, socialShareResourceSchema, termsAgreementSchema, userLicenseSchema };
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
2
+ import { AdType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, SocialShareResourceType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType } from '@timardex/cluemart-shared';
3
3
  import mongoose from 'mongoose';
4
4
  import { O as ObjectId } from '../Chat-DYkhie3G.js';
5
5
  export { C as ChatModel, N as NotificationModel, a as SchemaChatMessageReactionType, S as SchemaChatMessageReplyPreviewType, b as SchemaChatMessageSeenType, c as SchemaChatMessageType, e as SchemaChatType, f as SchemaCreateBulkNotificationInput, g as SchemaNotificationType, d as SchemaParticipantType } from '../Chat-DYkhie3G.js';
@@ -349,6 +349,15 @@ declare const baseResourceFields: {
349
349
  }>;
350
350
  };
351
351
  };
352
+ declare const socialShareResourceSchema: mongoose.Schema<SocialShareResourceType, mongoose.Model<SocialShareResourceType, any, any, any, mongoose.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
353
+ _id: mongoose.Types.ObjectId;
354
+ } & {
355
+ __v: number;
356
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialShareResourceType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialShareResourceType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialShareResourceType> & {
357
+ _id: mongoose.Types.ObjectId;
358
+ } & {
359
+ __v: number;
360
+ }>;
352
361
 
353
362
  type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
354
363
  eventId?: mongoose.Types.ObjectId;
@@ -453,7 +462,7 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
453
462
  vendorInfoId: ObjectId;
454
463
  unregisteredVendorId?: ObjectId | null;
455
464
  };
456
- declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds" | "unregisteredVendorId"> & {
465
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
457
466
  adIds?: ObjectId[];
458
467
  owner: SchemaOwnerType;
459
468
  vendorInfoId: ObjectId;
@@ -496,7 +505,7 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
496
505
  eventInfoId: ObjectId;
497
506
  owner: SchemaOwnerType;
498
507
  };
499
- declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
508
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
500
509
  adIds?: ObjectId[];
501
510
  eventInfoId: ObjectId;
502
511
  owner: SchemaOwnerType;
@@ -539,7 +548,7 @@ type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
539
548
  adIds?: ObjectId[];
540
549
  owner: SchemaOwnerType;
541
550
  };
542
- declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "owner" | "adIds"> & {
551
+ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
543
552
  adIds?: ObjectId[];
544
553
  owner: SchemaOwnerType;
545
554
  } & Required<{
@@ -552,10 +561,11 @@ type SchemaPostType = PostType;
552
561
  declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
553
562
  _id: string;
554
563
  content: PostContentType[];
555
- slug: string;
556
- resource?: PostResource | null;
557
564
  createdAt: Date;
558
565
  deletedAt: Date | null;
566
+ resource?: PostResource | null;
567
+ slug: string;
568
+ sharePublic?: _timardex_cluemart_shared.SocialShareResourceType | null;
559
569
  updatedAt: Date | null;
560
570
  } & Required<{
561
571
  _id: string;
@@ -593,4 +603,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
593
603
  __v: number;
594
604
  }, any>;
595
605
 
596
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
606
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, CategorySchema, ChatReportModel, ContactDetailsSchema, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatReportType, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaOwnerType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, dateTimeSchema, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, resourceRelationsSchema, socialShareResourceSchema, termsAgreementSchema, userLicenseSchema };
@@ -36,9 +36,10 @@ import {
36
36
  relatedPostSchema,
37
37
  relationDatesSchema,
38
38
  resourceRelationsSchema,
39
+ socialShareResourceSchema,
39
40
  termsAgreementSchema,
40
41
  userLicenseSchema
41
- } from "../chunk-LG23YZU7.mjs";
42
+ } from "../chunk-JFVETLOC.mjs";
42
43
  export {
43
44
  APP_SETTINGS_ID,
44
45
  AdModel,
@@ -77,6 +78,7 @@ export {
77
78
  relatedPostSchema,
78
79
  relationDatesSchema,
79
80
  resourceRelationsSchema,
81
+ socialShareResourceSchema,
80
82
  termsAgreementSchema,
81
83
  userLicenseSchema
82
84
  };
@@ -5157,6 +5157,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
5157
5157
  postType
5158
5158
  }
5159
5159
  `;
5160
+ var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
5161
+ fragment SocialShareResourceFields on SocialShareResourceType {
5162
+ qrCode {
5163
+ ...ResourceImageFields
5164
+ }
5165
+ socialImage {
5166
+ ...ResourceImageFields
5167
+ }
5168
+ }
5169
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5170
+ `;
5160
5171
  var EVENT_INFO = gql`
5161
5172
  fragment EventInfoFields on EventInfoType {
5162
5173
  _id
@@ -5252,6 +5263,12 @@ var EVENT = gql`
5252
5263
  socialMedia {
5253
5264
  ...SocialMediaFields
5254
5265
  }
5266
+ sharePublic {
5267
+ ...SocialShareResourceFields
5268
+ }
5269
+ shareRelation {
5270
+ ...SocialShareResourceFields
5271
+ }
5255
5272
  slug
5256
5273
  tags
5257
5274
  termsAgreement {
@@ -5270,6 +5287,7 @@ var EVENT = gql`
5270
5287
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5271
5288
  ${RELATION_DATES_FRAGMENT}
5272
5289
  ${RELATED_POST_FIELDS_FRAGMENT}
5290
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5273
5291
  `;
5274
5292
  var GET_EVENTS = gql`
5275
5293
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5449,6 +5467,12 @@ var VENDOR = gql`
5449
5467
  socialMedia {
5450
5468
  ...SocialMediaFields
5451
5469
  }
5470
+ sharePublic {
5471
+ ...SocialShareResourceFields
5472
+ }
5473
+ shareRelation {
5474
+ ...SocialShareResourceFields
5475
+ }
5452
5476
  termsAgreement {
5453
5477
  ...TermsAgreementFields
5454
5478
  }
@@ -5469,6 +5493,7 @@ var VENDOR = gql`
5469
5493
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5470
5494
  ${RELATION_DATES_FRAGMENT}
5471
5495
  ${RELATED_POST_FIELDS_FRAGMENT}
5496
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5472
5497
  `;
5473
5498
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5474
5499
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5656,6 +5681,9 @@ var PARTNER = gql`
5656
5681
  ...SocialMediaFields
5657
5682
  }
5658
5683
  slug
5684
+ sharePublic {
5685
+ ...SocialShareResourceFields
5686
+ }
5659
5687
  termsAgreement {
5660
5688
  ...TermsAgreementFields
5661
5689
  }
@@ -5670,6 +5698,7 @@ var PARTNER = gql`
5670
5698
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5671
5699
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5672
5700
  ${RELATED_POST_FIELDS_FRAGMENT}
5701
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5673
5702
  `;
5674
5703
  var GET_PARTNERS = gql`
5675
5704
  query getPartners {
@@ -5838,6 +5867,14 @@ var POST_CONTENT_FIELDS_FRAGMENT = gql`
5838
5867
  }
5839
5868
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
5840
5869
  `;
5870
+ var POST_RESOURCE_FIELDS_FRAGMENT = gql`
5871
+ fragment PostResourceFields on PostResourceType {
5872
+ resourceId
5873
+ resourceSlug
5874
+ resourceRegion
5875
+ resourceType
5876
+ }
5877
+ `;
5841
5878
  var POST_FIELDS_FRAGMENT = gql`
5842
5879
  fragment PostFields on PostType {
5843
5880
  _id
@@ -5853,18 +5890,20 @@ var POST_FIELDS_FRAGMENT = gql`
5853
5890
  deletedAt
5854
5891
  postType
5855
5892
  resource {
5856
- resourceId
5857
- resourceSlug
5858
- resourceRegion
5859
- resourceType
5893
+ ...PostResourceFields
5860
5894
  }
5861
5895
  tags
5862
5896
  title
5863
5897
  slug
5898
+ sharePublic {
5899
+ ...SocialShareResourceFields
5900
+ }
5864
5901
  updatedAt
5865
5902
  }
5866
5903
  ${POST_CONTENT_FIELDS_FRAGMENT}
5867
5904
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5905
+ ${POST_RESOURCE_FIELDS_FRAGMENT}
5906
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5868
5907
  `;
5869
5908
  var GET_POSTS = gql`
5870
5909
  query getPosts {
@@ -8103,7 +8142,7 @@ var SocialMediaTypeSchema = new MongooseSchema8(
8103
8142
  );
8104
8143
  var ResourceImageTypeSchema = new MongooseSchema8(
8105
8144
  {
8106
- active: { default: true, type: Boolean },
8145
+ active: { default: true, required: true, type: Boolean },
8107
8146
  source: { required: false, type: String },
8108
8147
  title: { required: false, type: String }
8109
8148
  },
@@ -8311,6 +8350,14 @@ var baseResourceFields = {
8311
8350
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
8312
8351
  termsAgreement: { required: true, type: termsAgreementSchema }
8313
8352
  };
8353
+ var socialShareResourceSchema = new MongooseSchema8(
8354
+ {
8355
+ qrCode: { required: true, type: ResourceImageTypeSchema },
8356
+ socialImage: { required: true, type: ResourceImageTypeSchema }
8357
+ },
8358
+ { _id: false }
8359
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8360
+ );
8314
8361
 
8315
8362
  // src/mongoose/GoogleImportedMarket.ts
8316
8363
  var import_mongoose10 = __toESM(require("mongoose"));
@@ -8713,6 +8760,8 @@ var schema9 = new MongooseSchema13(
8713
8760
  required: false,
8714
8761
  type: [resourceRelationsSchema]
8715
8762
  },
8763
+ sharePublic: { required: false, type: socialShareResourceSchema },
8764
+ shareRelation: { required: false, type: socialShareResourceSchema },
8716
8765
  unregisteredVendorId: {
8717
8766
  ref: "UnregisteredVendor",
8718
8767
  required: false,
@@ -8864,6 +8913,8 @@ var schema12 = new MongooseSchema16(
8864
8913
  required: false,
8865
8914
  type: [resourceRelationsSchema]
8866
8915
  },
8916
+ sharePublic: { required: false, type: socialShareResourceSchema },
8917
+ shareRelation: { required: false, type: socialShareResourceSchema },
8867
8918
  tags: { required: true, type: [String] }
8868
8919
  },
8869
8920
  { timestamps: true }
@@ -8894,7 +8945,8 @@ var schema13 = new MongooseSchema17(
8894
8945
  enum: Object.values(EnumPartnerType),
8895
8946
  required: true,
8896
8947
  type: String
8897
- }
8948
+ },
8949
+ sharePublic: { required: false, type: socialShareResourceSchema }
8898
8950
  },
8899
8951
  { timestamps: true }
8900
8952
  );
@@ -8957,6 +9009,7 @@ var schema14 = new MongooseSchema18(
8957
9009
  required: false,
8958
9010
  type: resourceSchema
8959
9011
  },
9012
+ sharePublic: { required: false, type: socialShareResourceSchema },
8960
9013
  slug: { required: true, type: String },
8961
9014
  tags: { default: [], required: false, type: [String] },
8962
9015
  title: { required: true, type: String }
@@ -8965,7 +9018,7 @@ var schema14 = new MongooseSchema18(
8965
9018
  );
8966
9019
  schema14.index({ title: 1 });
8967
9020
  schema14.index({ tags: 1 });
8968
- schema14.index({ postType: 1, slug: 1 });
9021
+ schema14.index({ postType: 1, slug: 1 }, { unique: true });
8969
9022
  var PostModel = import_mongoose19.default.models.Post || import_mongoose19.default.model("Post", schema14);
8970
9023
 
8971
9024
  // src/mongoose/AppSetting.ts