@timardex/cluemart-server-shared 1.0.148 → 1.0.150

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.
@@ -17,7 +17,7 @@ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {},
17
17
  __v: number;
18
18
  }, any>;
19
19
 
20
- type ObjectId = mongoose.Schema.Types.ObjectId;
20
+ type ObjectId = mongoose.Types.ObjectId;
21
21
  declare enum EnumPubSubEvents {
22
22
  GET_CHAT_MESSAGE = "GET_CHAT_MESSAGE",
23
23
  GET_NOTIFICATIONS = "GET_NOTIFICATIONS",
@@ -74,17 +74,6 @@ type SchemaChatType = Omit<ChatType, "participants" | "messages"> & {
74
74
  participants: SchemaParticipantType[];
75
75
  messages: SchemaChatMessageType[];
76
76
  };
77
- declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
78
- userId: ObjectId;
79
- } & {
80
- _id: mongoose.Types.ObjectId;
81
- } & {
82
- __v: number;
83
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
84
- _id: mongoose.Types.ObjectId;
85
- } & {
86
- __v: number;
87
- }>;
88
77
  declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages"> & {
89
78
  participants: SchemaParticipantType[];
90
79
  messages: SchemaChatMessageType[];
@@ -94,4 +83,4 @@ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Doc
94
83
  __v: number;
95
84
  }, any>;
96
85
 
97
- export { type AuthUser as A, ChatModel as C, EnumPubSubEvents as E, type GraphQLContext as G, NotificationModel as N, type ObjectId as O, ParticipantSchema as P, type SchemaChatMessageReplyPreviewType as S, type SchemaChatMessageReactionType as a, type SchemaChatMessageSeenType as b, type SchemaChatMessageType as c, type SchemaParticipantType as d, type SchemaChatType as e, type SchemaCreateBulkNotificationInput as f, type SchemaNotificationType as g, type SubscriptionPayload as h };
86
+ export { type AuthUser as A, ChatModel as C, EnumPubSubEvents as E, type GraphQLContext as G, NotificationModel as N, type ObjectId as O, type SchemaChatMessageReplyPreviewType as S, type SchemaChatMessageReactionType as a, type SchemaChatMessageSeenType as b, type SchemaChatMessageType as c, type SchemaParticipantType as d, type SchemaChatType as e, type SchemaCreateBulkNotificationInput as f, type SchemaNotificationType as g, type SubscriptionPayload as h };
@@ -17,7 +17,7 @@ declare const NotificationModel: mongoose.Model<SchemaNotificationType, {}, {},
17
17
  __v: number;
18
18
  }, any>;
19
19
 
20
- type ObjectId = mongoose.Schema.Types.ObjectId;
20
+ type ObjectId = mongoose.Types.ObjectId;
21
21
  declare enum EnumPubSubEvents {
22
22
  GET_CHAT_MESSAGE = "GET_CHAT_MESSAGE",
23
23
  GET_NOTIFICATIONS = "GET_NOTIFICATIONS",
@@ -74,17 +74,6 @@ type SchemaChatType = Omit<ChatType, "participants" | "messages"> & {
74
74
  participants: SchemaParticipantType[];
75
75
  messages: SchemaChatMessageType[];
76
76
  };
77
- declare const ParticipantSchema: mongoose.Schema<SchemaParticipantType, mongoose.Model<SchemaParticipantType, any, any, any, mongoose.Document<unknown, any, SchemaParticipantType, any, {}> & Omit<ParticipantType, "userId"> & {
78
- userId: ObjectId;
79
- } & {
80
- _id: mongoose.Types.ObjectId;
81
- } & {
82
- __v: number;
83
- }, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, SchemaParticipantType, mongoose.Document<unknown, {}, mongoose.FlatRecord<SchemaParticipantType>, {}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & mongoose.FlatRecord<SchemaParticipantType> & {
84
- _id: mongoose.Types.ObjectId;
85
- } & {
86
- __v: number;
87
- }>;
88
77
  declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Document<unknown, {}, SchemaChatType, {}, {}> & Omit<ChatType, "participants" | "messages"> & {
89
78
  participants: SchemaParticipantType[];
90
79
  messages: SchemaChatMessageType[];
@@ -94,4 +83,4 @@ declare const ChatModel: mongoose.Model<SchemaChatType, {}, {}, {}, mongoose.Doc
94
83
  __v: number;
95
84
  }, any>;
96
85
 
97
- export { type AuthUser as A, ChatModel as C, EnumPubSubEvents as E, type GraphQLContext as G, NotificationModel as N, type ObjectId as O, ParticipantSchema as P, type SchemaChatMessageReplyPreviewType as S, type SchemaChatMessageReactionType as a, type SchemaChatMessageSeenType as b, type SchemaChatMessageType as c, type SchemaParticipantType as d, type SchemaChatType as e, type SchemaCreateBulkNotificationInput as f, type SchemaNotificationType as g, type SubscriptionPayload as h };
86
+ export { type AuthUser as A, ChatModel as C, EnumPubSubEvents as E, type GraphQLContext as G, NotificationModel as N, type ObjectId as O, type SchemaChatMessageReplyPreviewType as S, type SchemaChatMessageReactionType as a, type SchemaChatMessageSeenType as b, type SchemaChatMessageType as c, type SchemaParticipantType as d, type SchemaChatType as e, type SchemaCreateBulkNotificationInput as f, type SchemaNotificationType as g, type SubscriptionPayload as h };
@@ -8968,6 +8968,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql`
8968
8968
  var CHAT_PARTICIPANT = gql`
8969
8969
  fragment ChatParticipantFields on ChatParticipantType {
8970
8970
  active
8971
+ isAssociate
8971
8972
  userAvatar
8972
8973
  userEmail
8973
8974
  userId
@@ -11162,6 +11163,7 @@ var MessageSchema = new MongooseSchema2(
11162
11163
  var ParticipantSchema = new MongooseSchema2(
11163
11164
  {
11164
11165
  active: { default: true, required: true, type: Boolean },
11166
+ isAssociate: { default: null, required: false, type: Boolean },
11165
11167
  userAvatar: { required: false, type: String },
11166
11168
  userEmail: { required: true, type: String },
11167
11169
  userId: {
@@ -12409,11 +12411,11 @@ var schema15 = new MongooseSchema21(
12409
12411
  var SchoolModel = mongoose21.models.School || mongoose21.model("School", schema15);
12410
12412
 
12411
12413
  export {
12414
+ EnumChatType,
12412
12415
  EnumResourceType,
12413
12416
  EnumUserLicence,
12414
12417
  EnumAdStatus,
12415
12418
  AdModel,
12416
- ParticipantSchema,
12417
12419
  ChatModel,
12418
12420
  ChatReportModel,
12419
12421
  StallTypeSchema,
@@ -12475,4 +12477,4 @@ react/cjs/react.development.js:
12475
12477
  * LICENSE file in the root directory of this source tree.
12476
12478
  *)
12477
12479
  */
12478
- //# sourceMappingURL=chunk-XT6SQI4D.mjs.map
12480
+ //# sourceMappingURL=chunk-YNM5IJGO.mjs.map