@timardex/cluemart-server-shared 1.0.213 → 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.
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, ReportChatUser, 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, 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, SocialImageUrlType, SocialImageType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, 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';
@@ -28,6 +28,9 @@ declare const ChatReportModel: mongoose.Model<SchemaChatReportType, {}, {}, {},
28
28
  __v: number;
29
29
  }, any>;
30
30
 
31
+ type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
32
+ postId: ObjectId;
33
+ };
31
34
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
32
35
  userId: ObjectId;
33
36
  };
@@ -164,6 +167,35 @@ declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<Loca
164
167
  } & {
165
168
  __v: number;
166
169
  }>;
170
+ declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
171
+ postId: ObjectId;
172
+ } & {
173
+ _id: mongoose.Types.ObjectId;
174
+ } & {
175
+ __v: number;
176
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
177
+ _id: mongoose.Types.ObjectId;
178
+ } & {
179
+ __v: number;
180
+ }>;
181
+ declare const socialImageUrlSchema: mongoose.Schema<SocialImageUrlType, mongoose.Model<SocialImageUrlType, any, any, any, mongoose.Document<unknown, any, SocialImageUrlType, any, {}> & SocialImageUrlType & {
182
+ _id: mongoose.Types.ObjectId;
183
+ } & {
184
+ __v: number;
185
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageUrlType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageUrlType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageUrlType> & {
186
+ _id: mongoose.Types.ObjectId;
187
+ } & {
188
+ __v: number;
189
+ }>;
190
+ declare const socialImageSchema: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
191
+ _id: mongoose.Types.ObjectId;
192
+ } & {
193
+ __v: number;
194
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
195
+ _id: mongoose.Types.ObjectId;
196
+ } & {
197
+ __v: number;
198
+ }>;
167
199
  declare const baseResourceFields: {
168
200
  active: {
169
201
  default: boolean;
@@ -286,10 +318,36 @@ declare const baseResourceFields: {
286
318
  required: boolean;
287
319
  type: StringConstructor;
288
320
  };
321
+ relatedPost: {
322
+ required: boolean;
323
+ type: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
324
+ postId: ObjectId;
325
+ } & {
326
+ _id: mongoose.Types.ObjectId;
327
+ } & {
328
+ __v: number;
329
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
330
+ _id: mongoose.Types.ObjectId;
331
+ } & {
332
+ __v: number;
333
+ }>;
334
+ };
289
335
  reviewCount: {
290
336
  required: boolean;
291
337
  type: NumberConstructor;
292
338
  };
339
+ socialImage: {
340
+ required: boolean;
341
+ type: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
342
+ _id: mongoose.Types.ObjectId;
343
+ } & {
344
+ __v: number;
345
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
346
+ _id: mongoose.Types.ObjectId;
347
+ } & {
348
+ __v: number;
349
+ }>;
350
+ };
293
351
  socialMedia: {
294
352
  required: boolean;
295
353
  type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
@@ -559,4 +617,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
559
617
  __v: number;
560
618
  }, any>;
561
619
 
562
- 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 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, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
620
+ 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, socialImageSchema, socialImageUrlSchema, termsAgreementSchema, userLicenseSchema };
@@ -1,5 +1,5 @@
1
1
  import * as _timardex_cluemart_shared from '@timardex/cluemart-shared';
2
- import { AdType, ReportChatUser, 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, 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, SocialImageUrlType, SocialImageType, PosterUsageType, GoogleImportedMarket, PushTokenType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, 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';
@@ -28,6 +28,9 @@ declare const ChatReportModel: mongoose.Model<SchemaChatReportType, {}, {}, {},
28
28
  __v: number;
29
29
  }, any>;
30
30
 
31
+ type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
32
+ postId: ObjectId;
33
+ };
31
34
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
32
35
  userId: ObjectId;
33
36
  };
@@ -164,6 +167,35 @@ declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<Loca
164
167
  } & {
165
168
  __v: number;
166
169
  }>;
170
+ declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
171
+ postId: ObjectId;
172
+ } & {
173
+ _id: mongoose.Types.ObjectId;
174
+ } & {
175
+ __v: number;
176
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
177
+ _id: mongoose.Types.ObjectId;
178
+ } & {
179
+ __v: number;
180
+ }>;
181
+ declare const socialImageUrlSchema: mongoose.Schema<SocialImageUrlType, mongoose.Model<SocialImageUrlType, any, any, any, mongoose.Document<unknown, any, SocialImageUrlType, any, {}> & SocialImageUrlType & {
182
+ _id: mongoose.Types.ObjectId;
183
+ } & {
184
+ __v: number;
185
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageUrlType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageUrlType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageUrlType> & {
186
+ _id: mongoose.Types.ObjectId;
187
+ } & {
188
+ __v: number;
189
+ }>;
190
+ declare const socialImageSchema: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
191
+ _id: mongoose.Types.ObjectId;
192
+ } & {
193
+ __v: number;
194
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
195
+ _id: mongoose.Types.ObjectId;
196
+ } & {
197
+ __v: number;
198
+ }>;
167
199
  declare const baseResourceFields: {
168
200
  active: {
169
201
  default: boolean;
@@ -286,10 +318,36 @@ declare const baseResourceFields: {
286
318
  required: boolean;
287
319
  type: StringConstructor;
288
320
  };
321
+ relatedPost: {
322
+ required: boolean;
323
+ type: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
324
+ postId: ObjectId;
325
+ } & {
326
+ _id: mongoose.Types.ObjectId;
327
+ } & {
328
+ __v: number;
329
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
330
+ _id: mongoose.Types.ObjectId;
331
+ } & {
332
+ __v: number;
333
+ }>;
334
+ };
289
335
  reviewCount: {
290
336
  required: boolean;
291
337
  type: NumberConstructor;
292
338
  };
339
+ socialImage: {
340
+ required: boolean;
341
+ type: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
342
+ _id: mongoose.Types.ObjectId;
343
+ } & {
344
+ __v: number;
345
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
346
+ _id: mongoose.Types.ObjectId;
347
+ } & {
348
+ __v: number;
349
+ }>;
350
+ };
293
351
  socialMedia: {
294
352
  required: boolean;
295
353
  type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
@@ -559,4 +617,4 @@ declare const SchoolModel: mongoose.Model<SchoolDocument, {}, {}, {}, mongoose.D
559
617
  __v: number;
560
618
  }, any>;
561
619
 
562
- 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 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, resourceRelationsSchema, termsAgreementSchema, userLicenseSchema };
620
+ 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, socialImageSchema, socialImageUrlSchema, termsAgreementSchema, userLicenseSchema };
@@ -33,11 +33,14 @@ import {
33
33
  locationGeoSchema,
34
34
  locationsSchema,
35
35
  refundPolicySchema,
36
+ relatedPostSchema,
36
37
  relationDatesSchema,
37
38
  resourceRelationsSchema,
39
+ socialImageSchema,
40
+ socialImageUrlSchema,
38
41
  termsAgreementSchema,
39
42
  userLicenseSchema
40
- } from "../chunk-5PTF25RX.mjs";
43
+ } from "../chunk-PF56GXHT.mjs";
41
44
  export {
42
45
  APP_SETTINGS_ID,
43
46
  AdModel,
@@ -73,8 +76,11 @@ export {
73
76
  locationGeoSchema,
74
77
  locationsSchema,
75
78
  refundPolicySchema,
79
+ relatedPostSchema,
76
80
  relationDatesSchema,
77
81
  resourceRelationsSchema,
82
+ socialImageSchema,
83
+ socialImageUrlSchema,
78
84
  termsAgreementSchema,
79
85
  userLicenseSchema
80
86
  };
@@ -3549,12 +3549,6 @@ var gameScreenIdentifierList = [
3549
3549
  match: "/visitors"
3550
3550
  }
3551
3551
  ];
3552
- var dateFormat = "DD-MM-YYYY";
3553
- var timeFormat = "HH:mm";
3554
- import_dayjs.default.extend(import_customParseFormat.default);
3555
- import_dayjs.default.extend(import_utc.default);
3556
- import_dayjs.default.extend(import_timezone.default);
3557
- import_dayjs.default.extend(import_isSameOrAfter.default);
3558
3552
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
3559
3553
  EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
3560
3554
  EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
@@ -3630,6 +3624,21 @@ var paymentMethodOptions = mapArrayToOptions(
3630
3624
  Object.values(EnumPaymentMethod)
3631
3625
  );
3632
3626
  var CLUEMART_MAIN_DOMAIN_URL = "https://cluemart.co.nz";
3627
+ var dateFormat = "DD-MM-YYYY";
3628
+ var timeFormat = "HH:mm";
3629
+ import_dayjs.default.extend(import_customParseFormat.default);
3630
+ import_dayjs.default.extend(import_utc.default);
3631
+ import_dayjs.default.extend(import_timezone.default);
3632
+ import_dayjs.default.extend(import_isSameOrAfter.default);
3633
+ var futureTimePeriods = mapArrayToOptions(
3634
+ Object.values(EnumEventDateStatus)
3635
+ ).filter(
3636
+ (period) => period.value !== "Starting_Soon" && period.value !== "Canceled" && period.value !== "Rescheduled" && period.value !== "Started" && period.value !== "Ended" && period.value !== "Invalid"
3637
+ /* INVALID */
3638
+ ).map((period) => ({
3639
+ label: period.value.replaceAll("_", " "),
3640
+ value: period.value
3641
+ }));
3633
3642
  var packagingTypes = [
3634
3643
  "Biodegradable",
3635
3644
  "Compostable",
@@ -5164,6 +5173,29 @@ var EVENT_LIST_ITEM = gql`
5164
5173
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5165
5174
  ${RELATION_DATES_FRAGMENT}
5166
5175
  `;
5176
+ var RELATED_POST_FIELDS_FRAGMENT = gql`
5177
+ fragment RelatedPostFields on RelatedPostType {
5178
+ postId
5179
+ postType
5180
+ }
5181
+ `;
5182
+ var SOCIAL_IMAGE_URL_FIELDS_FRAGMENT = gql`
5183
+ fragment SocialImageUrlFields on SocialImageUrlType {
5184
+ url
5185
+ qrCode
5186
+ }
5187
+ `;
5188
+ var SOCIAL_IMAGE_FIELDS_FRAGMENT = gql`
5189
+ fragment SocialImageFields on SocialImageType {
5190
+ public {
5191
+ ...SocialImageUrlFields
5192
+ }
5193
+ relation {
5194
+ ...SocialImageUrlFields
5195
+ }
5196
+ }
5197
+ ${SOCIAL_IMAGE_URL_FIELDS_FRAGMENT}
5198
+ `;
5167
5199
  var EVENT_INFO = gql`
5168
5200
  fragment EventInfoFields on EventInfoType {
5169
5201
  _id
@@ -5253,9 +5285,15 @@ var EVENT = gql`
5253
5285
  rating
5254
5286
  reviewCount
5255
5287
  rainOrShine
5288
+ relatedPost {
5289
+ ...RelatedPostFields
5290
+ }
5256
5291
  socialMedia {
5257
5292
  ...SocialMediaFields
5258
5293
  }
5294
+ socialImage {
5295
+ ...SocialImageFields
5296
+ }
5259
5297
  tags
5260
5298
  termsAgreement {
5261
5299
  ...TermsAgreementFields
@@ -5272,6 +5310,8 @@ var EVENT = gql`
5272
5310
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5273
5311
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5274
5312
  ${RELATION_DATES_FRAGMENT}
5313
+ ${RELATED_POST_FIELDS_FRAGMENT}
5314
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5275
5315
  `;
5276
5316
  var GET_EVENTS = gql`
5277
5317
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5438,6 +5478,9 @@ var VENDOR = gql`
5438
5478
  rating
5439
5479
  region
5440
5480
  reviewCount
5481
+ relatedPost {
5482
+ ...RelatedPostFields
5483
+ }
5441
5484
  relations {
5442
5485
  relationId
5443
5486
  relationDates {
@@ -5447,6 +5490,9 @@ var VENDOR = gql`
5447
5490
  socialMedia {
5448
5491
  ...SocialMediaFields
5449
5492
  }
5493
+ socialImage {
5494
+ ...SocialImageFields
5495
+ }
5450
5496
  termsAgreement {
5451
5497
  ...TermsAgreementFields
5452
5498
  }
@@ -5466,6 +5512,8 @@ var VENDOR = gql`
5466
5512
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5467
5513
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5468
5514
  ${RELATION_DATES_FRAGMENT}
5515
+ ${RELATED_POST_FIELDS_FRAGMENT}
5516
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5469
5517
  `;
5470
5518
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5471
5519
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5924,9 +5972,15 @@ var PARTNER = gql`
5924
5972
  rating
5925
5973
  region
5926
5974
  reviewCount
5975
+ relatedPost {
5976
+ ...RelatedPostFields
5977
+ }
5927
5978
  socialMedia {
5928
5979
  ...SocialMediaFields
5929
5980
  }
5981
+ socialImage {
5982
+ ...SocialImageFields
5983
+ }
5930
5984
  termsAgreement {
5931
5985
  ...TermsAgreementFields
5932
5986
  }
@@ -5940,6 +5994,8 @@ var PARTNER = gql`
5940
5994
  ${POSTER_USAGE_FIELDS_FRAGMENT}
5941
5995
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5942
5996
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5997
+ ${RELATED_POST_FIELDS_FRAGMENT}
5998
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5943
5999
  `;
5944
6000
  var GET_PARTNERS = gql`
5945
6001
  query getPartners {
@@ -8047,6 +8103,38 @@ var locationsSchema = new MongooseSchema8(
8047
8103
  { _id: false }
8048
8104
  // Prevents Mongoose from creating an additional _id field for subdocuments
8049
8105
  );
8106
+ var relatedPostSchema = new MongooseSchema8(
8107
+ {
8108
+ postId: {
8109
+ ref: "Post",
8110
+ required: true,
8111
+ type: import_mongoose9.default.Schema.Types.ObjectId
8112
+ },
8113
+ postType: {
8114
+ enum: Object.values(EnumPostType),
8115
+ required: true,
8116
+ type: String
8117
+ }
8118
+ },
8119
+ { _id: false }
8120
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8121
+ );
8122
+ var socialImageUrlSchema = new MongooseSchema8(
8123
+ {
8124
+ qrCode: { required: true, type: String },
8125
+ url: { required: true, type: String }
8126
+ },
8127
+ { _id: false }
8128
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8129
+ );
8130
+ var socialImageSchema = new MongooseSchema8(
8131
+ {
8132
+ public: { required: true, type: socialImageUrlSchema },
8133
+ relation: { required: false, type: socialImageUrlSchema }
8134
+ },
8135
+ { _id: false }
8136
+ // Prevents Mongoose from creating an additional _id field for subdocuments
8137
+ );
8050
8138
  var baseResourceFields = {
8051
8139
  active: { default: false, required: true, type: Boolean },
8052
8140
  adIds: {
@@ -8076,7 +8164,9 @@ var baseResourceFields = {
8076
8164
  promoCodes: { required: false, type: [String] },
8077
8165
  rating: { required: false, type: Number },
8078
8166
  region: { required: true, type: String },
8167
+ relatedPost: { required: false, type: relatedPostSchema },
8079
8168
  reviewCount: { required: false, type: Number },
8169
+ socialImage: { required: false, type: socialImageSchema },
8080
8170
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
8081
8171
  termsAgreement: { required: true, type: termsAgreementSchema }
8082
8172
  };