@timardex/cluemart-server-shared 1.0.178 → 1.0.200

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.
@@ -52,13 +52,11 @@ interface GraphQLContext {
52
52
  type SchemaChatMessageReplyPreviewType = Omit<NonNullable<ChatMessageType["replyPreview"]>, "senderId"> & {
53
53
  senderId: ObjectId;
54
54
  };
55
- type SchemaChatMessageReactionType = Omit<NonNullable<ChatMessageType["likedBy"]>[number], "userId" | "createdAt"> & {
55
+ type SchemaChatMessageReactionType = Omit<NonNullable<ChatMessageType["likedBy"]>[number], "userId"> & {
56
56
  userId: ObjectId;
57
- createdAt: Date;
58
57
  };
59
- type SchemaChatMessageSeenType = Omit<NonNullable<ChatMessageType["seenBy"]>[number], "userId" | "seenAt"> & {
58
+ type SchemaChatMessageSeenType = Omit<NonNullable<ChatMessageType["seenBy"]>[number], "userId"> & {
60
59
  userId: ObjectId;
61
- seenAt: Date;
62
60
  };
63
61
  type SchemaChatMessageType = Omit<ChatMessageType, "senderId" | "replyToMessageId" | "replyPreview" | "likedBy" | "seenBy"> & {
64
62
  senderId: ObjectId;
@@ -52,13 +52,11 @@ interface GraphQLContext {
52
52
  type SchemaChatMessageReplyPreviewType = Omit<NonNullable<ChatMessageType["replyPreview"]>, "senderId"> & {
53
53
  senderId: ObjectId;
54
54
  };
55
- type SchemaChatMessageReactionType = Omit<NonNullable<ChatMessageType["likedBy"]>[number], "userId" | "createdAt"> & {
55
+ type SchemaChatMessageReactionType = Omit<NonNullable<ChatMessageType["likedBy"]>[number], "userId"> & {
56
56
  userId: ObjectId;
57
- createdAt: Date;
58
57
  };
59
- type SchemaChatMessageSeenType = Omit<NonNullable<ChatMessageType["seenBy"]>[number], "userId" | "seenAt"> & {
58
+ type SchemaChatMessageSeenType = Omit<NonNullable<ChatMessageType["seenBy"]>[number], "userId"> & {
60
59
  userId: ObjectId;
61
- seenAt: Date;
62
60
  };
63
61
  type SchemaChatMessageType = Omit<ChatMessageType, "senderId" | "replyToMessageId" | "replyPreview" | "likedBy" | "seenBy"> & {
64
62
  senderId: ObjectId;
@@ -1,6 +1,6 @@
1
1
  import { RelationDate, RelationType } from '@timardex/cluemart-shared';
2
2
  import mongoose from 'mongoose';
3
- import { O as ObjectId } from './Chat-Ctmtatmi.mjs';
3
+ import { O as ObjectId } from './Chat-DYkhie3G.js';
4
4
 
5
5
  declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
6
6
  _id: mongoose.Types.ObjectId;
@@ -11,7 +11,7 @@ declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<
11
11
  } & {
12
12
  __v: number;
13
13
  }>;
14
- type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
14
+ type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId" | "apiMessage"> & {
15
15
  eventId: ObjectId;
16
16
  vendorId: ObjectId;
17
17
  chatId: ObjectId;
@@ -21,7 +21,7 @@ type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId">
21
21
  * It is used to define the structure of the relation type in the database.
22
22
  * The schema is used by Mongoose to create a model for the relation type.
23
23
  */
24
- declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
24
+ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId" | "apiMessage"> & {
25
25
  eventId: ObjectId;
26
26
  vendorId: ObjectId;
27
27
  chatId: ObjectId;
@@ -34,7 +34,7 @@ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.M
34
34
  }> & {
35
35
  __v: number;
36
36
  }>;
37
- declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
37
+ declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId" | "apiMessage"> & {
38
38
  eventId: ObjectId;
39
39
  vendorId: ObjectId;
40
40
  chatId: ObjectId;
@@ -1,6 +1,6 @@
1
1
  import { RelationDate, RelationType } from '@timardex/cluemart-shared';
2
2
  import mongoose from 'mongoose';
3
- import { O as ObjectId } from './Chat-Ctmtatmi.js';
3
+ import { O as ObjectId } from './Chat-DYkhie3G.mjs';
4
4
 
5
5
  declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<RelationDate, any, any, any, mongoose.Document<unknown, any, RelationDate, any, {}> & RelationDate & {
6
6
  _id: mongoose.Types.ObjectId;
@@ -11,7 +11,7 @@ declare const relationDatesSchema: mongoose.Schema<RelationDate, mongoose.Model<
11
11
  } & {
12
12
  __v: number;
13
13
  }>;
14
- type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId"> & {
14
+ type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId" | "apiMessage"> & {
15
15
  eventId: ObjectId;
16
16
  vendorId: ObjectId;
17
17
  chatId: ObjectId;
@@ -21,7 +21,7 @@ type SchemaRelationType = Omit<RelationType, "eventId" | "vendorId" | "chatId">
21
21
  * It is used to define the structure of the relation type in the database.
22
22
  * The schema is used by Mongoose to create a model for the relation type.
23
23
  */
24
- declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
24
+ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.Model<SchemaRelationType, any, any, any, mongoose.Document<unknown, any, SchemaRelationType, any, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId" | "apiMessage"> & {
25
25
  eventId: ObjectId;
26
26
  vendorId: ObjectId;
27
27
  chatId: ObjectId;
@@ -34,7 +34,7 @@ declare const RelationTypeSchema: mongoose.Schema<SchemaRelationType, mongoose.M
34
34
  }> & {
35
35
  __v: number;
36
36
  }>;
37
- declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId"> & {
37
+ declare const RelationModel: mongoose.Model<SchemaRelationType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaRelationType, {}, {}> & Omit<RelationType, "chatId" | "eventId" | "vendorId" | "apiMessage"> & {
38
38
  eventId: ObjectId;
39
39
  vendorId: ObjectId;
40
40
  chatId: ObjectId;