c2-desafiox 1.0.135 → 1.0.136
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.
|
@@ -65,23 +65,23 @@ export declare const ChatMessageSchema: Schema<any, import("mongoose").Model<any
|
|
|
65
65
|
}>;
|
|
66
66
|
sendDateTime: NativeDate;
|
|
67
67
|
receivements: Types.DocumentArray<{
|
|
68
|
-
receivedBy?:
|
|
68
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
69
69
|
receivedDateTime?: NativeDate | null | undefined;
|
|
70
70
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
71
|
-
receivedBy?:
|
|
71
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
72
72
|
receivedDateTime?: NativeDate | null | undefined;
|
|
73
73
|
}> & {
|
|
74
|
-
receivedBy?:
|
|
74
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
75
75
|
receivedDateTime?: NativeDate | null | undefined;
|
|
76
76
|
}>;
|
|
77
77
|
seens: Types.DocumentArray<{
|
|
78
|
-
seenBy?:
|
|
78
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
79
79
|
seenDateTime?: NativeDate | null | undefined;
|
|
80
80
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
81
|
-
seenBy?:
|
|
81
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
82
82
|
seenDateTime?: NativeDate | null | undefined;
|
|
83
83
|
}> & {
|
|
84
|
-
seenBy?:
|
|
84
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
85
85
|
seenDateTime?: NativeDate | null | undefined;
|
|
86
86
|
}>;
|
|
87
87
|
content?: string | null | undefined;
|
|
@@ -114,23 +114,23 @@ export declare const ChatMessageSchema: Schema<any, import("mongoose").Model<any
|
|
|
114
114
|
}>;
|
|
115
115
|
sendDateTime: NativeDate;
|
|
116
116
|
receivements: Types.DocumentArray<{
|
|
117
|
-
receivedBy?:
|
|
117
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
118
118
|
receivedDateTime?: NativeDate | null | undefined;
|
|
119
119
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
120
|
-
receivedBy?:
|
|
120
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
121
121
|
receivedDateTime?: NativeDate | null | undefined;
|
|
122
122
|
}> & {
|
|
123
|
-
receivedBy?:
|
|
123
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
124
124
|
receivedDateTime?: NativeDate | null | undefined;
|
|
125
125
|
}>;
|
|
126
126
|
seens: Types.DocumentArray<{
|
|
127
|
-
seenBy?:
|
|
127
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
128
128
|
seenDateTime?: NativeDate | null | undefined;
|
|
129
129
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
130
|
-
seenBy?:
|
|
130
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
131
131
|
seenDateTime?: NativeDate | null | undefined;
|
|
132
132
|
}> & {
|
|
133
|
-
seenBy?:
|
|
133
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
134
134
|
seenDateTime?: NativeDate | null | undefined;
|
|
135
135
|
}>;
|
|
136
136
|
content?: string | null | undefined;
|
|
@@ -163,23 +163,23 @@ export declare const ChatMessageSchema: Schema<any, import("mongoose").Model<any
|
|
|
163
163
|
}>;
|
|
164
164
|
sendDateTime: NativeDate;
|
|
165
165
|
receivements: Types.DocumentArray<{
|
|
166
|
-
receivedBy?:
|
|
166
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
167
167
|
receivedDateTime?: NativeDate | null | undefined;
|
|
168
168
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
169
|
-
receivedBy?:
|
|
169
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
170
170
|
receivedDateTime?: NativeDate | null | undefined;
|
|
171
171
|
}> & {
|
|
172
|
-
receivedBy?:
|
|
172
|
+
receivedBy?: Types.ObjectId | null | undefined;
|
|
173
173
|
receivedDateTime?: NativeDate | null | undefined;
|
|
174
174
|
}>;
|
|
175
175
|
seens: Types.DocumentArray<{
|
|
176
|
-
seenBy?:
|
|
176
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
177
177
|
seenDateTime?: NativeDate | null | undefined;
|
|
178
178
|
}, Types.Subdocument<Types.ObjectId, any, {
|
|
179
|
-
seenBy?:
|
|
179
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
180
180
|
seenDateTime?: NativeDate | null | undefined;
|
|
181
181
|
}> & {
|
|
182
|
-
seenBy?:
|
|
182
|
+
seenBy?: Types.ObjectId | null | undefined;
|
|
183
183
|
seenDateTime?: NativeDate | null | undefined;
|
|
184
184
|
}>;
|
|
185
185
|
content?: string | null | undefined;
|
|
@@ -26,13 +26,13 @@ exports.ChatMessageSchema = new mongoose_1.Schema({
|
|
|
26
26
|
sendDateTime: { type: Date, required: true },
|
|
27
27
|
receivements: {
|
|
28
28
|
type: [{
|
|
29
|
-
receivedBy: { type:
|
|
29
|
+
receivedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "contact" },
|
|
30
30
|
receivedDateTime: { type: Date }
|
|
31
31
|
}]
|
|
32
32
|
},
|
|
33
33
|
seens: {
|
|
34
34
|
type: [{
|
|
35
|
-
seenBy: { type:
|
|
35
|
+
seenBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "contact" },
|
|
36
36
|
seenDateTime: { type: Date }
|
|
37
37
|
}]
|
|
38
38
|
}
|
package/package.json
CHANGED