@timardex/cluemart-server-shared 1.0.256 → 1.0.257

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, 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, 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';
@@ -673,7 +673,7 @@ declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<
673
673
  _id: string;
674
674
  content: PostContentType[];
675
675
  slug: string;
676
- resource?: _timardex_cluemart_shared.PostResource | null;
676
+ resource?: PostResource | null;
677
677
  createdAt: Date;
678
678
  deletedAt: Date | null;
679
679
  updatedAt: Date | null;
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, 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, 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';
@@ -673,7 +673,7 @@ declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<
673
673
  _id: string;
674
674
  content: PostContentType[];
675
675
  slug: string;
676
- resource?: _timardex_cluemart_shared.PostResource | null;
676
+ resource?: PostResource | null;
677
677
  createdAt: Date;
678
678
  deletedAt: Date | null;
679
679
  updatedAt: Date | null;
package/dist/index.mjs CHANGED
@@ -8715,6 +8715,19 @@ var contentSchema = new MongooseSchema18(
8715
8715
  },
8716
8716
  { _id: false }
8717
8717
  );
8718
+ var resourceSchema = new MongooseSchema18(
8719
+ {
8720
+ resourceId: { required: true, type: String },
8721
+ resourceRegion: { required: true, type: String },
8722
+ resourceSlug: { required: true, type: String },
8723
+ resourceType: {
8724
+ enum: Object.values(EnumResourceType),
8725
+ required: true,
8726
+ type: String
8727
+ }
8728
+ },
8729
+ { _id: false }
8730
+ );
8718
8731
  var schema14 = new MongooseSchema18(
8719
8732
  {
8720
8733
  active: { default: false, required: true, type: Boolean },
@@ -8736,15 +8749,7 @@ var schema14 = new MongooseSchema18(
8736
8749
  },
8737
8750
  resource: {
8738
8751
  required: false,
8739
- type: {
8740
- resourceId: { required: true, type: String },
8741
- resourceRegion: { required: true, type: String },
8742
- resourceType: {
8743
- enum: Object.values(EnumResourceType),
8744
- required: true,
8745
- type: String
8746
- }
8747
- }
8752
+ type: resourceSchema
8748
8753
  },
8749
8754
  slug: { required: true, type: String },
8750
8755
  tags: { default: [], required: false, type: [String] },