@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.
@@ -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, 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, 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';
@@ -553,7 +553,7 @@ declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<
553
553
  _id: string;
554
554
  content: PostContentType[];
555
555
  slug: string;
556
- resource?: _timardex_cluemart_shared.PostResource | null;
556
+ resource?: PostResource | null;
557
557
  createdAt: Date;
558
558
  deletedAt: Date | null;
559
559
  updatedAt: Date | null;
@@ -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, 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, 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';
@@ -553,7 +553,7 @@ declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<
553
553
  _id: string;
554
554
  content: PostContentType[];
555
555
  slug: string;
556
- resource?: _timardex_cluemart_shared.PostResource | null;
556
+ resource?: PostResource | null;
557
557
  createdAt: Date;
558
558
  deletedAt: Date | null;
559
559
  updatedAt: Date | null;
@@ -38,7 +38,7 @@ import {
38
38
  resourceRelationsSchema,
39
39
  termsAgreementSchema,
40
40
  userLicenseSchema
41
- } from "../chunk-ZKPPP7DX.mjs";
41
+ } from "../chunk-LG23YZU7.mjs";
42
42
  export {
43
43
  APP_SETTINGS_ID,
44
44
  AdModel,
@@ -8921,6 +8921,19 @@ var contentSchema = new MongooseSchema18(
8921
8921
  },
8922
8922
  { _id: false }
8923
8923
  );
8924
+ var resourceSchema = new MongooseSchema18(
8925
+ {
8926
+ resourceId: { required: true, type: String },
8927
+ resourceRegion: { required: true, type: String },
8928
+ resourceSlug: { required: true, type: String },
8929
+ resourceType: {
8930
+ enum: Object.values(EnumResourceType),
8931
+ required: true,
8932
+ type: String
8933
+ }
8934
+ },
8935
+ { _id: false }
8936
+ );
8924
8937
  var schema14 = new MongooseSchema18(
8925
8938
  {
8926
8939
  active: { default: false, required: true, type: Boolean },
@@ -8942,15 +8955,7 @@ var schema14 = new MongooseSchema18(
8942
8955
  },
8943
8956
  resource: {
8944
8957
  required: false,
8945
- type: {
8946
- resourceId: { required: true, type: String },
8947
- resourceRegion: { required: true, type: String },
8948
- resourceType: {
8949
- enum: Object.values(EnumResourceType),
8950
- required: true,
8951
- type: String
8952
- }
8953
- }
8958
+ type: resourceSchema
8954
8959
  },
8955
8960
  slug: { required: true, type: String },
8956
8961
  tags: { default: [], required: false, type: [String] },