@timardex/cluemart-server-shared 1.0.259 → 1.0.261

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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
2
+ import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, SocialShareResourceType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
3
3
  import mongoose from 'mongoose';
4
4
  export { default as mongoose } from 'mongoose';
5
5
  import { NotificationCount, DateTimeType as DateTimeType$1 } from '@timardex/cluemart-shared/types';
@@ -427,6 +427,15 @@ declare const baseResourceFields: {
427
427
  }>;
428
428
  };
429
429
  };
430
+ declare const socialShareResourceSchema: mongoose.Schema<SocialShareResourceType, mongoose.Model<SocialShareResourceType, any, any, any, mongoose.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
431
+ _id: mongoose.Types.ObjectId;
432
+ } & {
433
+ __v: number;
434
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialShareResourceType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialShareResourceType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialShareResourceType> & {
435
+ _id: mongoose.Types.ObjectId;
436
+ } & {
437
+ __v: number;
438
+ }>;
430
439
 
431
440
  type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
432
441
  eventId?: mongoose.Types.ObjectId;
@@ -573,7 +582,7 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
573
582
  vendorInfoId: ObjectId;
574
583
  unregisteredVendorId?: ObjectId | null;
575
584
  };
576
- declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds" | "unregisteredVendorId"> & {
585
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
577
586
  adIds?: ObjectId[];
578
587
  owner: SchemaOwnerType;
579
588
  vendorInfoId: ObjectId;
@@ -616,7 +625,7 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
616
625
  eventInfoId: ObjectId;
617
626
  owner: SchemaOwnerType;
618
627
  };
619
- declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
628
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
620
629
  adIds?: ObjectId[];
621
630
  eventInfoId: ObjectId;
622
631
  owner: SchemaOwnerType;
@@ -659,7 +668,7 @@ type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
659
668
  adIds?: ObjectId[];
660
669
  owner: SchemaOwnerType;
661
670
  };
662
- declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "owner" | "adIds"> & {
671
+ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
663
672
  adIds?: ObjectId[];
664
673
  owner: SchemaOwnerType;
665
674
  } & Required<{
@@ -672,10 +681,11 @@ type SchemaPostType = PostType;
672
681
  declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
673
682
  _id: string;
674
683
  content: PostContentType[];
675
- slug: string;
676
- resource?: PostResource | null;
677
684
  createdAt: Date;
678
685
  deletedAt: Date | null;
686
+ resource?: PostResource | null;
687
+ slug: string;
688
+ sharePublic?: _timardex_cluemart_shared.SocialShareResourceType | null;
679
689
  updatedAt: Date | null;
680
690
  } & Required<{
681
691
  _id: string;
@@ -780,4 +790,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
780
790
  */
781
791
  declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
782
792
 
783
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, didRemoveAnyEventDates, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
793
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, didRemoveAnyEventDates, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, socialShareResourceSchema, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
2
+ import { AdType, CreateBulkNotificationInput, NotificationType, EnumUserRole, ChatMessageType, ParticipantType, ChatType, ReportChatUser, RelatedPostType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, ResourceContactDetailsType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, PosterUsageType, SocialShareResourceType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, PostResource, AppSettingsType, GameType, GameDocType, SchoolType, EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
3
3
  import mongoose from 'mongoose';
4
4
  export { default as mongoose } from 'mongoose';
5
5
  import { NotificationCount, DateTimeType as DateTimeType$1 } from '@timardex/cluemart-shared/types';
@@ -427,6 +427,15 @@ declare const baseResourceFields: {
427
427
  }>;
428
428
  };
429
429
  };
430
+ declare const socialShareResourceSchema: mongoose.Schema<SocialShareResourceType, mongoose.Model<SocialShareResourceType, any, any, any, mongoose.Document<unknown, any, SocialShareResourceType, any, {}> & SocialShareResourceType & {
431
+ _id: mongoose.Types.ObjectId;
432
+ } & {
433
+ __v: number;
434
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialShareResourceType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialShareResourceType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialShareResourceType> & {
435
+ _id: mongoose.Types.ObjectId;
436
+ } & {
437
+ __v: number;
438
+ }>;
430
439
 
431
440
  type SchemaGoogleImportedMarket = Omit<GoogleImportedMarket, "eventId" | "claimedByUserId"> & {
432
441
  eventId?: mongoose.Types.ObjectId;
@@ -573,7 +582,7 @@ type SchemaVendorType = Omit<VendorType, "vendorInfoId" | "owner" | "adIds" | "u
573
582
  vendorInfoId: ObjectId;
574
583
  unregisteredVendorId?: ObjectId | null;
575
584
  };
576
- declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "owner" | "vendorInfoId" | "adIds" | "unregisteredVendorId"> & {
585
+ declare const VendorModel: mongoose.Model<SchemaVendorType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaVendorType, {}, {}> & Omit<VendorType, "adIds" | "owner" | "vendorInfoId" | "unregisteredVendorId"> & {
577
586
  adIds?: ObjectId[];
578
587
  owner: SchemaOwnerType;
579
588
  vendorInfoId: ObjectId;
@@ -616,7 +625,7 @@ type SchemaEventType = Omit<EventType, "eventInfoId" | "owner" | "adIds"> & {
616
625
  eventInfoId: ObjectId;
617
626
  owner: SchemaOwnerType;
618
627
  };
619
- declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "owner" | "adIds" | "eventInfoId"> & {
628
+ declare const EventModel: mongoose.Model<SchemaEventType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaEventType, {}, {}> & Omit<EventType, "adIds" | "eventInfoId" | "owner"> & {
620
629
  adIds?: ObjectId[];
621
630
  eventInfoId: ObjectId;
622
631
  owner: SchemaOwnerType;
@@ -659,7 +668,7 @@ type SchemaPartnerType = Omit<PartnerType, "owner" | "adIds"> & {
659
668
  adIds?: ObjectId[];
660
669
  owner: SchemaOwnerType;
661
670
  };
662
- declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "owner" | "adIds"> & {
671
+ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPartnerType, {}, {}> & Omit<PartnerType, "adIds" | "owner"> & {
663
672
  adIds?: ObjectId[];
664
673
  owner: SchemaOwnerType;
665
674
  } & Required<{
@@ -672,10 +681,11 @@ type SchemaPostType = PostType;
672
681
  declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "resource" | "content" | "coverUpload"> & {
673
682
  _id: string;
674
683
  content: PostContentType[];
675
- slug: string;
676
- resource?: PostResource | null;
677
684
  createdAt: Date;
678
685
  deletedAt: Date | null;
686
+ resource?: PostResource | null;
687
+ slug: string;
688
+ sharePublic?: _timardex_cluemart_shared.SocialShareResourceType | null;
679
689
  updatedAt: Date | null;
680
690
  } & Required<{
681
691
  _id: string;
@@ -780,4 +790,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
780
790
  */
781
791
  declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
782
792
 
783
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, didRemoveAnyEventDates, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
793
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, ContactDetailsSchema, EnumPubSubEvents, EventInfoModel, EventModel, GameModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, OwnerTypeSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatReportType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGameType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelatedPostType, type SchemaRelationType, type SchemaUnregisteredVendorInvitationType, type SchemaUnregisteredVendorType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SchoolModel, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, UnregisteredVendorModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, convertObjectIdsToStrings, dateTimeSchema, didRemoveAnyEventDates, findEventOrImportedMarketById, locationGeoSchema, locationsSchema, refundPolicySchema, relatedPostSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, socialShareResourceSchema, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
package/dist/index.mjs CHANGED
@@ -3349,6 +3349,7 @@ var EnumUserRole = /* @__PURE__ */ ((EnumUserRole22) => {
3349
3349
  EnumUserRole22["MARKETING"] = "marketing";
3350
3350
  EnumUserRole22["MODERATOR"] = "moderator";
3351
3351
  EnumUserRole22["SUPPORT"] = "support";
3352
+ EnumUserRole22["AFFILIATE"] = "affiliate";
3352
3353
  return EnumUserRole22;
3353
3354
  })(EnumUserRole || {});
3354
3355
  var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus22) => {
@@ -4949,6 +4950,12 @@ var REDEEMED_REWARD_FIELDS_FRAGMENT = gql`
4949
4950
  redeemedAt
4950
4951
  }
4951
4952
  `;
4953
+ var AFFILIATE_FIELDS_FRAGMENT = gql`
4954
+ fragment AffiliateFields on AffiliateType {
4955
+ affiliateCode
4956
+ pointsAvailable
4957
+ }
4958
+ `;
4952
4959
  var USER_FIELDS_FRAGMENT = gql`
4953
4960
  fragment UserFields on UserType {
4954
4961
  _id
@@ -4956,6 +4963,9 @@ var USER_FIELDS_FRAGMENT = gql`
4956
4963
  associates {
4957
4964
  ...AssociatesFields
4958
4965
  }
4966
+ affiliate {
4967
+ ...AffiliateFields
4968
+ }
4959
4969
  avatar {
4960
4970
  ...ResourceImageFields
4961
4971
  }
@@ -4999,6 +5009,7 @@ var USER_FIELDS_FRAGMENT = gql`
4999
5009
  ${LICENCE_FIELDS_FRAGMENT}
5000
5010
  ${LOCATION_FIELDS_FRAGMENT}
5001
5011
  ${REDEEMED_REWARD_FIELDS_FRAGMENT}
5012
+ ${AFFILIATE_FIELDS_FRAGMENT}
5002
5013
  `;
5003
5014
  var STALL_TYPE_FIELDS_FRAGMENT = gql`
5004
5015
  fragment StallTypeFields on StallTypeType {
@@ -5086,6 +5097,17 @@ var RELATED_POST_FIELDS_FRAGMENT = gql`
5086
5097
  postType
5087
5098
  }
5088
5099
  `;
5100
+ var SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT = gql`
5101
+ fragment SocialShareResourceFields on SocialShareResourceType {
5102
+ qrCode {
5103
+ ...ResourceImageFields
5104
+ }
5105
+ socialImage {
5106
+ ...ResourceImageFields
5107
+ }
5108
+ }
5109
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5110
+ `;
5089
5111
  var EVENT_INFO = gql`
5090
5112
  fragment EventInfoFields on EventInfoType {
5091
5113
  _id
@@ -5181,6 +5203,12 @@ var EVENT = gql`
5181
5203
  socialMedia {
5182
5204
  ...SocialMediaFields
5183
5205
  }
5206
+ sharePublic {
5207
+ ...SocialShareResourceFields
5208
+ }
5209
+ shareRelation {
5210
+ ...SocialShareResourceFields
5211
+ }
5184
5212
  slug
5185
5213
  tags
5186
5214
  termsAgreement {
@@ -5199,6 +5227,7 @@ var EVENT = gql`
5199
5227
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5200
5228
  ${RELATION_DATES_FRAGMENT}
5201
5229
  ${RELATED_POST_FIELDS_FRAGMENT}
5230
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5202
5231
  `;
5203
5232
  var GET_EVENTS = gql`
5204
5233
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5242,7 +5271,7 @@ var GET_EVENTS_BY_REGION = gql`
5242
5271
  `;
5243
5272
  var SEARCH_EVENTS = gql`
5244
5273
  query searchEvents(
5245
- $region: String
5274
+ $region: String!
5246
5275
  $search: String
5247
5276
  $tags: [String]
5248
5277
  $dateStatus: EventDateStatusEnumType
@@ -5378,6 +5407,12 @@ var VENDOR = gql`
5378
5407
  socialMedia {
5379
5408
  ...SocialMediaFields
5380
5409
  }
5410
+ sharePublic {
5411
+ ...SocialShareResourceFields
5412
+ }
5413
+ shareRelation {
5414
+ ...SocialShareResourceFields
5415
+ }
5381
5416
  termsAgreement {
5382
5417
  ...TermsAgreementFields
5383
5418
  }
@@ -5398,6 +5433,7 @@ var VENDOR = gql`
5398
5433
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5399
5434
  ${RELATION_DATES_FRAGMENT}
5400
5435
  ${RELATED_POST_FIELDS_FRAGMENT}
5436
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5401
5437
  `;
5402
5438
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5403
5439
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5501,7 +5537,7 @@ var GET_VENDORS_BY_REGION = gql`
5501
5537
  ${VENDOR}
5502
5538
  `;
5503
5539
  var SEARCH_VENDORS = gql`
5504
- query searchVendors($search: String!, $region: String) {
5540
+ query searchVendors($search: String!, $region: String!) {
5505
5541
  vendorSearch(search: $search, region: $region) {
5506
5542
  ...VendorFields
5507
5543
  }
@@ -5585,6 +5621,9 @@ var PARTNER = gql`
5585
5621
  ...SocialMediaFields
5586
5622
  }
5587
5623
  slug
5624
+ sharePublic {
5625
+ ...SocialShareResourceFields
5626
+ }
5588
5627
  termsAgreement {
5589
5628
  ...TermsAgreementFields
5590
5629
  }
@@ -5599,6 +5638,7 @@ var PARTNER = gql`
5599
5638
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5600
5639
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5601
5640
  ${RELATED_POST_FIELDS_FRAGMENT}
5641
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5602
5642
  `;
5603
5643
  var GET_PARTNERS = gql`
5604
5644
  query getPartners {
@@ -5628,7 +5668,7 @@ var GET_PARTNERS_BY_REGION = gql`
5628
5668
  ${PARTNER}
5629
5669
  `;
5630
5670
  var SEARCH_PARTNERS = gql`
5631
- query searchPartners($search: String!, $region: String) {
5671
+ query searchPartners($search: String!, $region: String!) {
5632
5672
  partnersSearch(search: $search, region: $region) {
5633
5673
  ...PartnerFields
5634
5674
  }
@@ -5795,11 +5835,15 @@ var POST_FIELDS_FRAGMENT = gql`
5795
5835
  tags
5796
5836
  title
5797
5837
  slug
5838
+ sharePublic {
5839
+ ...SocialShareResourceFields
5840
+ }
5798
5841
  updatedAt
5799
5842
  }
5800
5843
  ${POST_CONTENT_FIELDS_FRAGMENT}
5801
5844
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5802
5845
  ${POST_RESOURCE_FIELDS_FRAGMENT}
5846
+ ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
5803
5847
  `;
5804
5848
  var GET_POSTS = gql`
5805
5849
  query getPosts {
@@ -8047,6 +8091,14 @@ var baseResourceFields = {
8047
8091
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
8048
8092
  termsAgreement: { required: true, type: termsAgreementSchema }
8049
8093
  };
8094
+ var socialShareResourceSchema = new MongooseSchema6(
8095
+ {
8096
+ qrCode: { required: true, type: ResourceImageTypeSchema },
8097
+ socialImage: { required: true, type: ResourceImageTypeSchema }
8098
+ },
8099
+ { _id: false }
8100
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8101
+ );
8050
8102
 
8051
8103
  // src/mongoose/GoogleImportedMarket.ts
8052
8104
  import mongoose7 from "mongoose";
@@ -8164,7 +8216,7 @@ schema4.index({ isRead: 1, userId: 1 });
8164
8216
  schema4.index({ createdAt: -1, userId: 1 });
8165
8217
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
8166
8218
 
8167
- // node_modules/@timardex/cluemart-shared/dist/chunk-4SNW63TJ.mjs
8219
+ // node_modules/@timardex/cluemart-shared/dist/chunk-KZTOISPA.mjs
8168
8220
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
8169
8221
  EnumOSPlatform22["ANDROID"] = "android";
8170
8222
  EnumOSPlatform22["IOS"] = "ios";
@@ -8317,9 +8369,20 @@ var redeemedRewardSchema = new MongooseSchema11(
8317
8369
  },
8318
8370
  { _id: false }
8319
8371
  );
8372
+ var affiliateSchema = new MongooseSchema11(
8373
+ {
8374
+ affiliateCode: { required: true, type: String },
8375
+ pointsAvailable: { required: true, type: Number }
8376
+ },
8377
+ { _id: false }
8378
+ );
8320
8379
  var schema7 = new MongooseSchema11(
8321
8380
  {
8322
8381
  active: { default: false, required: true, type: Boolean },
8382
+ affiliate: {
8383
+ required: false,
8384
+ type: affiliateSchema
8385
+ },
8323
8386
  associates: {
8324
8387
  required: false,
8325
8388
  type: [associatesSchema]
@@ -8513,6 +8576,8 @@ var schema9 = new MongooseSchema13(
8513
8576
  required: false,
8514
8577
  type: [resourceRelationsSchema]
8515
8578
  },
8579
+ sharePublic: { required: false, type: socialShareResourceSchema },
8580
+ shareRelation: { required: false, type: socialShareResourceSchema },
8516
8581
  unregisteredVendorId: {
8517
8582
  ref: "UnregisteredVendor",
8518
8583
  required: false,
@@ -8664,6 +8729,8 @@ var schema12 = new MongooseSchema16(
8664
8729
  required: false,
8665
8730
  type: [resourceRelationsSchema]
8666
8731
  },
8732
+ sharePublic: { required: false, type: socialShareResourceSchema },
8733
+ shareRelation: { required: false, type: socialShareResourceSchema },
8667
8734
  tags: { required: true, type: [String] }
8668
8735
  },
8669
8736
  { timestamps: true }
@@ -8694,7 +8761,8 @@ var schema13 = new MongooseSchema17(
8694
8761
  enum: Object.values(EnumPartnerType),
8695
8762
  required: true,
8696
8763
  type: String
8697
- }
8764
+ },
8765
+ sharePublic: { required: false, type: socialShareResourceSchema }
8698
8766
  },
8699
8767
  { timestamps: true }
8700
8768
  );
@@ -8757,6 +8825,7 @@ var schema14 = new MongooseSchema18(
8757
8825
  required: false,
8758
8826
  type: resourceSchema
8759
8827
  },
8828
+ sharePublic: { required: false, type: socialShareResourceSchema },
8760
8829
  slug: { required: true, type: String },
8761
8830
  tags: { default: [], required: false, type: [String] },
8762
8831
  title: { required: true, type: String }
@@ -9588,6 +9657,7 @@ export {
9588
9657
  resourceRelationsSchema,
9589
9658
  saveNotificationsInDb,
9590
9659
  sendPushNotifications,
9660
+ socialShareResourceSchema,
9591
9661
  termsAgreementSchema,
9592
9662
  updateAdStatuses,
9593
9663
  updateAllEventDateTimeStatuses,