@timardex/cluemart-server-shared 1.0.255 → 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/{chunk-4GBXNDD6.mjs → chunk-LG23YZU7.mjs} +16 -10
- package/dist/chunk-LG23YZU7.mjs.map +1 -0
- package/dist/index.cjs +15 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +15 -9
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +15 -9
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.d.mts +2 -2
- package/dist/mongoose/index.d.ts +2 -2
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +15 -9
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-4GBXNDD6.mjs.map +0 -1
|
@@ -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?:
|
|
556
|
+
resource?: PostResource | null;
|
|
557
557
|
createdAt: Date;
|
|
558
558
|
deletedAt: Date | null;
|
|
559
559
|
updatedAt: Date | null;
|
package/dist/mongoose/index.d.ts
CHANGED
|
@@ -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?:
|
|
556
|
+
resource?: PostResource | null;
|
|
557
557
|
createdAt: Date;
|
|
558
558
|
deletedAt: Date | null;
|
|
559
559
|
updatedAt: Date | null;
|
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -8266,6 +8266,7 @@ var relatedPostSchema = new MongooseSchema8(
|
|
|
8266
8266
|
required: true,
|
|
8267
8267
|
type: import_mongoose9.default.Schema.Types.ObjectId
|
|
8268
8268
|
},
|
|
8269
|
+
postSlug: { required: true, type: String },
|
|
8269
8270
|
postType: {
|
|
8270
8271
|
enum: Object.values(EnumPostType),
|
|
8271
8272
|
required: true,
|
|
@@ -8920,6 +8921,19 @@ var contentSchema = new MongooseSchema18(
|
|
|
8920
8921
|
},
|
|
8921
8922
|
{ _id: false }
|
|
8922
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
|
+
);
|
|
8923
8937
|
var schema14 = new MongooseSchema18(
|
|
8924
8938
|
{
|
|
8925
8939
|
active: { default: false, required: true, type: Boolean },
|
|
@@ -8941,15 +8955,7 @@ var schema14 = new MongooseSchema18(
|
|
|
8941
8955
|
},
|
|
8942
8956
|
resource: {
|
|
8943
8957
|
required: false,
|
|
8944
|
-
type:
|
|
8945
|
-
resourceId: { required: true, type: String },
|
|
8946
|
-
resourceRegion: { required: true, type: String },
|
|
8947
|
-
resourceType: {
|
|
8948
|
-
enum: Object.values(EnumResourceType),
|
|
8949
|
-
required: true,
|
|
8950
|
-
type: String
|
|
8951
|
-
}
|
|
8952
|
-
}
|
|
8958
|
+
type: resourceSchema
|
|
8953
8959
|
},
|
|
8954
8960
|
slug: { required: true, type: String },
|
|
8955
8961
|
tags: { default: [], required: false, type: [String] },
|