@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.
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, 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, 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, SocialImageUrlType, SocialImageType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, 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';
@@ -106,6 +106,9 @@ declare const ChatReportModel: mongoose.Model<SchemaChatReportType, {}, {}, {},
106
106
  __v: number;
107
107
  }, any>;
108
108
 
109
+ type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
110
+ postId: ObjectId;
111
+ };
109
112
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
110
113
  userId: ObjectId;
111
114
  };
@@ -242,6 +245,35 @@ declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<Loca
242
245
  } & {
243
246
  __v: number;
244
247
  }>;
248
+ declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
249
+ postId: ObjectId;
250
+ } & {
251
+ _id: mongoose.Types.ObjectId;
252
+ } & {
253
+ __v: number;
254
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
255
+ _id: mongoose.Types.ObjectId;
256
+ } & {
257
+ __v: number;
258
+ }>;
259
+ declare const socialImageUrlSchema: mongoose.Schema<SocialImageUrlType, mongoose.Model<SocialImageUrlType, any, any, any, mongoose.Document<unknown, any, SocialImageUrlType, any, {}> & SocialImageUrlType & {
260
+ _id: mongoose.Types.ObjectId;
261
+ } & {
262
+ __v: number;
263
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageUrlType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageUrlType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageUrlType> & {
264
+ _id: mongoose.Types.ObjectId;
265
+ } & {
266
+ __v: number;
267
+ }>;
268
+ declare const socialImageSchema: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
269
+ _id: mongoose.Types.ObjectId;
270
+ } & {
271
+ __v: number;
272
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
273
+ _id: mongoose.Types.ObjectId;
274
+ } & {
275
+ __v: number;
276
+ }>;
245
277
  declare const baseResourceFields: {
246
278
  active: {
247
279
  default: boolean;
@@ -364,10 +396,36 @@ declare const baseResourceFields: {
364
396
  required: boolean;
365
397
  type: StringConstructor;
366
398
  };
399
+ relatedPost: {
400
+ required: boolean;
401
+ type: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
402
+ postId: ObjectId;
403
+ } & {
404
+ _id: mongoose.Types.ObjectId;
405
+ } & {
406
+ __v: number;
407
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
408
+ _id: mongoose.Types.ObjectId;
409
+ } & {
410
+ __v: number;
411
+ }>;
412
+ };
367
413
  reviewCount: {
368
414
  required: boolean;
369
415
  type: NumberConstructor;
370
416
  };
417
+ socialImage: {
418
+ required: boolean;
419
+ type: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
420
+ _id: mongoose.Types.ObjectId;
421
+ } & {
422
+ __v: number;
423
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
424
+ _id: mongoose.Types.ObjectId;
425
+ } & {
426
+ __v: number;
427
+ }>;
428
+ };
371
429
  socialMedia: {
372
430
  required: boolean;
373
431
  type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
@@ -746,4 +804,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
746
804
  */
747
805
  declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
748
806
 
749
- 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 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, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
807
+ 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, socialImageSchema, socialImageUrlSchema, 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, 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, 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, SocialImageUrlType, SocialImageType, PosterUsageType, GoogleImportedMarket, PushTokenType, RelationType, ResourceActivityType, UserActivityEvent, UserType, VendorType, VendorInfoType, UnregisteredVendorInvitationType, UnregisteredVendorType, EventType, StallType, RefundPolicy, EventInfoType, PartnerType, PostType, PostContentType, 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';
@@ -106,6 +106,9 @@ declare const ChatReportModel: mongoose.Model<SchemaChatReportType, {}, {}, {},
106
106
  __v: number;
107
107
  }, any>;
108
108
 
109
+ type SchemaRelatedPostType = Omit<RelatedPostType, "postId"> & {
110
+ postId: ObjectId;
111
+ };
109
112
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
110
113
  userId: ObjectId;
111
114
  };
@@ -242,6 +245,35 @@ declare const locationsSchema: mongoose.Schema<LocationType, mongoose.Model<Loca
242
245
  } & {
243
246
  __v: number;
244
247
  }>;
248
+ declare const relatedPostSchema: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
249
+ postId: ObjectId;
250
+ } & {
251
+ _id: mongoose.Types.ObjectId;
252
+ } & {
253
+ __v: number;
254
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
255
+ _id: mongoose.Types.ObjectId;
256
+ } & {
257
+ __v: number;
258
+ }>;
259
+ declare const socialImageUrlSchema: mongoose.Schema<SocialImageUrlType, mongoose.Model<SocialImageUrlType, any, any, any, mongoose.Document<unknown, any, SocialImageUrlType, any, {}> & SocialImageUrlType & {
260
+ _id: mongoose.Types.ObjectId;
261
+ } & {
262
+ __v: number;
263
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageUrlType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageUrlType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageUrlType> & {
264
+ _id: mongoose.Types.ObjectId;
265
+ } & {
266
+ __v: number;
267
+ }>;
268
+ declare const socialImageSchema: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
269
+ _id: mongoose.Types.ObjectId;
270
+ } & {
271
+ __v: number;
272
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
273
+ _id: mongoose.Types.ObjectId;
274
+ } & {
275
+ __v: number;
276
+ }>;
245
277
  declare const baseResourceFields: {
246
278
  active: {
247
279
  default: boolean;
@@ -364,10 +396,36 @@ declare const baseResourceFields: {
364
396
  required: boolean;
365
397
  type: StringConstructor;
366
398
  };
399
+ relatedPost: {
400
+ required: boolean;
401
+ type: mongoose.Schema<SchemaRelatedPostType, mongoose.Model<SchemaRelatedPostType, any, any, any, mongoose.Document<unknown, any, SchemaRelatedPostType, any, {}> & Omit<RelatedPostType, "postId"> & {
402
+ postId: ObjectId;
403
+ } & {
404
+ _id: mongoose.Types.ObjectId;
405
+ } & {
406
+ __v: number;
407
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaRelatedPostType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaRelatedPostType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaRelatedPostType> & {
408
+ _id: mongoose.Types.ObjectId;
409
+ } & {
410
+ __v: number;
411
+ }>;
412
+ };
367
413
  reviewCount: {
368
414
  required: boolean;
369
415
  type: NumberConstructor;
370
416
  };
417
+ socialImage: {
418
+ required: boolean;
419
+ type: mongoose.Schema<SocialImageType, mongoose.Model<SocialImageType, any, any, any, mongoose.Document<unknown, any, SocialImageType, any, {}> & SocialImageType & {
420
+ _id: mongoose.Types.ObjectId;
421
+ } & {
422
+ __v: number;
423
+ }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SocialImageType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SocialImageType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SocialImageType> & {
424
+ _id: mongoose.Types.ObjectId;
425
+ } & {
426
+ __v: number;
427
+ }>;
428
+ };
371
429
  socialMedia: {
372
430
  required: boolean;
373
431
  type: mongoose.Schema<SocialMediaType, mongoose.Model<SocialMediaType, any, any, any, mongoose.Document<unknown, any, SocialMediaType, any, {}> & SocialMediaType & {
@@ -746,4 +804,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
746
804
  */
747
805
  declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
748
806
 
749
- 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 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, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
807
+ 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, socialImageSchema, socialImageUrlSchema, termsAgreementSchema, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense, userLicenseSchema };
package/dist/index.mjs CHANGED
@@ -3478,12 +3478,6 @@ var gameScreenIdentifierList = [
3478
3478
  match: "/visitors"
3479
3479
  }
3480
3480
  ];
3481
- var dateFormat = "DD-MM-YYYY";
3482
- var timeFormat = "HH:mm";
3483
- dayjs.extend(customParseFormat);
3484
- dayjs.extend(utc);
3485
- dayjs.extend(timezone);
3486
- dayjs.extend(isSameOrAfter);
3487
3481
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
3488
3482
  EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
3489
3483
  EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
@@ -3559,6 +3553,21 @@ var paymentMethodOptions = mapArrayToOptions(
3559
3553
  Object.values(EnumPaymentMethod)
3560
3554
  );
3561
3555
  var CLUEMART_MAIN_DOMAIN_URL = "https://cluemart.co.nz";
3556
+ var dateFormat = "DD-MM-YYYY";
3557
+ var timeFormat = "HH:mm";
3558
+ dayjs.extend(customParseFormat);
3559
+ dayjs.extend(utc);
3560
+ dayjs.extend(timezone);
3561
+ dayjs.extend(isSameOrAfter);
3562
+ var futureTimePeriods = mapArrayToOptions(
3563
+ Object.values(EnumEventDateStatus)
3564
+ ).filter(
3565
+ (period) => period.value !== "Starting_Soon" && period.value !== "Canceled" && period.value !== "Rescheduled" && period.value !== "Started" && period.value !== "Ended" && period.value !== "Invalid"
3566
+ /* INVALID */
3567
+ ).map((period) => ({
3568
+ label: period.value.replaceAll("_", " "),
3569
+ value: period.value
3570
+ }));
3562
3571
  var packagingTypes = [
3563
3572
  "Biodegradable",
3564
3573
  "Compostable",
@@ -5093,6 +5102,29 @@ var EVENT_LIST_ITEM = gql`
5093
5102
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
5094
5103
  ${RELATION_DATES_FRAGMENT}
5095
5104
  `;
5105
+ var RELATED_POST_FIELDS_FRAGMENT = gql`
5106
+ fragment RelatedPostFields on RelatedPostType {
5107
+ postId
5108
+ postType
5109
+ }
5110
+ `;
5111
+ var SOCIAL_IMAGE_URL_FIELDS_FRAGMENT = gql`
5112
+ fragment SocialImageUrlFields on SocialImageUrlType {
5113
+ url
5114
+ qrCode
5115
+ }
5116
+ `;
5117
+ var SOCIAL_IMAGE_FIELDS_FRAGMENT = gql`
5118
+ fragment SocialImageFields on SocialImageType {
5119
+ public {
5120
+ ...SocialImageUrlFields
5121
+ }
5122
+ relation {
5123
+ ...SocialImageUrlFields
5124
+ }
5125
+ }
5126
+ ${SOCIAL_IMAGE_URL_FIELDS_FRAGMENT}
5127
+ `;
5096
5128
  var EVENT_INFO = gql`
5097
5129
  fragment EventInfoFields on EventInfoType {
5098
5130
  _id
@@ -5182,9 +5214,15 @@ var EVENT = gql`
5182
5214
  rating
5183
5215
  reviewCount
5184
5216
  rainOrShine
5217
+ relatedPost {
5218
+ ...RelatedPostFields
5219
+ }
5185
5220
  socialMedia {
5186
5221
  ...SocialMediaFields
5187
5222
  }
5223
+ socialImage {
5224
+ ...SocialImageFields
5225
+ }
5188
5226
  tags
5189
5227
  termsAgreement {
5190
5228
  ...TermsAgreementFields
@@ -5201,6 +5239,8 @@ var EVENT = gql`
5201
5239
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5202
5240
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5203
5241
  ${RELATION_DATES_FRAGMENT}
5242
+ ${RELATED_POST_FIELDS_FRAGMENT}
5243
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5204
5244
  `;
5205
5245
  var GET_EVENTS = gql`
5206
5246
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -5367,6 +5407,9 @@ var VENDOR = gql`
5367
5407
  rating
5368
5408
  region
5369
5409
  reviewCount
5410
+ relatedPost {
5411
+ ...RelatedPostFields
5412
+ }
5370
5413
  relations {
5371
5414
  relationId
5372
5415
  relationDates {
@@ -5376,6 +5419,9 @@ var VENDOR = gql`
5376
5419
  socialMedia {
5377
5420
  ...SocialMediaFields
5378
5421
  }
5422
+ socialImage {
5423
+ ...SocialImageFields
5424
+ }
5379
5425
  termsAgreement {
5380
5426
  ...TermsAgreementFields
5381
5427
  }
@@ -5395,6 +5441,8 @@ var VENDOR = gql`
5395
5441
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5396
5442
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
5397
5443
  ${RELATION_DATES_FRAGMENT}
5444
+ ${RELATED_POST_FIELDS_FRAGMENT}
5445
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5398
5446
  `;
5399
5447
  var VENDOR_ATTRIBUTES_FRAGMENT = gql`
5400
5448
  fragment VendorAttributesFields on VendorAttributesType {
@@ -5853,9 +5901,15 @@ var PARTNER = gql`
5853
5901
  rating
5854
5902
  region
5855
5903
  reviewCount
5904
+ relatedPost {
5905
+ ...RelatedPostFields
5906
+ }
5856
5907
  socialMedia {
5857
5908
  ...SocialMediaFields
5858
5909
  }
5910
+ socialImage {
5911
+ ...SocialImageFields
5912
+ }
5859
5913
  termsAgreement {
5860
5914
  ...TermsAgreementFields
5861
5915
  }
@@ -5869,6 +5923,8 @@ var PARTNER = gql`
5869
5923
  ${POSTER_USAGE_FIELDS_FRAGMENT}
5870
5924
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
5871
5925
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
5926
+ ${RELATED_POST_FIELDS_FRAGMENT}
5927
+ ${SOCIAL_IMAGE_FIELDS_FRAGMENT}
5872
5928
  `;
5873
5929
  var GET_PARTNERS = gql`
5874
5930
  query getPartners {
@@ -7777,6 +7833,38 @@ var locationsSchema = new MongooseSchema6(
7777
7833
  { _id: false }
7778
7834
  // Prevents Mongoose from creating an additional _id field for subdocuments
7779
7835
  );
7836
+ var relatedPostSchema = new MongooseSchema6(
7837
+ {
7838
+ postId: {
7839
+ ref: "Post",
7840
+ required: true,
7841
+ type: mongoose6.Schema.Types.ObjectId
7842
+ },
7843
+ postType: {
7844
+ enum: Object.values(EnumPostType),
7845
+ required: true,
7846
+ type: String
7847
+ }
7848
+ },
7849
+ { _id: false }
7850
+ // Prevents Mongoose from creating an additional _id field for subdocuments
7851
+ );
7852
+ var socialImageUrlSchema = new MongooseSchema6(
7853
+ {
7854
+ qrCode: { required: true, type: String },
7855
+ url: { required: true, type: String }
7856
+ },
7857
+ { _id: false }
7858
+ // Prevents Mongoose from creating an additional _id field for subdocuments
7859
+ );
7860
+ var socialImageSchema = new MongooseSchema6(
7861
+ {
7862
+ public: { required: true, type: socialImageUrlSchema },
7863
+ relation: { required: false, type: socialImageUrlSchema }
7864
+ },
7865
+ { _id: false }
7866
+ // Prevents Mongoose from creating an additional _id field for subdocuments
7867
+ );
7780
7868
  var baseResourceFields = {
7781
7869
  active: { default: false, required: true, type: Boolean },
7782
7870
  adIds: {
@@ -7806,7 +7894,9 @@ var baseResourceFields = {
7806
7894
  promoCodes: { required: false, type: [String] },
7807
7895
  rating: { required: false, type: Number },
7808
7896
  region: { required: true, type: String },
7897
+ relatedPost: { required: false, type: relatedPostSchema },
7809
7898
  reviewCount: { required: false, type: Number },
7899
+ socialImage: { required: false, type: socialImageSchema },
7810
7900
  socialMedia: { required: false, type: [SocialMediaTypeSchema] },
7811
7901
  termsAgreement: { required: true, type: termsAgreementSchema }
7812
7902
  };
@@ -9335,10 +9425,13 @@ export {
9335
9425
  locationsSchema,
9336
9426
  mongoose28 as mongoose,
9337
9427
  refundPolicySchema,
9428
+ relatedPostSchema,
9338
9429
  relationDatesSchema,
9339
9430
  resourceRelationsSchema,
9340
9431
  saveNotificationsInDb,
9341
9432
  sendPushNotifications,
9433
+ socialImageSchema,
9434
+ socialImageUrlSchema,
9342
9435
  termsAgreementSchema,
9343
9436
  updateAdStatuses,
9344
9437
  updateAllEventDateTimeStatuses,