@armi-wave/common 1.23.40 → 1.23.41
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.
|
@@ -62,6 +62,15 @@ const conversationSchema = new mongoose_1.Schema({
|
|
|
62
62
|
of: Number,
|
|
63
63
|
default: {},
|
|
64
64
|
},
|
|
65
|
+
groupName: {
|
|
66
|
+
type: String,
|
|
67
|
+
required: false,
|
|
68
|
+
trim: true,
|
|
69
|
+
},
|
|
70
|
+
groupImageUrl: {
|
|
71
|
+
type: String,
|
|
72
|
+
required: false,
|
|
73
|
+
},
|
|
65
74
|
}, {
|
|
66
75
|
timestamps: true,
|
|
67
76
|
toJSON: {
|
|
@@ -5,17 +5,13 @@ export interface SharedPost {
|
|
|
5
5
|
postId: mongoose.Types.ObjectId;
|
|
6
6
|
postModel: 'Post' | 'TextPost' | 'VideoPost';
|
|
7
7
|
postType: string;
|
|
8
|
-
contentUrl?: string;
|
|
9
|
-
caption: string;
|
|
10
|
-
username: string;
|
|
11
|
-
profilePicUrl: string;
|
|
12
8
|
}
|
|
13
9
|
interface Message extends Document {
|
|
14
10
|
conversationId: mongoose.Types.ObjectId;
|
|
15
11
|
senderId: mongoose.Types.ObjectId;
|
|
16
12
|
content: string;
|
|
17
13
|
type: MessageType;
|
|
18
|
-
|
|
14
|
+
contentUrls?: string[];
|
|
19
15
|
status: MessageStatus;
|
|
20
16
|
readBy: mongoose.Types.ObjectId[];
|
|
21
17
|
deletedFor: mongoose.Types.ObjectId[];
|
|
@@ -61,8 +61,7 @@ const messageSchema = new mongoose_1.Schema({
|
|
|
61
61
|
required: true,
|
|
62
62
|
default: MessageType_1.MessageType.Text,
|
|
63
63
|
},
|
|
64
|
-
|
|
65
|
-
// ← Media URL
|
|
64
|
+
contentUrls: {
|
|
66
65
|
type: [String],
|
|
67
66
|
default: [],
|
|
68
67
|
},
|
|
@@ -91,11 +90,10 @@ const messageSchema = new mongoose_1.Schema({
|
|
|
91
90
|
required: false,
|
|
92
91
|
enum: ['Post', 'TextPost', 'VideoPost'],
|
|
93
92
|
},
|
|
94
|
-
postType: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
profilePicUrl: { type: String, required: false, default: '' },
|
|
93
|
+
postType: {
|
|
94
|
+
type: String,
|
|
95
|
+
required: false,
|
|
96
|
+
},
|
|
99
97
|
},
|
|
100
98
|
}, {
|
|
101
99
|
timestamps: true,
|