@onyx-p/imlib-web 1.0.19 → 1.0.21
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.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ConversationType, MessageDirection } from './statusTypes';
|
1
|
+
import { ConversationType, MessageDirection, SentStatus } from './statusTypes';
|
2
2
|
/**
|
3
3
|
* 消息数据
|
4
4
|
*/
|
@@ -81,7 +81,7 @@ export default interface IReceivedMessage {
|
|
81
81
|
*/
|
82
82
|
messageId?: number;
|
83
83
|
/**
|
84
|
-
*
|
84
|
+
* 消息发送状态
|
85
85
|
*/
|
86
|
-
sentStatus
|
86
|
+
sentStatus: SentStatus;
|
87
87
|
}
|
@@ -212,6 +212,10 @@ export declare enum ErrorCode {
|
|
212
212
|
* 会话数量超出上限
|
213
213
|
*/
|
214
214
|
CONVER_OUT_LIMIT_ERROR = 34013,
|
215
|
+
/**
|
216
|
+
* 媒体文件上传异常,媒体文件不存在或文件大小为 0 或超过限制
|
217
|
+
*/
|
218
|
+
MEDIA_EXCEPTION = 34018,
|
215
219
|
/**
|
216
220
|
* 获取会话失败
|
217
221
|
*/
|
@@ -340,6 +344,23 @@ export interface IUserProfile {
|
|
340
344
|
*/
|
341
345
|
portrait?: string;
|
342
346
|
}
|
347
|
+
/**
|
348
|
+
* 发送状态
|
349
|
+
*/
|
350
|
+
export declare enum SentStatus {
|
351
|
+
/**
|
352
|
+
* 发送中
|
353
|
+
*/
|
354
|
+
SENDING = 10,
|
355
|
+
/**
|
356
|
+
* 发送失败
|
357
|
+
*/
|
358
|
+
FAILED = 20,
|
359
|
+
/**
|
360
|
+
* 已发送成功
|
361
|
+
*/
|
362
|
+
SENT = 30
|
363
|
+
}
|
343
364
|
export declare enum ReceivedStatus {
|
344
365
|
/**
|
345
366
|
* 已读
|