@timardex/cluemart-server-shared 1.0.85 → 1.0.87

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, ChatMessageType, ParticipantType, ChatType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType } from '@timardex/cluemart-shared';
2
+ import { AdType, CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType, PartnerType, PostType, EnumResourceType, AppSettingsType } from '@timardex/cluemart-shared';
3
3
  import mongoose from 'mongoose';
4
4
  export { default as mongoose } from 'mongoose';
5
5
  import { NotificationCount } from '@timardex/cluemart-shared/types';
@@ -104,6 +104,21 @@ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Doc
104
104
  __v: number;
105
105
  }, any>;
106
106
 
107
+ type SchemaChatReportType = Omit<ReportChatUser, "reporterUserId" | "reportedUserId" | "chatId"> & {
108
+ reporterUserId: ObjectId;
109
+ reportedUserId: ObjectId;
110
+ chatId: ObjectId;
111
+ };
112
+ declare const ChatReportModel: mongoose.Model<SchemaChatReportType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatReportType, {}, {}> & Omit<ReportChatUser, "chatId" | "reporterUserId" | "reportedUserId"> & {
113
+ reporterUserId: ObjectId;
114
+ reportedUserId: ObjectId;
115
+ chatId: ObjectId;
116
+ } & Required<{
117
+ _id: string;
118
+ }> & {
119
+ __v: number;
120
+ }, any>;
121
+
107
122
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
108
123
  userId: ObjectId;
109
124
  };
@@ -579,13 +594,17 @@ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoo
579
594
  __v: number;
580
595
  }, any>;
581
596
 
582
- type SchemaPostType = PostType;
583
- declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "content"> & {
584
- _id: string;
585
- content: PostContentType[];
586
- createdAt: Date;
587
- deletedAt: Date | null;
588
- updatedAt: Date | null;
597
+ type SchemaPostType = Omit<PostType, "resource"> & {
598
+ resource?: {
599
+ resourceId: ObjectId;
600
+ resourceType: EnumResourceType;
601
+ };
602
+ };
603
+ declare const PostModel: mongoose.Model<SchemaPostType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPostType, {}, {}> & Omit<PostType, "resource"> & {
604
+ resource?: {
605
+ resourceId: ObjectId;
606
+ resourceType: EnumResourceType;
607
+ };
589
608
  } & Required<{
590
609
  _id: string;
591
610
  }> & {
@@ -629,4 +648,4 @@ declare function sendPushNotifications({ data, message, title, userIds, }: Schem
629
648
  */
630
649
  declare function updateAdStatuses(): Promise<void>;
631
650
 
632
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, EnumPubSubEvents, EventInfoModel, EventModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, dateTimeSchema, locationGeoSchema, locationsSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, userLicenseSchema };
651
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, EnumPubSubEvents, EventInfoModel, EventModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, ParticipantSchema, 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 SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, dateTimeSchema, locationGeoSchema, locationsSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, 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, ChatMessageType, ParticipantType, ChatType, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType, PartnerType, PostType, PostContentType, AppSettingsType } from '@timardex/cluemart-shared';
2
+ import { AdType, CreateBulkNotificationInput, NotificationType, ChatMessageType, ParticipantType, ChatType, ReportChatUser, OwnerType, SocialMediaType, ResourceImageType, Category, UserLicenceType, AssociateType, TermsAgreement, RelationDate, DateTimeType, LocationGeoType, LocationType, ResourceContactDetailsType, PosterUsageType, GoogleImportedMarket, RelationType, ResourceActivityType, TesterType, UserActivityEvent, UserType, VendorType, VendorInfoType, EventType, StallType, EventInfoType, PartnerType, PostType, EnumResourceType, AppSettingsType } from '@timardex/cluemart-shared';
3
3
  import mongoose from 'mongoose';
4
4
  export { default as mongoose } from 'mongoose';
5
5
  import { NotificationCount } from '@timardex/cluemart-shared/types';
@@ -104,6 +104,21 @@ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Doc
104
104
  __v: number;
105
105
  }, any>;
106
106
 
107
+ type SchemaChatReportType = Omit<ReportChatUser, "reporterUserId" | "reportedUserId" | "chatId"> & {
108
+ reporterUserId: ObjectId;
109
+ reportedUserId: ObjectId;
110
+ chatId: ObjectId;
111
+ };
112
+ declare const ChatReportModel: mongoose.Model<SchemaChatReportType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatReportType, {}, {}> & Omit<ReportChatUser, "chatId" | "reporterUserId" | "reportedUserId"> & {
113
+ reporterUserId: ObjectId;
114
+ reportedUserId: ObjectId;
115
+ chatId: ObjectId;
116
+ } & Required<{
117
+ _id: string;
118
+ }> & {
119
+ __v: number;
120
+ }, any>;
121
+
107
122
  type SchemaOwnerType = Omit<OwnerType, "userId"> & {
108
123
  userId: ObjectId;
109
124
  };
@@ -579,13 +594,17 @@ declare const PartnerModel: mongoose.Model<SchemaPartnerType, {}, {}, {}, mongoo
579
594
  __v: number;
580
595
  }, any>;
581
596
 
582
- type SchemaPostType = PostType;
583
- declare const PostModel: mongoose.Model<PostType, {}, {}, {}, mongoose.Document<unknown, {}, PostType, {}, {}> & Omit<_timardex_cluemart_shared.PostFormData, "content"> & {
584
- _id: string;
585
- content: PostContentType[];
586
- createdAt: Date;
587
- deletedAt: Date | null;
588
- updatedAt: Date | null;
597
+ type SchemaPostType = Omit<PostType, "resource"> & {
598
+ resource?: {
599
+ resourceId: ObjectId;
600
+ resourceType: EnumResourceType;
601
+ };
602
+ };
603
+ declare const PostModel: mongoose.Model<SchemaPostType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaPostType, {}, {}> & Omit<PostType, "resource"> & {
604
+ resource?: {
605
+ resourceId: ObjectId;
606
+ resourceType: EnumResourceType;
607
+ };
589
608
  } & Required<{
590
609
  _id: string;
591
610
  }> & {
@@ -629,4 +648,4 @@ declare function sendPushNotifications({ data, message, title, userIds, }: Schem
629
648
  */
630
649
  declare function updateAdStatuses(): Promise<void>;
631
650
 
632
- export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, EnumPubSubEvents, EventInfoModel, EventModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, ParticipantSchema, PartnerModel, PostModel, PushTokenModel, RelationModel, RelationTypeSchema, ResourceActivityModel, ResourceImageTypeSchema, type SchemaChatMessageReactionType, type SchemaChatMessageReplyPreviewType, type SchemaChatMessageSeenType, type SchemaChatMessageType, type SchemaChatType, type SchemaCreateBulkNotificationInput, type SchemaEventInfoType, type SchemaEventType, type SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, dateTimeSchema, locationGeoSchema, locationsSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, userLicenseSchema };
651
+ export { APP_SETTINGS_ID, AdModel, AppSettingModel, type AuthUser, CategorySchema, ChatModel, ChatReportModel, EnumPubSubEvents, EventInfoModel, EventModel, GoogleImportedMarketModel, type GraphQLContext, NotificationModel, type ObjectId, ParticipantSchema, 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 SchemaGoogleImportedMarket, type SchemaNotificationType, type SchemaOwnerType, type SchemaParticipantType, type SchemaPartnerType, type SchemaPostType, type SchemaPushTokenType, type SchemaRelationType, type SchemaUserActivityEvent, type SchemaUserType, type SchemaVendorInfoType, type SchemaVendorType, SocialMediaTypeSchema, StallTypeSchema, type SubscriptionPayload, TesterModel, UserModel, VendorInfoModel, VendorModel, VerificationTokenModel, type VerificationTokenType, associatesSchema, baseResourceFields, connectToDatabase, dateTimeSchema, locationGeoSchema, locationsSchema, relationDatesSchema, resourceRelationsSchema, saveNotificationsInDb, sendPushNotifications, termsAgreementSchema, updateAdStatuses, userLicenseSchema };