@onyx-p/imlib-web 1.0.20 → 1.0.22
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
|
}
|
@@ -344,6 +344,23 @@ export interface IUserProfile {
|
|
344
344
|
*/
|
345
345
|
portrait?: string;
|
346
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
|
+
}
|
347
364
|
export declare enum ReceivedStatus {
|
348
365
|
/**
|
349
366
|
* 已读
|
package/dist/types/types.d.ts
CHANGED
@@ -75,6 +75,29 @@ export declare type IUpdatedConversation = {
|
|
75
75
|
conversation: IReceivedConversation;
|
76
76
|
updatedItems: IUpdatedConversationItem;
|
77
77
|
};
|
78
|
+
/**
|
79
|
+
* 消息的推送配置
|
80
|
+
*/
|
81
|
+
export declare type IPushConfig = {
|
82
|
+
/**
|
83
|
+
* 推送标题
|
84
|
+
如果没有设置,会使用下面的默认标题显示规则
|
85
|
+
默认标题显示规则:
|
86
|
+
内置消息:单聊通知标题显示为发送者名称,群聊通知标题显示为群名称。
|
87
|
+
自定义消息:默认不显示标题。
|
88
|
+
*/
|
89
|
+
pushTitle?: string;
|
90
|
+
/**
|
91
|
+
* 推送内容 在通知栏里会显示这个字段
|
92
|
+
* 自定义消息,该字段必须填写,否则无法收到 push 消息.
|
93
|
+
SDK 中默认的消息类型(如 RC:TxtMsg, RC:VcMsg, RC:ImgMsg) 默认已经指定, 可设置为 nil
|
94
|
+
*/
|
95
|
+
pushContent?: string;
|
96
|
+
/**
|
97
|
+
* 远程推送附加信息
|
98
|
+
*/
|
99
|
+
pushData?: string;
|
100
|
+
};
|
78
101
|
/**
|
79
102
|
* 发送消息时的可选项信息
|
80
103
|
*/
|
@@ -93,6 +116,10 @@ export interface ISendMessageOptions {
|
|
93
116
|
* 正常发消息时无需传该参数。
|
94
117
|
*/
|
95
118
|
messageId?: number;
|
119
|
+
/**
|
120
|
+
* 推送配置,用于配置移动端远程推送的推送栏显示内容
|
121
|
+
*/
|
122
|
+
pushConfig?: IPushConfig;
|
96
123
|
}
|
97
124
|
/**
|
98
125
|
* 要发送的文件信息(本地资源)
|